The io-asr manager uses this object to communicate with the HMI
When running, the io-asr manager updates its state on this object, responds to any strobe commands, and then goes into listening mode.
Attribute | Description |
---|---|
result | JSON object that contains the "confidence" level of the speech input. Range is from 0 (input not recognized at all) to 1000 (full confidence—no other possible results for the input). |
speech | Indicates input is being handled. Values:
|
state | Indicates io-asr's current state. Values:
|
strobe | Controls speech sessions. Values:
|
If io-asr is: | Then this command: | Has this effect: |
---|---|---|
idle | strobe::on | Begins a speech session. |
running | barge-in | Interrupts any currently playing prompts, allowing the speech session to advance to the next state (usually listening). |
running | strobe::cancel | Cancels the current speech session. |
running | strobe::hold | Interrupts the current speech turn and suspends the session, maintaining its state. |
running | strobe::mic-off | Interrupts capturing of audio so that the session can advance to processing; this is useful if the auto end-pointing isn't detecting silence because of ambient noise levels. |
running | strobe::on | n/a |
stopped | strobe::off | n/a |
running and listening | strobe::off | Ends the speech session. If the repeat modifier is in effect, it will be canceled. |
running and prompting | strobe::off | Silences the prompt. |
held | strobe::release | Releases a held speech session, allowing it to return to the running state. |
Start a speech session and then record each utterance to the speech_logs directory:
echo strobe::on?audio_log_dir=speech_logs >>/pps/services/asr/control
Play back the recorded session:
echo strobe::on?audio_source_dir=speech_logs >>/pps/services/asr/control