Logo
ASR Profile
Overview

ASR Profile

Speech-to-text behavior over ION.

1 min read
ASR Speech-to-Text

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.start and asr.stop
  • Audio format is inherited from ready
  • After asr.result, the session is complete