@@ -31,7 +31,6 @@ option java_multiple_files = true;
3131option java_outer_classname = "SpeechProto" ;
3232option java_package = "com.google.cloud.speech.v1p1beta1" ;
3333
34-
3534// Service that implements Google Cloud Speech API.
3635service Speech {
3736 // Performs synchronous speech recognition: receive results after all audio
@@ -47,7 +46,8 @@ service Speech {
4746 // google.longrunning.Operations interface. Returns either an
4847 // `Operation.error` or an `Operation.response` which contains
4948 // a `LongRunningRecognizeResponse` message.
50- rpc LongRunningRecognize (LongRunningRecognizeRequest ) returns (google.longrunning.Operation ) {
49+ rpc LongRunningRecognize (LongRunningRecognizeRequest )
50+ returns (google.longrunning.Operation ) {
5151 option (google.api.http ) = {
5252 post : "/v1p1beta1/speech:longrunningrecognize"
5353 body : "*"
@@ -56,8 +56,8 @@ service Speech {
5656
5757 // Performs bidirectional streaming speech recognition: receive results while
5858 // sending audio. This method is only available via the gRPC API (not REST).
59- rpc StreamingRecognize (stream StreamingRecognizeRequest ) returns ( stream StreamingRecognizeResponse ) {
60- }
59+ rpc StreamingRecognize (stream StreamingRecognizeRequest )
60+ returns ( stream StreamingRecognizeResponse ) { }
6161}
6262
6363// The top-level message sent by the client for the `Recognize` method.
@@ -155,7 +155,8 @@ message RecognitionConfig {
155155 // an `AudioEncoding` when you send send `FLAC` or `WAV` audio, the
156156 // encoding configuration must match the encoding described in the audio
157157 // header; otherwise the request returns an
158- // [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] error code.
158+ // [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] error
159+ // code.
159160 enum AudioEncoding {
160161 // Not specified.
161162 ENCODING_UNSPECIFIED = 0 ;
@@ -203,7 +204,8 @@ message RecognitionConfig {
203204
204205 // Encoding of audio data sent in all `RecognitionAudio` messages.
205206 // This field is optional for `FLAC` and `WAV` audio files and required
206- // for all other audio formats. For details, see [AudioEncoding][google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding].
207+ // for all other audio formats. For details, see
208+ // [AudioEncoding][google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding].
207209 AudioEncoding encoding = 1 ;
208210
209211 // Sample rate in Hertz of the audio data sent in all
@@ -212,7 +214,8 @@ message RecognitionConfig {
212214 // source to 16000 Hz. If that's not possible, use the native sample rate of
213215 // the audio source (instead of re-sampling).
214216 // This field is optional for `FLAC` and `WAV` audio files and required
215- // for all other audio formats. For details, see [AudioEncoding][google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding].
217+ // for all other audio formats. For details, see
218+ // [AudioEncoding][google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding].
216219 int32 sample_rate_hertz = 2 ;
217220
218221 // *Optional* The number of channels in the input audio data.
@@ -269,9 +272,10 @@ message RecognitionConfig {
269272 // won't be filtered out.
270273 bool profanity_filter = 5 ;
271274
272- // *Optional* array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
273- // A means to provide context to assist the speech recognition. For more
274- // information, see [Phrase Hints](/speech-to-text/docs/basics#phrase-hints).
275+ // *Optional* array of
276+ // [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext]. A means to
277+ // provide context to assist the speech recognition. For more information, see
278+ // [Phrase Hints](/speech-to-text/docs/basics#phrase-hints).
275279 repeated SpeechContext speech_contexts = 6 ;
276280
277281 // *Optional* If `true`, the top result includes a list of words and
@@ -511,8 +515,8 @@ message SpeechContext {
511515
512516// Contains audio data in the encoding specified in the `RecognitionConfig`.
513517// Either `content` or `uri` must be supplied. Supplying both or neither
514- // returns [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. See
515- // [content limits](/speech-to-text/quotas#content).
518+ // returns [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT].
519+ // See [content limits](/speech-to-text/quotas#content).
516520message RecognitionAudio {
517521 // The audio source, which is either inline content or a Google Cloud
518522 // Storage uri.
@@ -527,8 +531,9 @@ message RecognitionAudio {
527531 // Currently, only Google Cloud Storage URIs are
528532 // supported, which must be specified in the following format:
529533 // `gs://bucket_name/object_name` (other URI formats return
530- // [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see
531- // [Request URIs](https://cloud.google.com/storage/docs/reference-uris).
534+ // [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]).
535+ // For more information, see [Request
536+ // URIs](https://cloud.google.com/storage/docs/reference-uris).
532537 string uri = 2 ;
533538 }
534539}
@@ -633,8 +638,8 @@ message StreamingRecognizeResponse {
633638 END_OF_SINGLE_UTTERANCE = 1 ;
634639 }
635640
636- // Output only. If set, returns a [google.rpc.Status][google.rpc.Status] message that
637- // specifies the error for the operation.
641+ // Output only. If set, returns a [google.rpc.Status][google.rpc.Status]
642+ // message that specifies the error for the operation.
638643 google.rpc.Status error = 1 ;
639644
640645 // Output only. This repeated list contains zero or more results that
0 commit comments