$dialer.getTtsConfig
This method returns the TTS provider settings of the phone channel used for the current call.
Syntax
The method is called without arguments:
$dialer.getTtsConfig();
The method returns a settings object.
The properties of this object are different based on the provider.
If the provider supports no additional settings, the method returns an empty object {}
.
tip
All settings returned by the method
can be overridden for the current call using the
$dialer.setTtsConfig
method.Provider settings
Google
-
lang
- Synthesized speech language.
-
voice
- Speech synthesis language.
tipSee the complete list of languages and voices for synthesis in the Google documentation. -
- Voice pitch.
Takes an integer or float value from
-20
to20
, where-20
means a 20-halftone decrease from the original tone, and20
means the same increase.
- Voice pitch.
Takes an integer or float value from
-
- Synthesized speech rate.
Takes an integer or float value from
0.25
to4
, where1
is the normal voice speed.
- Synthesized speech rate.
Takes an integer or float value from
-
- Volume increase in dB relative to the normal voice volume.
Takes an integer or float value from
-96
to16
. When set to6
, the volume is approximately twice as high as normal.
- Volume increase in dB relative to the normal voice volume.
Takes an integer or float value from
Azure
-
language
- Synthesized speech language.
-
voiceName
- Speech synthesis language.
tipSee the complete list of languages and voices for synthesis in the Azure documentation. -
sampleRate
- Sample rate.