/audio_stream

Server Audio Stream

Primary LanguagePythonApache License 2.0Apache-2.0

AudioStream

服务端:

uvicorn main:app

客户端:

curl -X POST "http://127.0.0.1:8000/audio_stream" \
-H "Content-Type: application/json" \
-d '{
  "output_format": "mp3"
}' --output output_audio.mp3


curl -X POST "http://127.0.0.1:8000/audio_stream" \
-H "Content-Type: application/json" \
-d '{
  "output_format": "wav"
}' --output output_audio.wav

注:音频文件来自wenet