Dokumentation: keep_audio und GET /audio/{job_id} ergänzen
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
fe74b84360
commit
ce46d4aa59
2 changed files with 27 additions and 2 deletions
|
|
@ -202,6 +202,20 @@ curl -X POST http://COMPUTER-IP:9999/resume
|
|||
curl -X POST http://COMPUTER-IP:9999/stop
|
||||
```
|
||||
|
||||
**Audio-Datei herunterladen** (statt auf dem Server abspielen):
|
||||
```bash
|
||||
# 1. Auftrag erteilen mit keep_audio=true
|
||||
JOB=$(curl -s -X POST http://COMPUTER-IP:9999/speak \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"text": "Hallo Welt", "lang": "de", "keep_audio": true}' \
|
||||
| python3 -c "import sys,json; print(json.load(sys.stdin)['job_id'])")
|
||||
|
||||
# 2. Warten bis fertig, dann herunterladen
|
||||
sleep 40
|
||||
curl -o ausgabe.wav http://COMPUTER-IP:9999/audio/$JOB
|
||||
```
|
||||
Die Datei wird nach dem Herunterladen automatisch gelöscht.
|
||||
|
||||
---
|
||||
|
||||
## KI-Assistenten lassen vorlesen
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue