translate-shell
translate-shell copied to clipboard
Need help formatting the filenames of downloaded audio
using the -download-audio-as
option, how can i set the file name to match this format:
[target language abbreviation] - [word or phrase].mp3
it may also be helpful to other people to know how to add in the engine used, and narrator voice.
i tried figuring this out myself, and found output = text " [" Option["engine"] "] (" Option["narrator"] ").ts"
on line 269 of Translate.awk
https://github.com/soimort/translate-shell/blob/1e3f901c479fc4f838b290f11e1b547b86bdadd4/include/Translate.awk#L263-L275
unfortunately i'm not smart enough to figure out how to use this information myself, but i'll keep messing around.