@@ -31,6 +31,36 @@ option java_outer_classname = "AudioConfigProto";
3131option java_package = "com.google.cloud.dialogflow.v2beta1" ;
3232option objc_class_prefix = "DF" ;
3333
34+ // Hints for the speech recognizer to help with recognition in a specific
35+ // conversation state.
36+ message SpeechContext {
37+ // Optional. A list of strings containing words and phrases that the speech
38+ // recognizer should recognize with higher likelihood.
39+ //
40+ // This list can be used to:
41+ //
42+ // * improve accuracy for words and phrases you expect the user to say,
43+ // e.g. typical commands for your Dialogflow agent
44+ // * add additional words to the speech recognizer vocabulary
45+ // * ...
46+ //
47+ // See the [Cloud Speech
48+ // documentation](https://cloud.google.com/speech-to-text/quotas) for usage
49+ // limits.
50+ repeated string phrases = 1 ;
51+
52+ // Optional. Boost for this context compared to other contexts:
53+ //
54+ // * If the boost is positive, Dialogflow will increase the probability that
55+ // the phrases in this context are recognized over similar sounding phrases.
56+ // * If the boost is unspecified or non-positive, Dialogflow will not apply
57+ // any boost.
58+ //
59+ // Dialogflow recommends that you use boosts in the range (0, 20] and that you
60+ // find a value that fits your use case with binary search.
61+ float boost = 2 ;
62+ }
63+
3464// Audio encoding of the audio content sent in the conversational query request.
3565// Refer to the
3666// [Cloud Speech API
@@ -80,36 +110,6 @@ enum AudioEncoding {
80110 AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE = 7 ;
81111}
82112
83- // Hints for the speech recognizer to help with recognition in a specific
84- // conversation state.
85- message SpeechContext {
86- // Optional. A list of strings containing words and phrases that the speech
87- // recognizer should recognize with higher likelihood.
88- //
89- // This list can be used to:
90- //
91- // * improve accuracy for words and phrases you expect the user to say,
92- // e.g. typical commands for your Dialogflow agent
93- // * add additional words to the speech recognizer vocabulary
94- // * ...
95- //
96- // See the [Cloud Speech
97- // documentation](https://cloud.google.com/speech-to-text/quotas) for usage
98- // limits.
99- repeated string phrases = 1 ;
100-
101- // Optional. Boost for this context compared to other contexts:
102- //
103- // * If the boost is positive, Dialogflow will increase the probability that
104- // the phrases in this context are recognized over similar sounding phrases.
105- // * If the boost is unspecified or non-positive, Dialogflow will not apply
106- // any boost.
107- //
108- // Dialogflow recommends that you use boosts in the range (0, 20] and that you
109- // find a value that fits your use case with binary search.
110- float boost = 2 ;
111- }
112-
113113// Information for a word recognized by the speech recognizer.
114114message SpeechWordInfo {
115115 // The word this info is for.
0 commit comments