AndroidSpeechSynthesisSession
A SpeechSynthesizing backed by Android's TextToSpeech.
The engine is created lazily on first use and kept until close. Each speak interrupts whatever is being spoken (the previous request's flow ends with SpeechSynthesisEvent.Cancelled). Call close when finished to release the engine; a closed session creates a fresh engine on the next use.
The logger receives lengths, language tags, and error codes only, never the spoken text.
Parameters
context
Any context; the application context is retained.
logger
Receives diagnostic messages. Defaults to NoOpLogger.
Functions
Link copied to clipboard
Speaks request, interrupting anything already being spoken.
Link copied to clipboard
Every voice the engine offers.