
IosTextToSpeechAudioCategoryOptions.allowBluetoothA2DP, IosTextToSpeechAudioCategoryOptions.allowBluetooth, The following setup allows background music and in-app audio session to continue simultaneously: await tIosAudioCategory(IosTextToSpeechAudioCategory.ambient, To set audio category and options with optional mode (iOS only). To set shared audio instance (iOS only): await tSharedInstance(true) add the dependency to your pubspec.yaml file.There's a known issue with integrating plugins that use Swift into a Flutter project created with the Objective-C template. Also, if using start and end offsets inside of setProgressHandler(), you'll need to keep a track of them if using pause since they will update once the new text is created when speak is called after being paused. Due to using onRangeStart(), pause works on SDK versions >= 26. We use that index to create a new text the next time speak is invoked. We utilize the native onRangeStart() method to determine the index of start when pause is invoked.

Pausing on Android #Īndroid TTS does not support the pause function natively, so we have implemented a work around. minSdkVersion 21Īpps targeting Android 11 that use text-to-speech should declare _ACTION_TTS_SERVICE in the queries elements of their manifest. Android #Ĭhange the minimum Android sdk version to 21 (or higher) in your android/app/adle file. speech marks (requires iOS 7+ and Android 26+)Įxample App from the macOS_app branch Web #.A flutter text to speech plugin (Swift,Kotlin) Features #
