This project is a first prototype. If we success, we go to big project.
The prototype is to have the recognition text from 2 users.
We use google speech api
We use this Perl program as AGI script to call google speech api (This program work correctly) when a user call the Asterisk extension. But don't work when Dial an external Sip account.
For best understand : see the [login to view URL]
So the job is to write a dialplan wich do this :
1 - user 1 call a number hosted on provider
2 - Asterisk is connected to this provider and receive the call wich is sent to extension (did) 1111
3 - user2 is connected on siphone to account 1111
4 - when user 1 and user 2 are connected : the program Agi recognition must be called and get text conversation
Remark :
- we provide a host for dev test. We provide account sip for test.
- Asterisk 13 is already installed
- [login to view URL] is also installed and from [login to view URL] , this programm work correctly when user 1 call asterisk and asterisk repond directly
Before to reponse : be sure that :
- you understand my little need (for now) and ask me question
- you must be expert in dialplan/extension Asterisk
- you must well know perl script (if need to update [login to view URL])
Hi, problem is that agi recognition script doesn't work in realtime,after it stop recording of voice it make encoding recorded file in flac and sends it to google.
So you can just make recording of conversation and sends it after cal finished to google or other voice engine, but it will not work in realtime.