-
Notifications
You must be signed in to change notification settings - Fork 313
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
[Bug]: Nav will start talking even if mute is set on start #4670
Comments
Any updates on this issue? |
``In addition to the described issue, there are multiple more with the current speechSynthesizer, that can easily be found with minimal testing:
I am trying to make the voiceController speak an instruction, no matter the mute state. Since there is no function for that (there should be!), this is the work around, that does not work reliably:
|
Hi @JanTG1 Regarding the initial issue about unmuted voice instructions.
Could you please elaborate on the use case? Do you want to ignore the mute state and pronounce some voice instructions even if the state is muted? If so, the correct way to implement this will be to provide a custom
We will investigate this issue. Could you please provide more details? Is this bug reproducible in the sample application? Is it reproducible on a specific iOS version? |
Hello @kried the first issue seems to have been fixed! However, there is still an issue when the instructions are muted. If there is audio playback in the background, the volume will still be lowered in order to prepare for the voice instruction, which will never run because of the muted state. After the voice instruction would have finished, the volume goes back up to normal. Yes, you understood me correctly. I am trying to warn users or inform users about specific events. Since they are rare and since they is no third "Warnings only" mute state like many other navigation apps have, I wish to run these warning instructions in a way that would always be heard, no matter the current mute state. I will be trying your proposal, thanks for linking me an example! As for the volume toggle bug: I am using iOS 17.5.1 on an iPhone 15 pro, running Mapbox Navigation 3.2.0. The bug is not really reproducible, it happens sometimes but I can't determine any pattern. If I do, I will be updating the thread. For the time being, experiment using audio playback and both muted and unmuted instructions and look for the "volume toggle" animation iOS sometimes shows from the side when pressing the volume buttons or changing the volume programmatically. Sometimes when the SpeechSynthesizer prepares for a voice instruction and adjusts the volume, the volume toggle will be visible. The same can happen after a voice instruction has been completed. This will result in the volume toiggle appearing, disappearing, and reappearing multiple times in a few seconds. |
Thank you for the detailed answer, we will investigate the above-mentioned issues. |
I was able to fix all the issues regarding voice instructions using a custom Voice Controller, which I also use to speak custom voice instructions that ignore the mute state. However, I still think that this functionality would be a good addition to the default functionality. The I am happy to share if anyone wants to achieve that until then. |
Mapbox Navigation SDK version
3.1.1
Steps to reproduce
Expected behavior
The navigator should remember the last setting it had for voice instructions and never do something else than the button shows
Actual behavior
As stated above, the button shows that it is muted but the voice instructions will still be happening.
Is this a one-time issue or a repeatable issue?
repeatable
The text was updated successfully, but these errors were encountered: