mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-24 14:26:09 +03:00
30 lines
1018 B
Plaintext
30 lines
1018 B
Plaintext
|
// Copyright 2018 The Chromium Authors. All rights reserved.
|
||
|
// Use of this source code is governed by a BSD-style license that can be
|
||
|
// found in the LICENSE file.
|
||
|
|
||
|
module content.mojom;
|
||
|
|
||
|
import "mojo/public/mojom/base/string16.mojom";
|
||
|
|
||
|
// A single hypothesis indicating what the recognition service thinks a
|
||
|
// particular speech segment means.
|
||
|
struct SpeechRecognitionHypothesis {
|
||
|
// Transcript of spoken text.
|
||
|
mojo_base.mojom.String16 utterance;
|
||
|
|
||
|
// A numeric estimate between 0 and 1 that represents how confident the
|
||
|
// recognition system is that the recognition is correct.
|
||
|
double confidence;
|
||
|
};
|
||
|
|
||
|
// Group of recognition hypotheses for a particular speech segment.
|
||
|
struct SpeechRecognitionResult {
|
||
|
// An N-best list of hypotheses.
|
||
|
array<content.mojom.SpeechRecognitionHypothesis> hypotheses;
|
||
|
|
||
|
// False if this is the final time the speech service will return this
|
||
|
// particular result. If true, then this represents an interim result that
|
||
|
// could still be changed.
|
||
|
bool is_provisional;
|
||
|
};
|