Murf<T>
Models & Types · AiDotNet.TextToSpeech.ProprietaryAPI
A client of the Murf text-to-speech API.
Inheritance: CloudTtsClientBase<T> → Murf<T>
For Beginners
new Murf<float>(new MurfOptions { ApiKey = "…" }).Synthesize("Hello") returns the
spoken audio.
How It Works
Sends POST https://api.murf.ai/v1/speech/generate with the api-key header and
{ text, voiceId, format: "WAV", sampleRate, channelType: "MONO", encodeAsBase64: true[, style, rate, pitch, multiNativeLocale] }; the response’s encodedAudio is a base64 WAV file.
Constructors
| Constructor | Summary |
|---|---|
Murf(MurfOptions options, HttpClient httpClient) |
Creates the client; a supplied HttpClient is used as is and not disposed. |
Properties
| Property | Summary |
|---|---|
string ProviderName { get; } |