SGC Audio Quickstart¶
Uploading Audio to the App¶
To upload an audio course to the app filesystem (hosted on BackBlaze) open clink. (After running the commands below in clink they'll be saved in history, so you can just hit the up arrow to retrieve them, which will save some time.)
SSH into the Hostinger server:
If you have SSH keys setup, you'll be logged in automatically. Then you can just use rclone to copy the files from OneDrive to B2:rclone copy -Pv onedrive:"01 Audio/Spanish/ML" b2:sgc-site/production/uploads/audio/spanish/ML --include=/*.mp3
Proper phrase breaking in SAB¶
Go to the Changes tab in SAB and Add Change to auto-insert a ZWSP before each line break:
Find: (\n)
Replace: \u200B$1
Warning
When you "Synchronize using aeneas", make sure you split phrases by \u200B, and no other punctuation marks!
Split an MP3 file losslessly using ffmpeg¶
You can split an MP3 into two pieces without re-encoding (and thus without losing quality) using ffmpeg with the stream copy mode:
ffmpeg -i input.mp3 -ss 00:00:00 -to 00:02:30 -c copy part1.mp3
ffmpeg -i input.mp3 -ss 00:02:30 -c copy part2.mp3
-i input.mp3— your source file-ss 00:00:00— start time (hours:minutes:seconds)-to 00:02:30— end time for the first part (e.g. 2 minutes 30 seconds)-ccopy — stream copy mode: copies the audio data as-is, no decoding or re-encoding, so zero quality loss
The second command starts at the split point and runs to the end of the file.
Tip
You can also use -t instead of -to to specify a duration rather than an end timestamp (e.g. -t 00:02:30 means "copy 2m30s starting from -ss").