Reference documentation and code samples for the Cloud Speech-to-Text V1p1beta1 API class Google::Cloud::Speech::V1p1beta1::StreamingRecognitionConfig.
Provides information to the recognizer that specifies how to process the request.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#config
def config() -> ::Google::Cloud::Speech::V1p1beta1::RecognitionConfig
- (::Google::Cloud::Speech::V1p1beta1::RecognitionConfig) — Required. Provides information to the recognizer that specifies how to process the request.
#config=
def config=(value) -> ::Google::Cloud::Speech::V1p1beta1::RecognitionConfig
- value (::Google::Cloud::Speech::V1p1beta1::RecognitionConfig) — Required. Provides information to the recognizer that specifies how to process the request.
- (::Google::Cloud::Speech::V1p1beta1::RecognitionConfig) — Required. Provides information to the recognizer that specifies how to process the request.
#interim_results
def interim_results() -> ::Boolean
-
(::Boolean) — If
true
, interim results (tentative hypotheses) may be returned as they become available (these interim results are indicated with theis_final=false
flag). Iffalse
or omitted, onlyis_final=true
result(s) are returned.
#interim_results=
def interim_results=(value) -> ::Boolean
-
value (::Boolean) — If
true
, interim results (tentative hypotheses) may be returned as they become available (these interim results are indicated with theis_final=false
flag). Iffalse
or omitted, onlyis_final=true
result(s) are returned.
-
(::Boolean) — If
true
, interim results (tentative hypotheses) may be returned as they become available (these interim results are indicated with theis_final=false
flag). Iffalse
or omitted, onlyis_final=true
result(s) are returned.
#single_utterance
def single_utterance() -> ::Boolean
-
(::Boolean) —
If
false
or omitted, the recognizer will perform continuous recognition (continuing to wait for and process audio even if the user pauses speaking) until the client closes the input stream (gRPC API) or until the maximum time limit has been reached. May return multipleStreamingRecognitionResult
s with theis_final
flag set totrue
.If
true
, the recognizer will detect a single spoken utterance. When it detects that the user has paused or stopped speaking, it will return anEND_OF_SINGLE_UTTERANCE
event and cease recognition. It will return no more than oneStreamingRecognitionResult
with theis_final
flag set totrue
.The
single_utterance
field can only be used with specified models, otherwise an error is thrown. Themodel
field in [RecognitionConfig
][] must be set to:command_and_search
phone_call
AND additional fielduseEnhanced
=true
- The
model
field is left undefined. In this case the API auto-selects a model based on any other parameters that you set inRecognitionConfig
.
#single_utterance=
def single_utterance=(value) -> ::Boolean
-
value (::Boolean) —
If
false
or omitted, the recognizer will perform continuous recognition (continuing to wait for and process audio even if the user pauses speaking) until the client closes the input stream (gRPC API) or until the maximum time limit has been reached. May return multipleStreamingRecognitionResult
s with theis_final
flag set totrue
.If
true
, the recognizer will detect a single spoken utterance. When it detects that the user has paused or stopped speaking, it will return anEND_OF_SINGLE_UTTERANCE
event and cease recognition. It will return no more than oneStreamingRecognitionResult
with theis_final
flag set totrue
.The
single_utterance
field can only be used with specified models, otherwise an error is thrown. Themodel
field in [RecognitionConfig
][] must be set to:command_and_search
phone_call
AND additional fielduseEnhanced
=true
- The
model
field is left undefined. In this case the API auto-selects a model based on any other parameters that you set inRecognitionConfig
.
-
(::Boolean) —
If
false
or omitted, the recognizer will perform continuous recognition (continuing to wait for and process audio even if the user pauses speaking) until the client closes the input stream (gRPC API) or until the maximum time limit has been reached. May return multipleStreamingRecognitionResult
s with theis_final
flag set totrue
.If
true
, the recognizer will detect a single spoken utterance. When it detects that the user has paused or stopped speaking, it will return anEND_OF_SINGLE_UTTERANCE
event and cease recognition. It will return no more than oneStreamingRecognitionResult
with theis_final
flag set totrue
.The
single_utterance
field can only be used with specified models, otherwise an error is thrown. Themodel
field in [RecognitionConfig
][] must be set to:command_and_search
phone_call
AND additional fielduseEnhanced
=true
- The
model
field is left undefined. In this case the API auto-selects a model based on any other parameters that you set inRecognitionConfig
.