SynthesisOptions interface

Per-call options for speech synthesis.

Signature:

export declare interface SynthesisOptions 

Properties

Property Type Description
locale string | undefined Optional BCP-47 locale override for this synthesis call (for example, 'en-US').
voiceId string | undefined Optional voice identifier override for this synthesis call.

SynthesisOptions.locale

Optional BCP-47 locale override for this synthesis call (for example, 'en-US').

Signature:

locale?: string;

SynthesisOptions.voiceId

Optional voice identifier override for this synthesis call.

Signature:

voiceId?: string;