Reference documentation and code samples for the Media Translation V1beta1 API class Google::Cloud::MediaTranslation::V1beta1::StreamingTranslateSpeechRequest.
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.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#audio_content
def audio_content() -> ::String
-
(::String) — The audio data to be translated. Sequential chunks of audio data are sent
in sequential
StreamingTranslateSpeechRequest
messages. The firstStreamingTranslateSpeechRequest
message must not containaudio_content
data and all subsequentStreamingTranslateSpeechRequest
messages must containaudio_content
data. The audio bytes must be encoded as specified inStreamingTranslateSpeechConfig
. Note: as with all bytes fields, protobuffers use a pure binary representation (not base64).
#audio_content=
def audio_content=(value) -> ::String
-
value (::String) — The audio data to be translated. Sequential chunks of audio data are sent
in sequential
StreamingTranslateSpeechRequest
messages. The firstStreamingTranslateSpeechRequest
message must not containaudio_content
data and all subsequentStreamingTranslateSpeechRequest
messages must containaudio_content
data. The audio bytes must be encoded as specified inStreamingTranslateSpeechConfig
. Note: as with all bytes fields, protobuffers use a pure binary representation (not base64).
-
(::String) — The audio data to be translated. Sequential chunks of audio data are sent
in sequential
StreamingTranslateSpeechRequest
messages. The firstStreamingTranslateSpeechRequest
message must not containaudio_content
data and all subsequentStreamingTranslateSpeechRequest
messages must containaudio_content
data. The audio bytes must be encoded as specified inStreamingTranslateSpeechConfig
. Note: as with all bytes fields, protobuffers use a pure binary representation (not base64).
#streaming_config
def streaming_config() -> ::Google::Cloud::MediaTranslation::V1beta1::StreamingTranslateSpeechConfig
-
(::Google::Cloud::MediaTranslation::V1beta1::StreamingTranslateSpeechConfig) — Provides information to the recognizer that specifies how to process the
request. The first
StreamingTranslateSpeechRequest
message must contain astreaming_config
message.
#streaming_config=
def streaming_config=(value) -> ::Google::Cloud::MediaTranslation::V1beta1::StreamingTranslateSpeechConfig
-
value (::Google::Cloud::MediaTranslation::V1beta1::StreamingTranslateSpeechConfig) — Provides information to the recognizer that specifies how to process the
request. The first
StreamingTranslateSpeechRequest
message must contain astreaming_config
message.
-
(::Google::Cloud::MediaTranslation::V1beta1::StreamingTranslateSpeechConfig) — Provides information to the recognizer that specifies how to process the
request. The first
StreamingTranslateSpeechRequest
message must contain astreaming_config
message.