collectTtsVoiceSummary

Collects a summary of installed TTS voice locales via a short-lived TextToSpeech engine.

Like probeTtsVoices, initializes the engine on the main thread, reads distinct sorted voice locales, then shuts the engine down. Returns an unavailable summary below API 21.

Privacy: voice-locale inventory is a stable fingerprint; no permission required.

Return

A TtsVoiceSummary with locale count and sample.

Parameters

context

Context used to construct the TTS engine (application context is used).