#!/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