Media Translation v1beta1 API - Class SpeechTranslationService.SpeechTranslationServiceBase (2.0.0-beta03)

[BindServiceMethod(typeof(SpeechTranslationService), "BindService")]
public abstract class SpeechTranslationService.SpeechTranslationServiceBase

Reference documentation and code samples for the Media Translation v1beta1 API class SpeechTranslationService.SpeechTranslationServiceBase.

Base class for server-side implementations of SpeechTranslationService

Inheritance

object > SpeechTranslationService.SpeechTranslationServiceBase

Namespace

Google.Cloud.MediaTranslation.V1Beta1

Assembly

Google.Cloud.MediaTranslation.V1Beta1.dll

Methods

StreamingTranslateSpeech(IAsyncStreamReader<StreamingTranslateSpeechRequest>, IServerStreamWriter<StreamingTranslateSpeechResponse>, ServerCallContext)

public virtual Task StreamingTranslateSpeech(IAsyncStreamReader<StreamingTranslateSpeechRequest> requestStream, IServerStreamWriter<StreamingTranslateSpeechResponse> responseStream, ServerCallContext context)

Performs bidirectional streaming speech translation: receive results while sending audio. This method is only available via the gRPC API (not REST).

Parameters
NameDescription
requestStreamIAsyncStreamReaderStreamingTranslateSpeechRequest

Used for reading requests from the client.

responseStreamIServerStreamWriterStreamingTranslateSpeechResponse

Used for sending responses back to the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task

A task indicating completion of the handler.