Some checks failed
Linux Build / Linux cpu (push) Has been cancelled
Linux Build / Linux cpu-clang (push) Has been cancelled
Linux Build / Linux vulkan (push) Has been cancelled
mac-build / macOS CPU (push) Has been cancelled
Nix Build / Nix (cpu) (push) Has been cancelled
Nix Build / Nix (vulkan) (push) Has been cancelled
windows-build / Windows CPU (push) Has been cancelled
13 lines
366 B
Bash
Executable file
13 lines
366 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
mkdir -p output
|
|
curl -f http://localhost:8080/v1/audio/speech -H 'Content-Type: application/json' -o output/speech.wav -d '
|
|
{
|
|
"model": "pocket-tts",
|
|
"input": "You are successfully running a text-to-speech model using audio.cpp, a pure C++ inference engine for audio models.",
|
|
"voice": "alba"
|
|
}
|
|
'
|
|
|
|
echo "Saved to: output/speech.wav"
|