提问人:Evan You 提问时间:11/10/2023 更新时间:11/10/2023 访问量:12
如何在 react native 中使用 symbl ai 调用 IVR?
How can I call IVR with symbl ai in react native?
问:
每个人 都。
我正在开发一个使用 react native 的 iPhone 应用程序,用于答录机检测。 当连接打开时,我成功地识别了人或答录机。
我的下一步是检测应答机,以便在我呼叫应答机时检测每个 IVR 的响应。
现在,对于AMD(答录机检测),我正在使用 symbl.ai sdk。下面是我的代码:
await clientSDK.init({
appId: symblAppId,
appSecret: symblAppSecret,
basePath: apiBase
});
console.log("SDK initialized.");
const connection = await clientSDK.startEndpoint({
endpoint: {
type: 'pstn',
phoneNumber,
// dtmf: "#1" I guess this part is important for my goal
},
intents,
actions: [{
"invokeOn": "stop",
"name": "sendSummaryEmail",
"parameters": {
"emails": summaryEmails // Add array of emails to which the email is to be sent at the end of the call
}
}],
data: {
session: {
name: `Live Intent Detection Demo - ${phoneNumber}` // Title of the Meeting, this will be reflected in summary email if configured.
}
}
}, callback);
请尽快帮助我。 谢谢。
答: 暂无答案
评论