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

Wrong language used when you pass numbers as numbers into speak func #550

Open
1 task
ocean-beach opened this issue Dec 5, 2024 · 0 comments
Open
1 task

Comments

@ocean-beach
Copy link

ocean-beach commented Dec 5, 2024

🐛 Bug Report

Starting from ^4.0.0 when you pass numbers into speak func, e.g. await _flutterTts.speak(7) it will read it in device system language instead of the language you set before.

all good:

await _flutterTts.setLanguage("sv-SE");
await _flutterTts.speak("något prov");

not good, uses system default language instead of Swedish:

await _flutterTts.setLanguage("sv-SE");
await _flutterTts.speak("7");

When I downgraded to flutter_tts: ^3.8.5, it worked as expected

Expected behavior

Read numbers in the language you set

Reproduction steps

Use Android and Install flutter_tts: 4.0.0 or higher and try to call this code
await _flutterTts.setLanguage("sv-SE");
await _flutterTts.speak("7");
You will notice it doesn't use the language you set

Configuration

Version: 4.0.0 and higher

Platform:

  • 📱 iOS
  • [ X ] 🤖 Android
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

1 participant