-
-
Notifications
You must be signed in to change notification settings - Fork 332
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
LUA playNumber with PREC2 - last decimal digit missing #5480
Comments
The TTS engine is currently only generating audio with 1 digit after the coma. That dates OpenTX, and is designed to keep a balance between accuracy and annoyance of too long audio speech. Since you are un LUA, you can easy write a function that does what you want, without altering other users sound behavior |
Thanks 4 Info ! |
So this is actually a bug that has been present in OTX since 2.0.0? As it doesn't match the codes own documentation ;) We really should either fix that in code in our side (i.e. special handling if PREC2 param given), or remove
from the documentation and code ;) |
PREC is needed to as a divider for the value, but doesn’t drive how many digits will be said. Yes it is a bug in the documentation imho. |
Think, this would be really a great idea !!! There are also some other people, who where misleaded from this… cheers |
Is there an existing issue for this problem?
What part of EdgeTX is the focus of this bug?
Transmitter firmware
Current Behavior
playNumber(123, 1, PREC2) says: „one point two volts“
Expected Behavior
should say: „one point two three volts“ or ‚twentythree‘
Steps To Reproduce
Put this line in a function LUA
same behavior in v2.9.4 AND v2.10.3
Version
2.10.3
Transmitter
RadioMaster TX16S / TX16SMK2
Operating System (OS)
No response
OS Version
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: