public sealed class StreamingTranslateSpeechConfig : IMessage<StreamingTranslateSpeechConfig>, IEquatable<StreamingTranslateSpeechConfig>, IDeepCloneable<StreamingTranslateSpeechConfig>, IBufferMessage, IMessage
Reference documentation and code samples for the Media Translation v1beta1 API class StreamingTranslateSpeechConfig.
Optional. If false or omitted, the system performs
continuous translation (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 multiple
StreamingTranslateSpeechResults with the is_final flag set to true.
If true, the speech translator will detect a single spoken utterance.
When it detects that the user has paused or stopped speaking, it will
return an END_OF_SINGLE_UTTERANCE event and cease translation.
When the client receives 'END_OF_SINGLE_UTTERANCE' event, the client should
stop sending the requests. However, clients should keep receiving remaining
responses until the stream is terminated. To construct the complete
sentence in a streaming way, one should override (if 'is_final' of previous
response is false), or append (if 'is_final' of previous response is true).
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eStreamingTranslateSpeechConfig\u003c/code\u003e class is 2.0.0-beta05, which is part of the Media Translation v1beta1 API.\u003c/p\u003e\n"],["\u003cp\u003eThis class is designed for configuring streaming translation of speech, inheriting from \u003ccode\u003eobject\u003c/code\u003e and implementing several interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eStreamingTranslateSpeechConfig\u003c/code\u003e includes properties such as \u003ccode\u003eAudioConfig\u003c/code\u003e, which is a required configuration for audio content, and \u003ccode\u003eSingleUtterance\u003c/code\u003e, a boolean that controls continuous or single-utterance translation.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers two constructors: a default constructor, and another for creating an instance from another \u003ccode\u003eStreamingTranslateSpeechConfig\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eThere are also Inherited members such as \u003ccode\u003eGetHashCode()\u003c/code\u003e, \u003ccode\u003eGetType()\u003c/code\u003e, and \u003ccode\u003eToString()\u003c/code\u003e that can be used with the \u003ccode\u003eStreamingTranslateSpeechConfig\u003c/code\u003e object.\u003c/p\u003e\n"]]],[],null,["# Media Translation v1beta1 API - Class StreamingTranslateSpeechConfig (2.0.0-beta05)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.0-beta05 (latest)](/dotnet/docs/reference/Google.Cloud.MediaTranslation.V1Beta1/latest/Google.Cloud.MediaTranslation.V1Beta1.StreamingTranslateSpeechConfig)\n- [2.0.0-beta04](/dotnet/docs/reference/Google.Cloud.MediaTranslation.V1Beta1/2.0.0-beta04/Google.Cloud.MediaTranslation.V1Beta1.StreamingTranslateSpeechConfig)\n- [1.0.0-beta03](/dotnet/docs/reference/Google.Cloud.MediaTranslation.V1Beta1/1.0.0-beta03/Google.Cloud.MediaTranslation.V1Beta1.StreamingTranslateSpeechConfig) \n\n public sealed class StreamingTranslateSpeechConfig : IMessage\u003cStreamingTranslateSpeechConfig\u003e, IEquatable\u003cStreamingTranslateSpeechConfig\u003e, IDeepCloneable\u003cStreamingTranslateSpeechConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Media Translation v1beta1 API class StreamingTranslateSpeechConfig.\n\nConfig used for streaming translation. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e StreamingTranslateSpeechConfig \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[StreamingTranslateSpeechConfig](/dotnet/docs/reference/Google.Cloud.MediaTranslation.V1Beta1/latest/Google.Cloud.MediaTranslation.V1Beta1.StreamingTranslateSpeechConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[StreamingTranslateSpeechConfig](/dotnet/docs/reference/Google.Cloud.MediaTranslation.V1Beta1/latest/Google.Cloud.MediaTranslation.V1Beta1.StreamingTranslateSpeechConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[StreamingTranslateSpeechConfig](/dotnet/docs/reference/Google.Cloud.MediaTranslation.V1Beta1/latest/Google.Cloud.MediaTranslation.V1Beta1.StreamingTranslateSpeechConfig), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.MediaTranslation.V1Beta1](/dotnet/docs/reference/Google.Cloud.MediaTranslation.V1Beta1/latest/Google.Cloud.MediaTranslation.V1Beta1)\n\nAssembly\n--------\n\nGoogle.Cloud.MediaTranslation.V1Beta1.dll\n\nConstructors\n------------\n\n### StreamingTranslateSpeechConfig()\n\n public StreamingTranslateSpeechConfig()\n\n### StreamingTranslateSpeechConfig(StreamingTranslateSpeechConfig)\n\n public StreamingTranslateSpeechConfig(StreamingTranslateSpeechConfig other)\n\nProperties\n----------\n\n### AudioConfig\n\n public TranslateSpeechConfig AudioConfig { get; set; }\n\nRequired. The common config for all the following audio contents.\n\n### SingleUtterance\n\n public bool SingleUtterance { get; set; }\n\nOptional. If `false` or omitted, the system performs\ncontinuous translation (continuing to wait for and process audio even if\nthe user pauses speaking) until the client closes the input stream (gRPC\nAPI) or until the maximum time limit has been reached. May return multiple\n`StreamingTranslateSpeechResult`s with the `is_final` flag set to `true`.\n\nIf `true`, the speech translator will detect a single spoken utterance.\nWhen it detects that the user has paused or stopped speaking, it will\nreturn an `END_OF_SINGLE_UTTERANCE` event and cease translation.\nWhen the client receives 'END_OF_SINGLE_UTTERANCE' event, the client should\nstop sending the requests. However, clients should keep receiving remaining\nresponses until the stream is terminated. To construct the complete\nsentence in a streaming way, one should override (if 'is_final' of previous\nresponse is false), or append (if 'is_final' of previous response is true)."]]