Home > @magiclane/maps-sdk > VoiceType > fromId
VoiceType.fromId() function
Get VoiceType from ID.
Signature:
function fromId(id: number): VoiceType;Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
id |
number |
The voice type ID |
Returns:
Corresponding VoiceType value
Exceptions
Error if ID is invalid