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
- Host: GitHub
- URL: https://github.com/hscspring/audio_stream
- Owner: hscspring
- License: apache-2.0
- Created: 2024-01-29T13:52:07.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-29T14:24:58.000Z (over 2 years ago)
- Last Synced: 2025-01-03T00:45:05.756Z (over 1 year ago)
- Topics: audio-stream, streaming
- Language: Python
- Homepage:
- Size: 121 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)。