Building voice prompts
Re: Building voice prompts
I'll try and work it out, all I'm doing is facing this for the first time without any skills so I realise how stupid I look, sorry about that
Re: Building voice prompts
RAW files do not contain a header with the encoding and sample rate etc, so you need to manually select these values in Audacity.UB3GDZ wrote: ↑Tue Dec 17, 2024 10:01 pmIf I play the .RAW file in Audacity as it is defined, namely in 44100 Hz, it plays in accelerated mode, as soon as I manually change this value to 8000Hz, it sounds fine ! Apparently I need to somehow disconnect the script from TTSMP3 and work only locally !VK3KYY wrote: ↑Tue Dec 17, 2024 9:55 pmI presume you mean, that if you open the RAW files with that setting, then Audacity plays the audio at the correct speed etc.
If this is the case, then check the conversion parameters for ffmpeg. They work OK with the MP3 files from TTSMP3, so the presumption is that ffmpeg could output the file with the same RAW paramaters , regardless of the mp3
If changing the sample rate, in Audacity, to 8000Hz plays the audio at the correct speed and pitch, then the audio has been correctly converted by ffmpeg to 8Khz mono 16 bit.
The file size of your raw files should not be significantly different to the equivalent files in another language, e.g. German, depending on your exact translation of the English text, i.e German translations are often longer than the English version because of the nature of the German language.
If you created replacement MP3 files, then you need to deleted your RAW and AMB files and re-run the script.
It checks if the mp3 files are present and does not download them again if the already exist. It then checks for the RAW version and if this does not exist then the script creates the RAW version, and finally the script checks for AMB files and if these do not exist, the script will use the radio to convert RAW to AMB and then build a new VPR file
Re: Building voice prompts
Thank you ! Yes I have it working like that, so my .RAW is correct, apparently when I re-compress the original MP3s they become larger than they were originally and the tempo_1.25 package hits the size limits ! I tried for a test pre-compressing the MP3s to poor quality with very small file sizes, but the FFMPEG re-conversion brings everything back to the same size as before
Re: Building voice prompts
There are files like PROMPT_UNUSED_10 in the package, can they be deleted ? The PROMPT_SPACE file does silence or pause, and UNUSED is not used in any way ?
Re: Building voice prompts
Thanks, I get it, I saw that it looked like a stub or silence between words and wanted to make those files even smaller to save memory
Re: Building voice prompts
Yes. The silence is the space between words. Although this could be hard coded into the firmware, radios like the GD-77 have virtually no free program space and its essential for us to not put things into program space which can be put into Flash memory
The other items can't be deleted because they would break backwards compatibility with the firmware. i.e you would need to recompile the firmware to match the changes to your voice prompt items index, and your VP's would only work with your version of firmware
We do not change the structure of the VPs e.g. remove items which are unused, because this would require every user to update their firmware to match the new VP structure