Settings
Send a Settings message to configure the voice agent’s behavior, audio formats, and provider configurations before starting the conversation.
The Settings
message is a JSON command that serves as an initialization step, setting up both the behavior of the voice agent.
Purpose
The Settings
message is an initialization command that establishes both the behavior of the voice agent and the audio transmission formats before voice data is exchanged. The client should send a Settings
message immediately after opening the websocket and before sending any audio.
For a detailed explanation of all the options available for the Settings
message, see our documentation on how to Configure the Voice Agent.
Example Payloads
This example uses a very basic Settings
to establish a connection. To send the Settings
message, you need to send the following JSON message to the server:
Upon receiving the Settings
message, the server will process all remaining audio data and return the following SettingsApplied
message.