public sealed class SpeechTranslationServiceClientImpl : SpeechTranslationServiceClientReference documentation and code samples for the Media Translation v1beta1 API class SpeechTranslationServiceClientImpl.
SpeechTranslationService client wrapper implementation, for convenient use.
Namespace
Google.Cloud.MediaTranslation.V1Beta1Assembly
Google.Cloud.MediaTranslation.V1Beta1.dll
Remarks
Provides translation from/to media types.
Constructors
SpeechTranslationServiceClientImpl(SpeechTranslationServiceClient, SpeechTranslationServiceSettings, ILogger)
public SpeechTranslationServiceClientImpl(SpeechTranslationService.SpeechTranslationServiceClient grpcClient, SpeechTranslationServiceSettings settings, ILogger logger)Constructs a client wrapper for the SpeechTranslationService service, with the specified gRPC client and settings.
| Parameters | |
|---|---|
| Name | Description |
grpcClient |
SpeechTranslationServiceSpeechTranslationServiceClientThe underlying gRPC client. |
settings |
SpeechTranslationServiceSettingsThe base SpeechTranslationServiceSettings used within this client. |
logger |
ILoggerOptional ILogger to use within this client. |
Properties
GrpcClient
public override SpeechTranslationService.SpeechTranslationServiceClient GrpcClient { get; }The underlying gRPC SpeechTranslationService client
| Property Value | |
|---|---|
| Type | Description |
SpeechTranslationServiceSpeechTranslationServiceClient |
|
Methods
StreamingTranslateSpeech(CallSettings, BidirectionalStreamingSettings)
public override SpeechTranslationServiceClient.StreamingTranslateSpeechStream StreamingTranslateSpeech(CallSettings callSettings = null, BidirectionalStreamingSettings streamingSettings = null)Performs bidirectional streaming speech translation: receive results while sending audio. This method is only available via the gRPC API (not REST).
| Parameters | |
|---|---|
| Name | Description |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
streamingSettings |
BidirectionalStreamingSettingsIf not null, applies streaming overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
SpeechTranslationServiceClientStreamingTranslateSpeechStream |
The client-server stream. |