ttsAdapters. GoogleTTSAdapter

Google Cloud Text-to-Speech adapter (JSON, base64 audioContent).

Constructor

new GoogleTTSAdapter(defaultsopt)

Parameters:
NameTypeAttributesDescription
defaultsObject<optional>
Properties
NameTypeAttributesDefaultDescription
endpointstring<optional>

e.g. "https://texttospeech.googleapis.com/v1beta1/text:synthesize"

audioEncodingstring<optional>
"MP3"
headersany<optional>
voicestring<optional>

Methods

(async) synthesize()