M
M
Marinaserova2021-09-08 10:49:37
Asterisk
Marinaserova, 2021-09-08 10:49:37

Is there an open source solution for voice IVR?

Please tell me if there is an opensource solution for this problem.

You need something like a voice IVR for both incoming and outgoing calls, using technologies such as:

Dialers themselves: Asterisk or Freeswitch
Voice recognition: Mozilla Deepspeech, Vosk, etc.
We use pre-recorded audio files to respond to clients.
---------------------------- Config
example

Recognizable keywords: hello, listen, Associated
audio file: Hello.wav

Recognizable keywords: once, behind the wheel, type later
Associated audio file: Farewell.wav

----------------------------

That is: we run what the client says through any of these systems: Mozilla Deepspeech, Vosk, in real time.
If, during recognition, we catch the keyword specified in the config, then we play a pre-recorded audio file associated with the keyword in the config.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
nshmyrev, 2022-03-04
@nshmyrev

The module for wax and asterisk can be downloaded here:
https://github.com/alphacep/vosk-asterisk
, build according to the instructions. The logic with playing the file is implemented in 3 lines in the dialplan:

[internal]
exten = 1,1,Answer
same = n,Wait(1)
same = n,SpeechCreate
same = n,SpeechBackground(hello)
same = n,GotoIf($["${SPEECH_TEXT(0)}}" = "привет мир"]? true : false)
same => n(true),Playback(phrase)
same => n(false),Hangup()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question