A demo project to test silero-vad using REST API
wheel
numpy
ipython
torch >= 1.9.0
torchaudio >= 0.9.0
flask
flask_api
pip install -r requirements.txt
python ./src/server.py
request vad timestamp from wav file url
Request
http://localhost:8080/vad_timestamp?url=http://example.com/test.wav
Query | Type | Description |
---|---|---|
url | string | Wav file URL |
Response
[
{
"start": 1.9,
"end": 3.4
}
]
Response | Type | Description |
---|---|---|
body | JSONArray | timestamp list of voice activity |
request vad timestamp from wav file
Request
http://localhost:8080/vad_timestamp
Body | Type | Description |
---|---|---|
data | bytes | Audio Binary |
Response
[
{
"start": 1.9,
"end": 3.4
}
]
Response | Type | Description |
---|---|---|
body | JSONArray | timestamp list of voice activity |