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
ROCm-Research-Archive/Scripts and Tests/_test_proxy.sh
T
2026-08-20 00:45:43 +02:00

25 lines
827 B
Bash

#!/bin/bash
# Test proxy_tts from host
echo "=== Test 1: curl with JSON ==="
curl -s -w '\nHTTP: %{http_code} Size: %{size_download}\n' \
-o /tmp/proxy_test1.wav \
http://localhost:9090/api/proxy/tts \
-H 'Content-Type: application/json' \
-d '{"input":"Hello, this is a quick test.","voice":"Vivian","language":"en","speed":1.0}'
echo "=== Content of response ==="
file /tmp/proxy_test1.wav 2>/dev/null || echo "No file"
head -c 100 /tmp/proxy_test1.wav 2>/dev/null | xxd | head -3
echo ""
echo "=== Test 2: curl with --data-raw ==="
curl -s -w '\nHTTP: %{http_code} Size: %{size_download}\n' \
-o /tmp/proxy_test2.wav \
http://localhost:9090/api/proxy/tts \
-H 'Content-Type: application/json' \
--data-raw '{"input":"test"}'
echo "=== Debug: dashboard logs ==="
docker logs sudx-dashboard 2>&1 | tail -5