From 9fd48dcb59a5fba8464e6dbe6f4c6ca90c7efbaf Mon Sep 17 00:00:00 2001 From: Google APIs Date: Wed, 22 May 2019 10:12:14 -0700 Subject: [PATCH] Synchronize new proto/yaml changes. PiperOrigin-RevId: 249470705 --- google/cloud/speech/v1p1beta1/cloud_speech.proto | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/google/cloud/speech/v1p1beta1/cloud_speech.proto b/google/cloud/speech/v1p1beta1/cloud_speech.proto index d603d97d..146d9f3a 100644 --- a/google/cloud/speech/v1p1beta1/cloud_speech.proto +++ b/google/cloud/speech/v1p1beta1/cloud_speech.proto @@ -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`.