naiveproxy/content/public/common/speech_recognition_result.mojom

30 lines
1018 B
Plaintext
Raw Normal View History

2018-08-11 08:35:24 +03:00
// 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;
};