mirror of
https://github.com/mastra-ai/mastra.git
synced 2026-11-17 08:44:46 +00:00
[MASTRA-2371] add methods to support speech to speech voice providers (#2870)
Add methods to support realtime voice providers. - connect: initiate websocket/webrtc connection - close: close connection - updateConfig: update config - answer: trigger response (if not using VAD) - addTools: add tools to voice model. - on/off: register and remove event listeners Update to existing methods: - speak/listen can now return void if they are a realtime provider. These methods would emit a 'speaking' and 'writing' events Update agents to implement new voice methods. If the voice provider is a realtime voice provider we also pass tools and the instruction prompt to the voice provider
This commit is contained in:
parent
21631114df
commit
6e559a0933
5 changed files with 305 additions and 36 deletions
Loading…
Add table
Add a link
Reference in a new issue