Murf

Generate lifelike voiceovers and manage voices with the Murf API.

AI and MLAPI key5 actionsAll integrations

On this page
  1. Connect
  2. Call it from a workflow
  3. Actions (5)
  4. list-voices
  5. text_to_speech
  6. custom_api_call
  7. translateText
  8. voice-changer-convert
  9. Details

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.

Workflow
// 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);
});
Try it from your agent
{
  "name": "integrations",
  "arguments": {
    "project_id": "<project-id>",
    "action": "call",
    "piece": "murf_api",
    "piece_action": "list-voices",
    "input": {
      "locale": "<locale>"
    },
    "env": "dev"
  }
}
From another backend (connector proxy)
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.

InputTypeDescription
localerequiredid (picked from your account)Select your preferred language for the translated output.
styleoptionalid (picked from your account)Filter by style (optional)

text_to_speech

Text to Speech. Converts input text into speech using Murf AI.

InputTypeDescription
languagerequiredid (picked from your account)Select your preferred language for the translated output.
voiceIdrequiredid (picked from your account)Choose a voice for converting text into speech
textrequiredlong textThe text to be synthesized.
audioDurationoptionalnumberSpecify audio length. If 0, Murf ignores this. Only for Gen2 model.
channelTypeoptionalone of "MONO" | "STEREO"Mono or Stereo output.
encodeAsBase64optionalbooleanReturn Base64 encoded audio instead of URL (zero retention).
formatoptionalone of "MP3" | "WAV" | "FLAC" | "ALAW" | "ULAW" | "PCM" | "OGG"Select audio format.
modelVersionoptionalone of "GEN1" | "GEN2"Choose Gen1 or Gen2.
multiNativeLocaleoptionaltextSet multi-language voice (e.g., en-US, es-ES). Only for Gen2.
pitchoptionalnumberPitch adjustment (-50 to 50).
rateoptionalnumberSpeed adjustment (-50 to 50).
styleoptionaltextVoice style (e.g., 'default', 'calm', 'energetic'). Check voice details.
sampleRateoptionalnumberDefaults to 44100. Allowed: 8000, 24000, 44100, 48000.
variationoptionalnumberVariation level (0–5). Defaults to 1. Higher = more natural pauses/pitch/speed.
wordDurationsAsOriginalTextoptionalbooleanIf true, response word timings map to original text. (English only).
pronunciationDictionaryoptionalJSONCustom word pronunciations.

custom_api_call

Custom API Call. Make a custom API call to a specific endpoint

InputTypeDescription
urlrequiredobject (depends on other props)url
methodrequiredone of "GET" | "POST" | "PATCH" | "PUT" | "DELETE" | "HEAD"Method
headersrequiredobjectAuthorization headers are injected automatically from your connection.
queryParamsrequiredobjectQuery Parameters
body_typeoptionalone of "none" | "json" | "form_data" | "raw"Body Type
bodyoptionalobject (depends on other props)Body
response_is_binaryoptionalbooleanEnable for files like PDFs, images, etc.
failsafeoptionalbooleanNo Error on Failure
timeoutoptionalnumberTimeout (in seconds)
followRedirectsoptionalbooleanFollow redirects

translateText

Translate Text. Translate one or more texts to the target language.

InputTypeDescription
targetLanguagerequiredid (picked from your account)Select your preferred language for the translated output.
textsrequiredarrayList of texts to translate

voice-changer-convert

Voice Changer. Convert an input audio file to a different voice using Murf Voice Changer.

InputTypeDescription
languagerequiredid (picked from your account)Select your preferred language for the translated output.
voiceIdrequiredid (picked from your account)Choose a voice for converting text into speech
fileUrloptionaltextPublicly accessible URL of the input audio file. Either provide this or upload a file.
fileoptionalfileUpload an audio file for voice conversion
formatoptionalone of "MP3" | "WAV" | "FLAC" | "OGG"Format of the generated audio file
channelTypeoptionalone of "MONO" | "STEREO"Choose MONO or STEREO output
pitchoptionalnumberPitch adjustment (-50 to 50)
rateoptionalnumberSpeed adjustment (-50 to 50)
encodeOutputAsBase64optionalbooleanReceive 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