This repository has been archived on 2026-08-19. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
2026-08-20 00:45:43 +02:00

12 lines
373 B
Bash

#!/bin/bash
curl -s -o /tmp/test_speech.wav \
-w "HTTP %{http_code} Size: %{size_download}\n" \
-X POST http://localhost:8072/v1/audio/speech \
-H "Content-Type: application/json" \
-d '{"input":"Hello World, this is a test.","voice":"Vivian","language":"english"}'
if [ -f /tmp/test_speech.wav ]; then
file /tmp/test_speech.wav
ls -la /tmp/test_speech.wav
fi