Roles
- Client sends audio
- Recognizer emits text
Events
asr.start:
{ "type": "asr.start", "language": "en" }asr.stop:
{ "type": "asr.stop" }asr.partial:
{ "type": "asr.partial", "text": "hello wor" }asr.result:
{ "type": "asr.result", "text": "hello world" }asr.error:
{ "type": "asr.error", "message": "failure" }Audio Behavior
- Audio frames are sent between
asr.startandasr.stop - Audio format is inherited from
ready - After
asr.result, the session is complete