Skip to content

rerender2021/ASR-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This is an ASR API server.

Usage

  • Download it from release

  • Unzip it, and click run.bat

run-from-cmd

API

  • Default host: http://localhost:8200

POST /asr

  • Description: offline stream asr, It returns the currently recognized text.
  • Example:

api-asr

POST /punct

  • Description: offline punctuation restoration
  • Example:

api-punct

Dev

  • Install
> virtualenv venv --python=python3.8.10
> pip install -r requirements.txt

Then, adjust model folder structure like this:

- ...
- model
    - vosk-model-en-us-0.22-lgraph
        - am
        - conf
        - graph
        - ivector
    - INTERSPEECH-T-BRNN.pcl
- ...
- README.md
  • Run
> dev

Package

In virtual env:

> build

License

MIT