AbstractStaticaudioGet the audio low-latency output frame size (Android only).
On iOS this returns 0.
The frame size in samples, or 0 when not supported
StaticaudioStaticcallReturns the current call timing delay (milliseconds).
The delay in milliseconds
Set call timing delay in milliseconds.
Only relevant when audio is played as a Bluetooth phone call.
Delay in milliseconds
StaticcanReturns whether automatic playback of TTS instructions is enabled.
True when automatic playback is enabled, false otherwise
StaticnativeGet the native audio output sample rate (Android only).
On iOS this returns 0.
The native sample rate, or 0 when not supported
StaticsoundObtain the singleton SoundPlayingListener used to observe playback events.
The listener is created once and registered with the platform. Use SoundPlayingListener.registerOnStart and SoundPlayingListener.registerOnStop to receive playback events.
The singleton SoundPlayingListener instance
StaticsoundReturn the currently configured sound session request preferences.
The returned instance is a copy; set soundSessionRequestPreferences to persist changes.
A SoundSessionRequestPreferences instance
Apply sound session request preferences used when requesting audio focus from the platform.
The preferences to apply
StaticttsExperimentalReturn the Language currently being used in the system as the default TTS language.
The default TTS Language
StaticvoiceStaticwarningsStaticcancelCancel currently playing navigation sounds.
Use this to immediately stop navigation-related audio playback.
StaticgetRetrieve sound playback preferences for the given severity.
The returned instance is a copy; call setSoundPlayingPreferences to persist modifications.
Alert severity to retrieve preferences for
A SoundPlayingPreferences instance for the requested severity
StaticplayPlay a pre-recorded sound by id.
Platform-specific identifier for the sound to play
StaticplayPlay the given text using TTS.
The text to be synthesized and played
Optional severity used to select preferences (defaults to AlertSeverity.information)
StaticresetInternalReset cached listener. Should not be called by API users.
StaticsetApply sound playback preferences for the given severity.
Only fields present in the provided SoundPlayingPreferences instance are applied. To change preferences, modify an instance returned by getSoundPlayingPreferences and call this method to persist the change.
This method does not take into account any ongoing system interruptions.
Preferences to apply
Target alert severity (defaults to AlertSeverity.information)
High-level static API for playing sounds and TTS through the SDK.
This class exposes only static members and acts as a thin bridge to the native sound engine. Use SoundPlayingListener to observe playback lifecycle events, and SoundPlayingPreferences to configure per-severity playback settings.