Setting up your backend to handle voice requests and responses
setVoiceEndpoint()
and ensures consistency between your chat and voice endpoints.
multipart/form-data
POST request to your configured endpoint with the following fields:
voiceRoute
configuration, your Mastra backend should handle requests at the specified route. Here’s how to implement the voice handler: