Home > @magiclane/maps-sdk > Voice
Voice class
Voice information object.
Provides metadata about a voice asset: its name, language and file location. Returned voices can be used with TTS and playback APIs.
It is usually obtained via SdkSettings.voice after setting the desired voice using SdkSettings.setVoiceByPath or SdkSettings.setTTSVoiceByLanguage.
Signature:
export declare class Voice extends GemAutoreleaseObject Extends: GemAutoreleaseObject
Constructors
|
Constructor |
Modifiers |
Description |
|---|---|---|
|
Creates a Voice instance. |
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
|
string |
Returns the absolute file path for the voice asset on the device. | |
|
|
Returns the Language associated with this voice. | ||
|
|
string |
Returns the human-readable name of the voice. | |
|
|
number | bigint | ||
|
|
Returns the voice type (VoiceType) indicating human or computer voice. | ||
|
|
number |
Returns the internal identifier for this voice. |