diff options
Diffstat (limited to 'chromium/chrome/common/caption.mojom')
-rw-r--r-- | chromium/chrome/common/caption.mojom | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/chromium/chrome/common/caption.mojom b/chromium/chrome/common/caption.mojom index 44a9a95d568..05ca09fe939 100644 --- a/chromium/chrome/common/caption.mojom +++ b/chromium/chrome/common/caption.mojom @@ -8,13 +8,18 @@ module chrome.mojom; // the Live Caption feature. interface CaptionHost { // Called when the speech recognition client receives a transcription from the - // speech service. - OnTranscription(TranscriptionResult transcription_result); + // speech service. Returns whether the transcription result was received + // successfully. Transcriptions will halt if this returns false. + OnTranscription(TranscriptionResult transcription_result) => (bool success); }; // A transcription result created by the speech recognition client in the // renderer and passed to the browser. struct TranscriptionResult { string transcription; + + // A flag indicating whether the result is final. If true, the result is + // locked in and the next result returned will not overlap with the previous + // final result. bool is_final; }; |