voice_audio_multi/examples/docker/server/qwen3-tts.sh
Fabio c36510c21e
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
Initial import: audio.cpp with Orange Pi documentation
2026-11-04 19:05:22 +01:00

17 lines
539 B
Bash
Executable file

#!/usr/bin/env bash
set -e
REFERENCES_DIR="$(cd "$(dirname "$0")/../references" && pwd)"
REF_TEXT="$(cat "$REFERENCES_DIR/ref_text.txt")"
mkdir -p output
curl -f http://localhost:8080/v1/audio/speech -H 'Content-Type: application/json' -o output/speech.wav -d '
{
"model": "qwen3-tts",
"input": "You are successfully running a text-to-speech model using audio.cpp, a pure C++ inference engine for audio models.",
"voice_ref": "/references/ref_audio.wav",
"reference_text": "'"$REF_TEXT"'"
}
'
echo "Saved to: output/speech.wav"