iphone sdk 如何在通话过程中播放 DTMF 音频文件

发布于 2024-10-10 15:03:12 字数 410 浏览 0 评论 0原文

我需要创建一个与电信公司交互的应用程序。 最终用户在应用程序中做出一些选择,然后我们在暂停(,)后编写一个包含 DTMF 音的号码来呼叫相应的部门。 但我的问题是:组成 DTMF 数字需要太多时间,每个数字大约一秒钟。 如果我们需要添加 10 个 DTMF 数字,速度会非常非常慢。

所以我的问题:是否可以在音频文件中记录 x DTMF(0-9)并在呼叫的音频流中快速播放它们,以加快 DTMF 的发送速度?

编辑: 也许我的问题没有以非常清晰的方式解释,但我自己不创建 DTMF 音调,我只是在暂停后添加一些数字。像这样:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel:003299887766,1234556890"]];

I need to create an application that interact with a telecom company.
The end user make some choice in the application and after that we compose a number that include DTMF tone after a pause (,) to call the corresponding departement.
But my problem is here: composing DTMF digit take too much time about one second per digit.
It's very very to slow if we need to add 10 DTMF digit.

SO my question: Is it possible to record the x DTMF's (0-9) in audio files and play them fast within the audio stream of the call to speed up the sending of DTMF's?

Edit:
Maybe my question was not explained in a very clear maneer but i don't create DTMF tone myself i just add some number after a pause. like that:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel:003299887766,1234556890"]];

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

油饼 2024-10-17 15:03:12

目前无法从 iPhone 发送较短的 DTMF 音调。

向苹果表达此事的一种方法是使用反馈表:http://www.apple。 com/feedback/iphone.html

At the moment it is not possible to send shorter DTMF tones from iPhone.

One way to say bout it to apple is to use the feedback form: http://www.apple.com/feedback/iphone.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文