8 lines
228 B
Bash
8 lines
228 B
Bash
#!/bin/bash
|
|
curl -s -w "\nHTTP %{http_code}\n" \
|
|
-o /tmp/test_speech.wav \
|
|
http://localhost:8072/v1/audio/speech \
|
|
-H "Content-Type: application/json" \
|
|
-d '{"input":"Hello World"}' 2>&1
|
|
ls -la /tmp/test_speech.wav 2>&1
|