fuchsia.speech

PROTOCOLS

SpeechToText

Defined in fuchsia.speech/speech_to_text.fidl

BeginCapture

Starts capturing speech from the microphone.

Request

NameType
transcription_listener TranscriptionListener

ListenForHotword

Begins hotword detection. Detected hotword utterances are reported on the given listener.

Request

NameType
hotword_listener HotwordListener

TranscriptionListener

Defined in fuchsia.speech/speech_to_text.fidl

Represents an active transcription session. Either side may close this interface to indicate that transcription should stop. If the transcription is unexpectedly closed before OnReady is called, the implementer should treat it as an error (in such cases, OnError is called).

OnReady

Indicates that capture has begun. Prior to this, parts of the system may not have been initialized and audio may have been dropped. No calls to OnTranscriptUpdate will occur before OnReady is called.

Request

NameType

OnTranscriptUpdate

Receives updated transcripts. Each call receives the most likely transcription of the entire utterance at that time. Previously transcribed text may mutate in response to later input.

Request

NameType
spoken_text string

OnSpeechLevelUpdate

Provides periodic updates on the user's speech signal power, when the microphone is open and streaming to the backend. speech_level is instantaneous speech power, in decibels (negative).

Request

NameType
speech_level float32

OnError

An error occurred before or during transcription. Depending on the nature of the error, this may occur before OnReady is called, and OnReady may never be called. This binding will be closed immediately after sending this message.

Request

NameType

HotwordListener

Defined in fuchsia.speech/speech_to_text.fidl

Listens for hotwords. Each detected hotword utterance triggers OnHotword. Closure of this handle by the speech service indicates an error.

OnReady

Indicates that capture has begun. Prior to this, parts of the system may not have been initialized and audio may have been dropped. No calls to OnHotword will occur before OnReady is called.

Request

NameType

OnHotword

Called for each detected hotword utterance.

Request

NameType