RU
apps/winzik / tools / sounds / jingle.sh · commit 6576d6f
#!/usr/bin/env bash# The greeting of the first start, "WinZik! It really kicks the Winamp ass!" (the joke of 2001, made again):# espeak-ng for the voice (lower, a little echo with sox), a riff and a kick in numpy, then OGG.# Needs espeak-ng, sox, python3 + numpy, ffmpeg. Run from apps/winzik: tools/sounds/jingle.shset -euo pipefailT=$(mktemp -d); trap 'rm -rf "$T"' EXITespeak-ng -v en-us+m3 -s 135 -p 38 -a 180 -g 4 -w "$T/voice1.wav" "Win Zik!"espeak-ng -v en-us+m3 -s 150 -p 30 -a 180 -w "$T/voice2.wav" "It really kicks the Winamp ass!"sox "$T/voice1.wav" -r 22050 -c 1 "$T/v1.wav" pitch -250 reverb 30 gain -n -1sox "$T/voice2.wav" -r 22050 -c 1 "$T/v2.wav" pitch -200 reverb 25 gain -n -1python3 -I tools/sounds/mix.py "$T"ffmpeg -loglevel error -y -i "$T/jingle.wav" -c:a libvorbis -q:a 4 assets/sfx/winzik.ogg