ttsSetVoice method
Set the TTS voice by its identifier, optionally for a specific language.
Implementation
@override
Future<void> ttsSetVoice(String voiceIdentifier, String? forLanguage) async {
await methodChannel.invokeMethod('ttsSetVoice', [
voiceIdentifier,
forLanguage,
]);
}