Reference documentation and code samples for the Cloud Speech V1 Client class StreamingRecognizeRequest.
The top-level message sent by the client for the StreamingRecognize
method.
Multiple StreamingRecognizeRequest
messages are sent. The first message
must contain a streaming_config
message and must not contain
audio_content
. All subsequent messages must contain audio_content
and
must not contain a streaming_config
message.
Generated from protobuf message google.cloud.speech.v1.StreamingRecognizeRequest
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ streaming_config |
Google\Cloud\Speech\V1\StreamingRecognitionConfig
Provides information to the recognizer that specifies how to process the request. The first |
↳ audio_content |
string
The audio data to be recognized. Sequential chunks of audio data are sent in sequential |
getStreamingConfig
Provides information to the recognizer that specifies how to process the
request. The first StreamingRecognizeRequest
message must contain a
streaming_config
message.
Generated from protobuf field .google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1;
Returns | |
---|---|
Type | Description |
Google\Cloud\Speech\V1\StreamingRecognitionConfig|null |
hasStreamingConfig
setStreamingConfig
Provides information to the recognizer that specifies how to process the
request. The first StreamingRecognizeRequest
message must contain a
streaming_config
message.
Generated from protobuf field .google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1;
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Speech\V1\StreamingRecognitionConfig
|
Returns | |
---|---|
Type | Description |
$this |
getAudioContent
The audio data to be recognized. Sequential chunks of audio data are sent
in sequential StreamingRecognizeRequest
messages. The first
StreamingRecognizeRequest
message must not contain audio_content
data
and all subsequent StreamingRecognizeRequest
messages must contain
audio_content
data. The audio bytes must be encoded as specified in
RecognitionConfig
. Note: as with all bytes fields, proto buffers use a
pure binary representation (not base64). See
content limits.
Generated from protobuf field bytes audio_content = 2;
Returns | |
---|---|
Type | Description |
string |
hasAudioContent
setAudioContent
The audio data to be recognized. Sequential chunks of audio data are sent
in sequential StreamingRecognizeRequest
messages. The first
StreamingRecognizeRequest
message must not contain audio_content
data
and all subsequent StreamingRecognizeRequest
messages must contain
audio_content
data. The audio bytes must be encoded as specified in
RecognitionConfig
. Note: as with all bytes fields, proto buffers use a
pure binary representation (not base64). See
content limits.
Generated from protobuf field bytes audio_content = 2;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getStreamingRequest
Returns | |
---|---|
Type | Description |
string |