Skip to main content
Deepgram's Docs

Search documentation

Type to search this documentation.

On this pageOverview

Update Speak

Voice Agent

The UpdateSpeak message is a JSON message that you can use to change the Speak model in the middle of a conversation.

The UpdateSpeak message is a JSON message that allows you to switch the Speak model during a conversation. This flexibility enables real-time adjustments to the agent's voice output, ensuring a more dynamic and responsive interaction tailored to the evolving needs of the conversation.

To send the UpdateSpeak message, you need to send the following JSON message to the server:

JSON

JSON
{
    "type": "UpdateSpeak",
    "speak": {
        "provider": {
            "type": "deepgram",
            "version": "v2",
            "model": "flux-alexis-en"
        }
    }
}

Upon receiving the UpdateSpeak message, the server will process all remaining audio data and return a SpeakUpdated message.

JSON

JSON
{
    "type": "SpeakUpdated"
}
Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu