blob: aa1a02c31e108f4fe34dfccdb4772ca8125268d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
// Copyright (c) 2012 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.
#ifndef CONTENT_PUBLIC_COMMON_SPEECH_RECOGNITION_RESULT_H_
#define CONTENT_PUBLIC_COMMON_SPEECH_RECOGNITION_RESULT_H_
#include <vector>
#include "base/basictypes.h"
#include "base/strings/string16.h"
#include "content/common/content_export.h"
namespace content {
struct SpeechRecognitionHypothesis {
base::string16 utterance;
double confidence;
SpeechRecognitionHypothesis() : confidence(0.0) {}
SpeechRecognitionHypothesis(const base::string16& utterance_value,
double confidence_value)
: utterance(utterance_value),
confidence(confidence_value) {
}
};
typedef std::vector<SpeechRecognitionHypothesis>
SpeechRecognitionHypothesisArray;
struct CONTENT_EXPORT SpeechRecognitionResult {
SpeechRecognitionHypothesisArray hypotheses;
bool is_provisional;
SpeechRecognitionResult();
~SpeechRecognitionResult();
};
typedef std::vector<SpeechRecognitionResult> SpeechRecognitionResults;
} // namespace content
#endif // CONTENT_PUBLIC_COMMON_SPEECH_RECOGNITION_RESULT_H_
|