openedai-speech/download_samples.bat

7 lines
230 B
Batchfile

@echo off
for %%i in (alloy echo fable onyx nova shimmer) do (
if not exist "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
)
)