Class protos.google.cloud.texttospeech.v1beta1.TextToSpeechLongAudioSynthesize (4.2.2)

Represents a TextToSpeechLongAudioSynthesize

Inheritance

$protobuf.rpc.Service > protos.google.cloud.texttospeech.v1beta1.TextToSpeechLongAudioSynthesize

Package

@google-cloud/text-to-speech

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new TextToSpeechLongAudioSynthesize service.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): TextToSpeechLongAudioSynthesize;

Creates new TextToSpeechLongAudioSynthesize service using the specified rpc implementation.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
TextToSpeechLongAudioSynthesize

RPC service. Useful where requests and/or responses are streamed.

synthesizeLongAudio(request, callback)

public synthesizeLongAudio(request: google.cloud.texttospeech.v1beta1.ISynthesizeLongAudioRequest, callback: google.cloud.texttospeech.v1beta1.TextToSpeechLongAudioSynthesize.SynthesizeLongAudioCallback): void;

Calls SynthesizeLongAudio.

Parameters
NameDescription
request google.cloud.texttospeech.v1beta1.ISynthesizeLongAudioRequest

SynthesizeLongAudioRequest message or plain object

callback google.cloud.texttospeech.v1beta1.TextToSpeechLongAudioSynthesize.SynthesizeLongAudioCallback

Node-style callback called with the error, if any, and Operation

Returns
TypeDescription
void

synthesizeLongAudio(request)

public synthesizeLongAudio(request: google.cloud.texttospeech.v1beta1.ISynthesizeLongAudioRequest): Promise<google.longrunning.Operation>;

Calls SynthesizeLongAudio.

Parameter
NameDescription
request google.cloud.texttospeech.v1beta1.ISynthesizeLongAudioRequest

SynthesizeLongAudioRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise