Custom Text To Speech in SDK
This tutorial will walk you through setting up a custom text-to-speech provider for your dialogue application.
First, you need to provide a customTtsProvider
callback. You can use built-in helpers like audio.fromFile
, or use fetch
to call an external API.
Then, set the audio.tts
property of your conversation objects to "custom"
to make them use your TTS.