Coder Social home page Coder Social logo

chrsmj / vosk-asterisk Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alphacep/vosk-asterisk

0.0 0.0 0.0 43 KB

Speech Recognition in Asterisk with Vosk Server

License: GNU General Public License v2.0

Shell 1.28% C 80.74% Makefile 8.89% M4 9.08%

vosk-asterisk's Introduction

Vosk speech recognition modules for Asterisk

This is an asterisk module for Vosk API server:

https://github.com/alphacep/vosk-server

It is tested with latest asterisk git master, but should equally work with other branches (13,16,17).

Installation

  1. Make sure you have latest asterisk update
git clone https://github.com/asterisk/asterisk
....
  1. First build the modules
./bootstrap
./configure --with-asterisk=<path_to_asterisk_source> --prefix=<path_to_install>
make
make install

for example:

./bootstrap
./configure --with-asterisk=/usr --prefix=/usr
make
make install
  1. Edit modules.conf to load modules
load = res_speech.so
load = res_http_websocket.so
load = res_speech_vosk.so
  1. Edit dialplan in extensions.conf:
[internal]
exten = 1,1,Answer
same = n,Wait(1)
same = n,SpeechCreate
same = n,SpeechBackground(hello)
same = n,Verbose(0,Result was ${SPEECH_TEXT(0)})
  1. Run Vosk server with the Docker
docker run -d -p 2700:2700 alphacep/kaldi-en:latest
  1. Dial extension and check the result

vosk-asterisk's People

Contributors

nshmyrev avatar chrsmj avatar seanbright avatar serxoz 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.