Building voice prompts

UB3GDZ
Posts: 37
Joined: Sun Nov 24, 2024 10:17 pm

Re: Building voice prompts

Post by UB3GDZ » Tue Dec 17, 2024 10:03 pm

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 :oops:

VK3KYY
Posts: 8452
Joined: Sat Nov 16, 2019 3:25 am
Location: Melbourne, Australia

Re: Building voice prompts

Post by VK3KYY » Wed Dec 18, 2024 4:22 am

UB3GDZ wrote:
Tue Dec 17, 2024 10:01 pm
VK3KYY wrote:
Tue Dec 17, 2024 9:55 pm
I 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 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 !
RAW files do not contain a header with the encoding and sample rate etc, so you need to manually select these values in Audacity.

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

UB3GDZ
Posts: 37
Joined: Sun Nov 24, 2024 10:17 pm

Re: Building voice prompts

Post by UB3GDZ » Wed Dec 18, 2024 10:30 am

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
Снимок.JPG
Снимок.JPG (153.29 KiB) Viewed 1080 times

UB3GDZ
Posts: 37
Joined: Sun Nov 24, 2024 10:17 pm

Re: Building voice prompts

Post by UB3GDZ » Sat Dec 21, 2024 3:42 pm

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 ?

User avatar
F1RMB
Posts: 3017
Joined: Sat Nov 16, 2019 5:42 am
Location: Grenoble, France

Re: Building voice prompts

Post by F1RMB » Sat Dec 21, 2024 4:30 pm

UB3GDZ wrote:
Sat Dec 21, 2024 3:42 pm
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 ?
No, there is nothing to delete.

VK3KYY
Posts: 8452
Joined: Sat Nov 16, 2019 3:25 am
Location: Melbourne, Australia

Re: Building voice prompts

Post by VK3KYY » Sat Dec 21, 2024 7:38 pm

UB3GDZ wrote:
Sat Dec 21, 2024 3:42 pm
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 ?
Do not delete anything. If you delete anything they voice prompts will not work correctly

UB3GDZ
Posts: 37
Joined: Sun Nov 24, 2024 10:17 pm

Re: Building voice prompts

Post by UB3GDZ » Sat Dec 21, 2024 7:43 pm

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

VK3KYY
Posts: 8452
Joined: Sat Nov 16, 2019 3:25 am
Location: Melbourne, Australia

Re: Building voice prompts

Post by VK3KYY » Sat Dec 21, 2024 8:35 pm

UB3GDZ wrote:
Sat Dec 21, 2024 7:43 pm
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
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

UB3GDZ
Posts: 37
Joined: Sun Nov 24, 2024 10:17 pm

Re: Building voice prompts

Post by UB3GDZ » Sat Dec 21, 2024 8:40 pm

Thanks !

Post Reply