@ -266,8 +266,7 @@ message RecognitionConfig {
/ / The number of channels in the input audio data.
/ / ONLY set this for MULTI - CHANNEL recognition.
/ / Valid values for LINEAR16 and FLAC are ` 1 ` - ` 8 ` .
/ / Valid values for OGG_OPUS are '1' - '254' .
/ / Valid values for LINEAR16 , OGG_OPUS and FLAC are ` 1 ` - ` 8 ` .
/ / Valid value for MULAW , AMR , AMR_WB and SPEEX_WITH_HEADER_BYTE is only ` 1 ` .
/ / If ` 0 ` or omitted , defaults to one channel ( mono ) .
/ / Note : We only recognize the first channel by default .
@ -679,6 +678,13 @@ message RecognizeResponse {
/ / When available , billed audio seconds for the corresponding request.
google.protobuf.Duration total_billed_time = 3 ;
/ / Provides information on adaptation behavior in response
SpeechAdaptationInfo speech_adaptation_info = 7 ;
/ / The ID associated with the request. This is a unique ID specific only to
/ / the given request.
int64 request_id = 8 ;
}
/ / The only message returned to the client by the ` LongRunningRecognize ` method.
@ -699,6 +705,13 @@ message LongRunningRecognizeResponse {
/ / If the transcript output fails this field contains the relevant error.
google.rpc.Status output_error = 7 ;
/ / Provides information on speech adaptation behavior in response
SpeechAdaptationInfo speech_adaptation_info = 8 ;
/ / The ID associated with the request. This is a unique ID specific only to
/ / the given request.
int64 request_id = 9 ;
}
/ / Describes the progress of a long - running ` LongRunningRecognize ` call. It is
@ -804,6 +817,13 @@ message StreamingRecognizeResponse {
/ / When available , billed audio seconds for the stream.
/ / Set only if this is the last response in the stream.
google.protobuf.Duration total_billed_time = 5 ;
/ / Provides information on adaptation behavior in response
SpeechAdaptationInfo speech_adaptation_info = 9 ;
/ / The ID associated with the request. This is a unique ID specific only to
/ / the given request.
int64 request_id = 10 ;
}
/ / A streaming speech recognition result corresponding to a portion of the audio
@ -927,3 +947,14 @@ message WordInfo {
/ / top alternative.
int32 speaker_tag = 5 [ ( google.api.field_behavior ) = OUTPUT_ONLY ] ;
}
/ / Information on speech adaptation use in results
message SpeechAdaptationInfo {
/ / Whether there was a timeout when applying speech adaptation. If true ,
/ / adaptation had no effect in the response transcript.
bool adaptation_timeout = 1 ;
/ / If set , returns a message specifying which part of the speech adaptation
/ / request timed out.
string timeout_message = 4 ;
}