Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text to speech reads out "Focus equals true, text equals message" when calling the method tts.speak() #555

Open
1 of 2 tasks
https-toni opened this issue Dec 16, 2024 · 0 comments
Assignees

Comments

@https-toni
Copy link

https-toni commented Dec 16, 2024

🐛 Bug Report

Text to speech reads out "Focus equals true, text equals message" when calling the method tts.speak(). It doesn't matter if focus is set to true, false or not set at all.

This issue does not appear when downgraded to 4.0.0.

Expected behaviour

Text to speech reads out only message string.

Reproduction steps

class SessionNotifier {
  final FlutterTts _flutterTts = FlutterTts();

  Future<void> notify(String message) async {
    await _flutterTts.setLanguage('en-US');
    await _flutterTts.setSpeechRate(0.5);
    await _flutterTts.speak(message, focus: true);
  }
}

Configuration

Version: 4.2.0

Platform:

  • 📱 iOS not tested
  • 🤖 Android
@dlutton dlutton self-assigned this Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants