An open API service indexing awesome lists of open source software.

https://github.com/hscspring/audio_stream

Server Audio Stream
https://github.com/hscspring/audio_stream

audio-stream streaming

Last synced: about 1 year ago
JSON representation

Server Audio Stream

Awesome Lists containing this project

README

          

# AudioStream

服务端:

```bash
uvicorn main:app
```

客户端:

```bash
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](https://github.com/wenet-e2e/wenet/tree/main/runtime/gpu/client/test_wavs)。