Murf
Generate lifelike voiceovers and manage voices with the Murf API.
On this page
Connect
Auth type: API key (secret_text). Pass the provider's API key or token as the connection's credential. It is sealed at rest and only opened on the server when an action runs.
- From your agent: integrations {action: "connect", piece, credentials, env} stores the credentials for dev, prod or all. Answers name the fields, never the values.
- Or set the integration's project secrets with the secrets tool (SLACK_BOT_TOKEN, DISCORD_WEBHOOK_URL, TELEGRAM_BOT_TOKEN, TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN …): a call uses the connection, else those secrets. integrations {action: "catalog", piece} lists which ones work.
- Try one action now with integrations {action: "call", piece, piece_action, input}. It really sends.
Call it from a workflow
step.ctx.integrations.invoke("murf_api", action, input) resolves with the provider's answer and rejects when Murf isn't connected or refuses. Wrap it in step.run so a retry sends once. See step.ctx. Its actions run through the integration runner, which the server's operator turns on: integrations {action: "catalog", piece: "murf_api"} says whether yours can call it.
// workflows/notify.ts: call Murf when a booking is confirmed
import { on } from "@appbricx/workflows";
export const tellMurfApi = on.transition("booking", "status", "confirmed", async (_event, step) => {
// Recorded once: a retry doesn't send it twice. Rejects when Murf isn't connected.
const output = await step.run("Murf", () =>
step.ctx.integrations.invoke("murf_api", "list-voices", {
"locale": "<locale>"
}),
);
step.ctx.log("Murf answered", output);
});{
"name": "integrations",
"arguments": {
"project_id": "<project-id>",
"action": "call",
"piece": "murf_api",
"piece_action": "list-voices",
"input": {
"locale": "<locale>"
},
"env": "dev"
}
}curl -X POST "$APP_ORIGIN/__appbricx/connector-proxy/murf_api/list-voices" \
-H "Authorization: Bearer $APP_KEY" \
-H "content-type: application/json" \
-d '{"props":{"locale":"<locale>"}}'Actions
list-voices
List Voices. Get the list of available voices for text-to-speech
Also accepted as list_voices.
| Input | Type | Description |
|---|---|---|
localerequired | id (picked from your account) | Select your preferred language for the translated output. |
styleoptional | id (picked from your account) | Filter by style (optional) |
text_to_speech
Text to Speech. Converts input text into speech using Murf AI.
| Input | Type | Description |
|---|---|---|
languagerequired | id (picked from your account) | Select your preferred language for the translated output. |
voiceIdrequired | id (picked from your account) | Choose a voice for converting text into speech |
textrequired | long text | The text to be synthesized. |
audioDurationoptional | number | Specify audio length. If 0, Murf ignores this. Only for Gen2 model. |
channelTypeoptional | one of "MONO" | "STEREO" | Mono or Stereo output. |
encodeAsBase64optional | boolean | Return Base64 encoded audio instead of URL (zero retention). |
formatoptional | one of "MP3" | "WAV" | "FLAC" | "ALAW" | "ULAW" | "PCM" | "OGG" | Select audio format. |
modelVersionoptional | one of "GEN1" | "GEN2" | Choose Gen1 or Gen2. |
multiNativeLocaleoptional | text | Set multi-language voice (e.g., en-US, es-ES). Only for Gen2. |
pitchoptional | number | Pitch adjustment (-50 to 50). |
rateoptional | number | Speed adjustment (-50 to 50). |
styleoptional | text | Voice style (e.g., 'default', 'calm', 'energetic'). Check voice details. |
sampleRateoptional | number | Defaults to 44100. Allowed: 8000, 24000, 44100, 48000. |
variationoptional | number | Variation level (0–5). Defaults to 1. Higher = more natural pauses/pitch/speed. |
wordDurationsAsOriginalTextoptional | boolean | If true, response word timings map to original text. (English only). |
pronunciationDictionaryoptional | JSON | Custom word pronunciations. |
custom_api_call
Custom API Call. Make a custom API call to a specific endpoint
| Input | Type | Description |
|---|---|---|
urlrequired | object (depends on other props) | url |
methodrequired | one of "GET" | "POST" | "PATCH" | "PUT" | "DELETE" | "HEAD" | Method |
headersrequired | object | Authorization headers are injected automatically from your connection. |
queryParamsrequired | object | Query Parameters |
body_typeoptional | one of "none" | "json" | "form_data" | "raw" | Body Type |
bodyoptional | object (depends on other props) | Body |
response_is_binaryoptional | boolean | Enable for files like PDFs, images, etc. |
failsafeoptional | boolean | No Error on Failure |
timeoutoptional | number | Timeout (in seconds) |
followRedirectsoptional | boolean | Follow redirects |
translateText
Translate Text. Translate one or more texts to the target language.
| Input | Type | Description |
|---|---|---|
targetLanguagerequired | id (picked from your account) | Select your preferred language for the translated output. |
textsrequired | array | List of texts to translate |
voice-changer-convert
Voice Changer. Convert an input audio file to a different voice using Murf Voice Changer.
| Input | Type | Description |
|---|---|---|
languagerequired | id (picked from your account) | Select your preferred language for the translated output. |
voiceIdrequired | id (picked from your account) | Choose a voice for converting text into speech |
fileUrloptional | text | Publicly accessible URL of the input audio file. Either provide this or upload a file. |
fileoptional | file | Upload an audio file for voice conversion |
formatoptional | one of "MP3" | "WAV" | "FLAC" | "OGG" | Format of the generated audio file |
channelTypeoptional | one of "MONO" | "STEREO" | Choose MONO or STEREO output |
pitchoptional | number | Pitch adjustment (-50 to 50) |
rateoptional | number | Speed adjustment (-50 to 50) |
encodeOutputAsBase64optional | boolean | Receive audio directly as Base64 instead of a file URL |
Details
- Id
murf_api- Category
- AI and ML
- Tags
- speech, tts, voice, voiceover, ai
- Package
@activepieces/piece-murf-api@0.1.4- Runs
- Through the integration runner