VAD service based on py-webrtcvad
Build the docker: docker build -t vad:v1.0 .
Run the docker: ./run.sh
Sample client:
- python client:
python client.py path/to/audio_video/file
- curl client:
curl -X POST "http://192.168.1.101:8009/uploadfile" -H "accept: application/json" -H "Content-Type: multipart/form-data" -F "file=@file_path"
Output format:
[
{
"start": 0.0,
"end": 10.0,
"duration": 10.0,
"aggressiveness": 0,
"data": "base64 encoded of raw pcm data"
},
...
]