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

iPhone 14 Pro Max (17.5.1) not work #520

Open
1 task
giantss opened this issue Aug 13, 2024 · 1 comment
Open
1 task

iPhone 14 Pro Max (17.5.1) not work #520

giantss opened this issue Aug 13, 2024 · 1 comment

Comments

@giantss
Copy link

giantss commented Aug 13, 2024

🐛 Bug Report

I received user feedback that there is no sound when playing speech synthesis on iPhone 14 Pro Max (17.5.1) (the code is executed and no errors are seen). I tried two other iPhone 15 pro (17.4.1) and iPhone 12 (17.2.1), and they can play normally. I suspect that the system version is too high. Then I upgraded the iPhone 15 pro system version to 17.6.1, and the test playback can still play. What should I do if I encounter such a problem?

Configuration

Flutter 3.19.5
flutter_tts: ^3.8.5

Platform:

  • 📱 iOS
image
@TheCodeDaniel
Copy link

I think you should try

  1. Upgrade to the current latest version
    I also use IOS "17.5.1", although i don't use iPhone 14 series, but it works fine for me.
  2. Also check your code implementation.

`
FlutterTts flutterTts = FlutterTts();

Future initializeTts() async {
await flutterTts.setLanguage("en-US"); // Set the language
await flutterTts.setPitch(1.0); // Set the pitch
}

speak(String text) async {
var result = await flutterTts.speak(text);
if (kDebugMode) {
print("Speaking started: ${result == 1 ? true : false}");
}
}

stopSpeaking() async {
var result = await flutterTts.stop();
if (kDebugMode) {
print("Speaking started: ${result == 1 ? true : false}");
}
}

@OverRide
void initState() {
super.initState();
initializeTts();
}

@OverRide
void dispose() {
flutterTts.stop();
super.dispose();
}`

That is the code i used and it worked for me.

@dlutton , i think this should work, it could lead to one less issue on this repo 🙂 ?

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