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
Swedish sound files numbering and collision #3078
Comments
What radio type? What OpenTX version? |
OpenTx 2.1.12 ( I think). One of the latest. Taranis. |
It's either 2.0.17 or 2.1.6. We don't have automated generation for Swedish so rely on someone to provide an updated pack. |
Yes I can provide an updated sound pack. |
In the english file we have EN_PROMPT_UNITS_BASE = 113, in swedish: SE_PROMPT_UNITS_BASE = 115, so I guess 170 would be enough. Some units are virtual and thus will never be spoken. |
Makes sense. Also largest number in the updated soundfiles is 0164, so even 165 should work. |
No, all ARM-based platforms are identical. |
Thanks. I have tested and found something odd. I add a telemetrysensor with unit "A" and make Companion tell me its value and it says "zero ampere". Good. But Taranis says "zero volt", all units are off by one. I can see in the I18N_PLAY-functions that there are many (unit+1) and (unit-1) in tts_se.cpp where tts_en.cpp only has unit. I can see that the off by one can come from that. Does Companion use the same I18N_PLAY-functions? It doesn't I guess since the units work there. |
Are you sure you've got the same pack on the radio and PC? The functions should be the same. |
Should be the same. Ok. Hmm. I think this is a better way to do it. A simple fix could not solve the Swedish sound file numbering issue, so we do it the same was as the EN way. |
Yes that's the correct way to do it :) |
One guy tested with a GPS sensor and ran into unit problems again. GPS position and date units overlap with the "point 2" sounds. I can easily adjust SE_PROMPTS_UNIT_BASE and that solves it. |
One way to do it without breaking everyone's voice file numbering is to change in myeeprom.h |
But then you'd break everybody's model setups ;) |
What did he do? "Play Value GPS"? That is not supposed to be played, so the problem is rather that this should not be allowed in the choices list i.e. any telemetry item where unit >= UNIT_FIRST_VIRTUAL should be masked out of the list of choices for Play Value (that's the whole point of virtual units, they're for internal "bookkeeping" but define that the value is not something that can be presented to the user as such). |
Oh I see, that would be popular :) We will be ready tomorrow I think, we are looking over flight-mode voice files. |
Okay I think we are ready. I have a voice pack and a new tts_se.cpp (77 lines diff). |
Ideally use the Github workflow for the code (fork, create a branch from master, commit, submit a pull request). |
Great, thanks. Links to the files are here. https://dl.dropboxusercontent.com/s/dedkkro9yvler4m/Swedish-taranis.zip I'll have to read up on github. |
Committed and uploaded |
Hi,
the sound files for Swedish language is missing from the download site.
We have an updated the sound files with the correct numbering and want hem added to the download server.
A bug is found in tts_se.cpp SE_PROMPT_POINT_BASE is too low and sound file numbering for ".0" will collide with the higher numbered unit sounds files.
These two changes should go together I guess.
The text was updated successfully, but these errors were encountered: