Skip to content

qkdxorjs1002/silero-vad-restapi-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

silero-vad-restapi-demo

A demo project to test silero-vad using REST API

Requirements

wheel
numpy
ipython
torch >= 1.9.0
torchaudio >= 0.9.0
flask
flask_api

Usage

pip install -r requirements.txt
python ./src/server.py

REST API

GET /vad_timestamp

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

POST /vad_timestamp

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

About

A demo project to test silero-vad using REST API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages