Home > @magiclane/maps-sdk > SdkSettings > setTTSVoiceByLanguage

SdkSettings.setTTSVoiceByLanguage() method

Set the current TTS (computer) voice used for text-to-speech instructions. The best voice is selected based on the provided language.

Signature:

static setTTSVoiceByLanguage(language: Language): GemError;

Parameters

Parameter

Type

Description

language

Language

The voice language.

Returns:

GemError

GemError.success on success, otherwise see GemError for other values.

Exceptions

An exception if it fails.