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 ttsDispatcher callback for your application to choose which conversations to use your custom TTS on. In this simple case, it will be used on all the conversations.

Next, set up the customTtsProvider callback. You can use built-in helpers like audio.fromFile, or use fetch to call an external API.