Closed gonzalo-bulnes closed 6 months ago
/SOUNDS/SYSTEM
is used by the firmware itself, /SOUNDS
are the user presented list of sounds, available for use by special functions, etc. sounds.json
and the list of files present in a given release. Feel free to make any suggestions/changes to the edgetx-sdcard-sounds
structuring that help with moving towards something like crowdin (for machine translation and ease of non-developer translator access) and doesn't completely tie us into a specific TTS service. Anything that touches on the firmware/buddy/companion will take longer, as the current system, while not optimal, works, so isn't as high a priority. But any assistance from someone who actually knows what they are doing would be greatly appreciated :grin:
I'll archive/close this question thread BTW!
Hi @pfeerick (and everybody else who can answers these questions!)
I'm interested in contributing some thinking and tooling to this repository. I see opportunities to reduce duplication, automate further and make the job easier for people interested in providing or correcting sounds in their own language (including by contributing translation docs). But I'd like to make sure I understand how this repo relates to the other EdgeTX projects before making the wrong assumptions.
Can I check my understanding of the goals with you?
This repository releases include:
/SOUNDS/<language code>
directory of the EdgeTX SD Card.sounds.json
file/SOUNDS/<some language code>
directory of the EdgeTX SD Card.Who consumes
sounds.json
? I don't see it used in the SD Card, is it retrieved from the releases page by Companion or Buddy?Regarding locales and voices: my understanding is that EdgeTX is not currently aware of the locale and voice, only the language. By that I mean: I can place the contents of the
en_GB-Libby
archive in my SD Card's/SOUNDS/en
directory and the contents ofes_CL-Catalina
in/SOUNDS/es
. That will allow me to switch the voice language fromEnglish
toSpanish
from the radio settings, but I can't haveen_US-Ryan
at the same time, unless I hack my way around (e.g. my placing the contents of the archive in/SOUNDS/de
and selectingGerman
. Is my understanding correct?The files in
/SOUNDS/SYSTEM
are directly referenced by EdgeTX code, and as such are required for a language pack to be complete. But the files directly at the root of/SOUNDS
are not, and can be considered optional. Is that true?Similarly, the files in
/SOUNDS/INAV
are required for the INAV language pack to be complete, but the script does not rely on any file outside of that directory. Is that also true? (Or SHOULD it be? I understand that depends in part on what the maintainers of the INAV and other scripts do.)Companion and Buddy rely on the GitHub Releases page directly to retrieve language packs and information about them, so the content of the Assets section of each release can be thought of as the interface of this repository with Companion and Buddy. Is that correct? (I'm half-guessing here.)
There MUST be an archive named
edgetx-sdcard-sounds-<language code>-<edgetx version>.zip
for each of the supported languages for Companion and Buddy to function as expected. But the archives that follow a different naming pattern (e.g.edgetx-sdcard-sounds-es_cl-catalina-2.9.0.zip
) are only meant to be downloaded by individuals who visit the Releases page. Is that correct? (Again, I'm guessing here.)If you've got pointers to the EdgeTX code that loads or consumes the content of the
/SOUNDS
directory, I'd welcome them! In particular, I'm interested in understanding if / how the first column (ID
) of the CSV files is currently used (or not used - see also https://github.com/EdgeTX/edgetx-sdcard-sounds/issues/48#issuecomment-1873611492).