TextToSpeechLongAudioSynthesize

google.cloud.texttospeech.v1. TextToSpeechLongAudioSynthesize

Represents a TextToSpeechLongAudioSynthesize

Constructor

new TextToSpeechLongAudioSynthesize(rpcImpl, requestDelimitedopt, responseDelimitedopt)

Constructs a new TextToSpeechLongAudioSynthesize service.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Extends

  • $protobuf.rpc.Service

Methods

synthesizeLongAudio(request, callback) → {undefined}

Calls SynthesizeLongAudio.

Parameters:
Name Type Description
request google.cloud.texttospeech.v1.ISynthesizeLongAudioRequest

SynthesizeLongAudioRequest message or plain object

callback google.cloud.texttospeech.v1.TextToSpeechLongAudioSynthesize.SynthesizeLongAudioCallback

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

Returns:
Type Description
undefined

synthesizeLongAudio(request) → {Promise.<google.longrunning.Operation>}

Calls SynthesizeLongAudio.

Parameters:
Name Type Description
request google.cloud.texttospeech.v1.ISynthesizeLongAudioRequest

SynthesizeLongAudioRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {TextToSpeechLongAudioSynthesize}

Creates new TextToSpeechLongAudioSynthesize service using the specified rpc implementation.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Returns:
Type Description
TextToSpeechLongAudioSynthesize

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

Type Definitions

SynthesizeLongAudioCallback(error, responseopt)

Callback as used by synthesizeLongAudio.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation