Media Translation v1beta1 API - Class StreamingTranslateSpeechRequest (2.0.0-beta03)

public sealed class StreamingTranslateSpeechRequest : IMessage<StreamingTranslateSpeechRequest>, IEquatable<StreamingTranslateSpeechRequest>, IDeepCloneable<StreamingTranslateSpeechRequest>, IBufferMessage, IMessage

Reference documentation and code samples for the Media Translation v1beta1 API class 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.

Inheritance

object > StreamingTranslateSpeechRequest

Namespace

Google.Cloud.MediaTranslation.V1Beta1

Assembly

Google.Cloud.MediaTranslation.V1Beta1.dll

Constructors

StreamingTranslateSpeechRequest()

public StreamingTranslateSpeechRequest()

StreamingTranslateSpeechRequest(StreamingTranslateSpeechRequest)

public StreamingTranslateSpeechRequest(StreamingTranslateSpeechRequest other)
Parameter
NameDescription
otherStreamingTranslateSpeechRequest

Properties

AudioContent

public ByteString AudioContent { get; set; }

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).

Property Value
TypeDescription
ByteString

HasAudioContent

public bool HasAudioContent { get; }

Gets whether the "audio_content" field is set

Property Value
TypeDescription
bool

StreamingConfig

public StreamingTranslateSpeechConfig StreamingConfig { get; set; }

Provides information to the recognizer that specifies how to process the request. The first StreamingTranslateSpeechRequest message must contain a streaming_config message.

Property Value
TypeDescription
StreamingTranslateSpeechConfig

StreamingRequestCase

public StreamingTranslateSpeechRequest.StreamingRequestOneofCase StreamingRequestCase { get; }
Property Value
TypeDescription
StreamingTranslateSpeechRequestStreamingRequestOneofCase