Synchronize new proto/yaml changes.

PiperOrigin-RevId: 249470705
This commit is contained in:
Google APIs 2019-05-22 10:12:14 -07:00 committed by Copybara-Service
parent 6ea045ad2e
commit 9fd48dcb59
1 changed files with 15 additions and 0 deletions

View File

@ -200,6 +200,11 @@ message RecognitionConfig {
// is replaced with a single byte containing the block length. Only Speex
// wideband is supported. `sample_rate_hertz` must be 16000.
SPEEX_WITH_HEADER_BYTE = 7;
// MP3 audio. Support all standard MP3 bitrates (which range from 32-320
// kbps). When using this encoding, `sample_rate_hertz` can be optionally
// unset if not known.
MP3 = 8;
}
// Encoding of audio data sent in all `RecognitionAudio` messages.
@ -511,6 +516,16 @@ message SpeechContext {
// to add additional words to the vocabulary of the recognizer. See
// [usage limits](/speech-to-text/quotas#content).
repeated string phrases = 1;
// Hint Boost. Positive value will increase the probability that a specific
// phrase will be recognized over other similar sounding phrases. The higher
// the boost, the higher the chance of false positive recognition as well.
// Negative boost values would correspond to anti-biasing. Anti-biasing is not
// enabled, so negative boost will simply be ignored. Though `boost` can
// accept a wide range of positive values, most use cases are best served with
// values between 0 and 20. We recommend using a binary search approach to
// finding the optimal value for your use case.
float boost = 4;
}
// Contains audio data in the encoding specified in the `RecognitionConfig`.