Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 595 Bytes

README.md

File metadata and controls

23 lines (19 loc) · 595 Bytes

VAD service based on py-webrtcvad

Build the docker: docker build -t vad:v1.0 .

Run the docker: ./run.sh

Sample client:

  1. python client: python client.py path/to/audio_video/file
  2. 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"
    },
    ...
]