Class: Google::Cloud::MediaTranslation::V1beta1::StreamingTranslateSpeechRequest
- Inherits:
-
Object
- Object
- Google::Cloud::MediaTranslation::V1beta1::StreamingTranslateSpeechRequest
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/mediatranslation/v1beta1/media_translation.rb
Overview
The top-level message sent by the client for the StreamingTranslateSpeech
method. Multiple StreamingTranslateSpeechRequest
messages are sent. The
first message must contain a streaming_config
message and must not contain
audio_content
data. All subsequent messages must contain audio_content
data and must not contain a streaming_config
message.
Instance Attribute Summary collapse
-
#audio_content ⇒ ::String
The audio data to be translated.
-
#streaming_config ⇒ ::Google::Cloud::MediaTranslation::V1beta1::StreamingTranslateSpeechConfig
Provides information to the recognizer that specifies how to process the request.
Instance Attribute Details
#audio_content ⇒ ::String
Returns The audio data to be translated. Sequential chunks of audio data are sent
in sequential StreamingTranslateSpeechRequest
messages. The first
StreamingTranslateSpeechRequest
message must not contain
audio_content
data and all subsequent StreamingTranslateSpeechRequest
messages must contain audio_content
data. The audio bytes must be
encoded as specified in StreamingTranslateSpeechConfig
. Note: as with
all bytes fields, protobuffers use a pure binary representation (not
base64).
131 132 133 134 |
# File 'proto_docs/google/cloud/mediatranslation/v1beta1/media_translation.rb', line 131 class StreamingTranslateSpeechRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#streaming_config ⇒ ::Google::Cloud::MediaTranslation::V1beta1::StreamingTranslateSpeechConfig
Returns Provides information to the recognizer that specifies how to process the
request. The first StreamingTranslateSpeechRequest
message must contain
a streaming_config
message.
131 132 133 134 |
# File 'proto_docs/google/cloud/mediatranslation/v1beta1/media_translation.rb', line 131 class StreamingTranslateSpeechRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |