Updates the Text-to-Speech (TTS) engine to support setting and using speech rate and volume preferences across Android and iOS platforms, as well as within the Dart codebase.
Android and iOS Implementation: Modifies the native Android (MainActivity.kt) and iOS (AppDelegate.swift) code to accept speed and volume parameters for the TTS engine. These parameters are used to set the speech rate and volume when vocalizing text.
Dart Changes: Adjusts the TextToSpeechPlugin in lib/tts_plugin.dart to include optional speed and volume arguments in the speak method. This allows the TTS engine to use the provided speech rate and volume settings.
TTS Queue Update: Enhances the TTSQueue in lib/tts_isolate.dart to pass the speech rate and volume settings when vocalizing messages. This ensures that the user's preferences are respected during text-to-speech operations.
Updates the Text-to-Speech (TTS) engine to support setting and using speech rate and volume preferences across Android and iOS platforms, as well as within the Dart codebase.
MainActivity.kt
) and iOS (AppDelegate.swift
) code to acceptspeed
andvolume
parameters for the TTS engine. These parameters are used to set the speech rate and volume when vocalizing text.TextToSpeechPlugin
inlib/tts_plugin.dart
to include optionalspeed
andvolume
arguments in thespeak
method. This allows the TTS engine to use the provided speech rate and volume settings.TTSQueue
inlib/tts_isolate.dart
to pass the speech rate and volume settings when vocalizing messages. This ensures that the user's preferences are respected during text-to-speech operations.For more details, open the Copilot Workspace session.