Providers
Murf
Murf GEN2 and FALCON text-to-speech.
| Prefix | murf |
| Default model | GEN2 |
| Env var | MURF_API_KEY |
| Official docs | murf.ai/api/docs |
Models
| Model | Streaming | Audio Tags | Voice Cloning | Notes |
|---|---|---|---|---|
GEN2 | No | No | No | Default; multilingual |
FALCON | No | No | No | Low-latency, English only |
Each Murf model uses a different endpoint — SpeechSDK routes the request based on the model you pick.
Usage
import { generateSpeech } from "@speech-sdk/core"
const result = await generateSpeech({
model: "murf/GEN2",
text: "Hello from SpeechSDK!",
voice: "en-US-natalie",
})Provider Options
await generateSpeech({
model: "murf/GEN2",
text: "Hello!",
voice: "en-US-natalie",
providerOptions: {
format: "MP3",
sampleRate: 44_100,
style: "Conversational",
pitch: 0,
rate: 0,
},
})Custom Configuration
import { generateSpeech } from "@speech-sdk/core"
import { createMurf } from "@speech-sdk/core/providers"
const murf = createMurf({
apiKey: process.env.MURF_API_KEY,
})
const result = await generateSpeech({
model: murf("FALCON"),
text: "Hello!",
voice: "en-US-natalie",
})