openedai-speech/download_samples.sh
2024-04-26 20:42:33 -04:00

5 lines
205 B
Bash
Executable File

#!/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