Skip to main content

$dialer.getTtsProvider

This method returns the TTS provider name of the phone channel used for the current call.

Syntax

The method is called without arguments:

$dialer.getTtsProvider();

The method returns a string with the provider name:

ProviderValue
3iTechzitech
Aimyvoiceaimyvoice
Azureazure
Googlegoogle
Yandexyandex

How to use

Use the $dialer.getTtsProvider method to set up a condition that a particular TTS provider is used in the phone channel. This will allow you to call $dialer.setTtsConfig safely and override only the settings relevant for the provider.

state: SpeakFrench
q!: * speak french *
script:
var provider = $dialer.getTtsProvider();

if (provider === "google") {
$dialer.setTtsConfig({ lang: "fr-FR", voice: "fr-FR-Wavenet-D" });
} else if (provider === "azure") {
$dialer.setTtsConfig({ language: "fr-FR", voiceName: "fr-FR-DeniseNeural" });
} else {
# For other providers, the properties and values to be overridden may be different
}
a: Comment puis-je vous aider ?