以编程方式与 IVR 交互

时间:2021-03-24 18:54:03

标签: arduino voice-recognition ivr

我即将开发将调用 IVR 并在那里进行选择的应用程序,就像在 IVR“说”文本“按 1 获取更多信息”之后,我的应用程序应该按 1。 我不知道如何开始。它应该是基于 Arduino + 语音识别的东西吗?欢迎提出任何想法。

2 个答案:

答案 0 :(得分:2)

您可以使用 Dasha 编写一个简单的应用程序。

示例 DSL (DashaScript) 代码:

start node root {
    do {
        #connectSafe("<PHONE_NUMBER>"); //call phone number
    }
    transitions {
        press_number: goto press_number on #messageHasAnyIntent(["press_one", "press_two"]); //use conversational AI to understand that IVR says "press 1 to get more info"
    }
}

node press_number {
    do {
        if(#messageHasIntent("press_one")) 
            #sendDTMF("1"); //make selection by sending DTMF code
        if(#messageHasIntent("press_two"))
            #sendDTMF("2");
    }
}

然后您可以使用 Dasha 的语音识别保存 IVR 的回复并将其传递给您的应用。

如果您需要任何帮助,请随时加入我们的 dev community 或发送电子邮件至 vlad@dasha.ai。

干杯

答案 1 :(得分:0)

(这只是路径的开始)

你可以在 python 中使用:https://www.pjsip.org/python/pjsua.htm 在深入了解来源之前:https://github.com/pjsip/pjproject

或者,如果您需要 bash 命令,则 sipp 工具可能是您的朋友:https://github.com/SIPp/sipp