TTS-OPENAI-FREE / download_samples.sh
imseldrith's picture
Upload folder using huggingface_hub (#2)
2a8b06e verified
raw
history blame contribute delete
205 Bytes
#!/bin/sh
for i in alloy echo fable onyx nova shimmer; do
[ ! -e "voices/$i.wav" ] && curl -s https://cdn.openai.com/API/docs/audio/$i.wav | ffmpeg -loglevel error -i - -ar 22050 -ac 1 voices/$i.wav
done