-
-
Notifications
You must be signed in to change notification settings - Fork 180
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
incorrect distance announced with TTS #1584
Comments
What is your announcement interval? Sounds like it is rounded down to 1 mile. |
The announcement interval is 5 minutes. Could be rounding, but it's definitely not always. So far I haven't identified a pattern - hard to troubleshoot during a run :) |
As you using the time interval: just record a track with 1.5 miles and stop it. Then when you are indoors, just continue it. Hypotheses:
|
@rvandegrift any news? |
@dennisguse sorry for the slow response! For tracks >=2 miles, OpenTracks consistently rounds to the nearest 1/10 of a mile. It appears to truncate distances < 1mi. I tried continuing a few tracks with 1 min announcement intervals, here's what I heard:
I believe I've heard announcements in the 1<x<2 range with a decimal. But I can't reproduce that now (I only found two tracks short enough, plus I've f-droid upgraded to 4.4.0 since I opened this.) All of this is using English - US English, as you can image from my usage of this exotic unit! |
That's something to work with. |
I can reproduce this for ALL voice announcements having where
For 1, we have no variable in there... Not sure how to fix this properly. |
Moreover, our translations are very inconsistent; some have a hardcoded one, some have a variable... |
heh - thanks :)
To me, all miles with decimals should be plural: 0.2 miles, 1.1 miles, etc. Even "1.0 miles". I think singular sounds right only when it's exactly "1 mile". That looks like just using the |
I found the solution in the Android's docs: https://developer.android.com/guide/topics/resources/string-resource Here is a proof of concept (also failing tests for the current implementation: https://github.com/OpenTracksApp/OpenTracks/tree/proofOfConcept%231584 Solution: use ICU MessageFormat (not Android's
Some more input: https://phrase.com/blog/posts/android-app-development-tutorial-multi-language-support/ @pstorch @rgmf Any input on increasing minSDK to 24? |
Describe the bug
During a run, I noticed that OpenTracks announces incorrect distance sometimes. It announced "1 mile" twice, once at 1.46 and again at 1.97. The data and screen display seemed correct. Other announcements included the decimal places, so it isn't consistent.
To Reproduce
Technical information
The text was updated successfully, but these errors were encountered: