Giter Club home page Giter Club logo

damo-fsmn-vad-infer-httpserver's Introduction

项目描述

  • DAMO/FSMN VAD C++ onnx 推理实现
  • 通过RestFul接口获取音频文件vad信息
  • 支持16k 16bit mono PCM格式wav推理

编译安装

mkdir build && cd build
cmake .. && cmake --build .

启动方法

server启动

./vad_server \
     --vad_model ../model/model.onnx \
     --vad_sample_rate 16000 \
     --vad_silence_duration 800 \
     --vad_max_single_segment_time 15000 \
     --vad_speech_noise_thres 0.9 \
     --port 8080

client测试

./vad_client \
     --server  "http://127.0.0.1:8080" \
     --wav_file xx.wav

接口名称

返回音频的VAD信息

请求URL

POST /

请求头

参数名 类型 必选 描述
filename string 发送的wave音频名称

请求体

请求体需要发送一个二进制的wave音频文件。

响应体

参数名 类型 描述
filename string 音频文件名
vad_segments array 音频文件的VAD信息,每个元素由bged两个int类型字段表示开始和结束时间(毫秒)

返回示例

{
  "filename": "test.wav",
  "vad_segments": [
    {
      "bg": 0,
      "ed": 2500
    },
    {
      "bg": 3000,
      "ed": 5700
    }
  ]
}

错误码

错误码 错误描述
500 服务器内部错误

damo-fsmn-vad-infer-httpserver's People

Contributors

zhuzizyf avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.