Added source text for LUA scripts audio files #36
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds source text for phrases for audio files used in the commonly used LUA scripts Betaflight, iNav telemetry and Yaapu telemetry. Too keep things tidy I put them in a separate script CSV file and their output is generated into separate folders. The idea is that LUA script users can use instead of the builtin audio files these ones, which have the same voice and quality as all the other audio. This is especially nice, since some LUA scripts also use system audio files.
The original sound files can be found here:
Maybe even the functionality can be added to the LUA scripts, that they check for the
SOUNDS/<lang>/SCRIPTS/<script>/
folder themselves and prioritize them over their own audio files, so that the user doesn't have to move and overwrite any files.This PR only adds the source text and generation framework. The WAV files themselves still have to be generated.
Here is the excerpt added to the readme:
SCRIPTS
Inside the language folder (only in
en
for now) there is a folder calledSCRIPTS
, which has audio files for commonly used LUA scripts. These audio files are generated with the same voice as the other audio files of their language pack. Each script has their own folder.BETAFLIGHT
Audio files for Betaflight TX Lua Scripts. Copy the WAV files from
SOUNDS/<lang>/SCRIPTS/BETAFLIGHT/
toSOUNDS/en/
to overwrite the original audio files of the script.INAV
Audio files for iNav Lua Telemetry Flight Status. Copy the WAV files from
SOUNDS/<lang>/SCRIPTS/INAV/
toSCRIPTS/TELEMETRY/iNav/<lang>/
to overwrite the original audio files of the script.YAAPU
Audio files for Yaapu Telemetry Script and Widget. Copy the WAV files from
SOUNDS/<lang>/SCRIPTS/YAAPU/
toSOUNDS/yaapu0/<lang>/
to overwrite the original audio files of the script.