Home > @magiclane/maps-sdk > SoundPlayingService > playText
SoundPlayingService.playText() method
Play the given text using TTS.
Signature:
static playText(text: string, severity?: AlertSeverity): void;Parameters
Parameter | Type | Description |
|---|---|---|
text | string | The text to be synthesized and played |
severity | (Optional) Optional severity used to select preferences (defaults to AlertSeverity.information) |
Returns:
void