Open NafetsRC opened 3 weeks ago
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
PREC2
plays a number with two decimal places (for a number 123 it plays 1.23)
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.
We really should either fix that in code in our side (i.e. special handling if PREC2 param given), or remove
PREC2
plays a number with two decimal places (for a number 123 it plays 1.23)from the documentation and code ;)
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