Represents a TextToSpeechLongAudioSynthesize
Inheritance
$protobuf.rpc.Service > protos.google.cloud.texttospeech.v1beta1.TextToSpeechLongAudioSynthesizePackage
@google-cloud/text-to-speechConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new TextToSpeechLongAudioSynthesize service.
Parameters | |
---|---|
Name | Description |
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 | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
synthesizeLongAudio(request)
public synthesizeLongAudio(request: google.cloud.texttospeech.v1beta1.ISynthesizeLongAudioRequest): Promise<google.longrunning.Operation>;
Calls SynthesizeLongAudio.
Parameter | |
---|---|
Name | Description |
request |
google.cloud.texttospeech.v1beta1.ISynthesizeLongAudioRequest
SynthesizeLongAudioRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.longrunning.Operation> | Promise |