Skip to content

This repo shows the use of Asterisk ARI externalMedia resource and another one using res_ari_stream to get a live transcription of a call.

Notifications You must be signed in to change notification settings

jorgesisco/stt_asterisk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Asterisk Live Transcript

This repo shows the use of Asterisk ARI externalMedia resource and another one using res_ari_stream to get a live transcription of a call.

The ARI creates an application that starts a bridge, the voice in that bridge will be translated.

The res_ari_stream demo can listen to an arbitrary channel

Installing

  1. clone this repository
  2. python setup.py install
  3. configure Asterisk such that calls enter the <ARI_app_name> stasis application same = n,Stasis(stt)
  4. create credentials for the Google Speech to Text API
  5. create a ARI user with username/password

Usage ARI demo

This demo is made of 3 processes

  1. The stasis application which receives the incoming call and puts everyone in a bridge.
  2. The server which create the external media channel, receives the RTP from Asterisk sends it to Google Speech API and write the result to an html file.
  3. An HTTP server to serve the generated transcript

Then visit the dispayed address in your browser

How it works

  1. When a call enters the stasis application it will be added to the bridge
  2. When the server starts listening on the configured port and create the external media channel
  3. When RTP is received the payload is sent to Google Speech to text API and an HTML file is generated

About

This repo shows the use of Asterisk ARI externalMedia resource and another one using res_ari_stream to get a live transcription of a call.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published