SynthesisOptions interface

Per-utterance synthesis overrides passed to TextToSpeech.synthesize() and TextToSpeech.synthesizeStream().

Signature:

export declare interface SynthesisOptions 

Properties

Property Type Description
locale string Optional BCP-47 locale override (e.g. "en-US", "es-ES", "ja-JP").
voiceId string Optional voice identifier override (e.g. "af_heart", "ef_dora").

SynthesisOptions.locale

Optional BCP-47 locale override (e.g. "en-US", "es-ES", "ja-JP").

Signature:

locale?: string;

SynthesisOptions.voiceId

Optional voice identifier override (e.g. "af_heart", "ef_dora").

Signature:

voiceId?: string;