上行链路 DTMF 音调生成

发布于 2024-08-21 16:49:25 字数 214 浏览 5 评论 0原文

有什么方法可以动态生成上行 DTMF 音(即接收器听到它)?

当我查看 android 源代码时,我看到一个名为 startDTMF() 的函数,这正是我所需要的,但我找不到任何允许我访问该函数的 API...

然后我想到使用 ToneGenerator 并尝试将声音注入麦克风流,但我再次找不到实现此目的的方法......

感谢任何帮助。

Is there any way I can dynamically generate uplink DTMF tone (ie the receiver hears it)?

When I looked at the android source code I saw a function called startDTMF() which is exactly what I need, but I couldn't find any API that allows me to access that function...

I then thought of using ToneGenerator and tried to inject the sound to the mic stream, and again I couldn't find a way to achieve this...

Any help is appreciated.

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

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

发布评论

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

评论(2

美羊羊 2024-08-28 16:49:26

也许 SDK 中的 android.media.ToneGenerator 类可以提供帮助?

Perhaps the android.media.ToneGenerator class in the SDK can help?

罪歌 2024-08-28 16:49:26

电话:1234,123

这可以帮助您。
,产生 4 秒的延迟,因此您有时可以在某些地方使用它......
但我们仍然需要从 sdk 中获取一些东西,希望 Android 人员能找到一些东西!

tel:1234,123

this can help.
, generates a 4 sec delay so you may use this at places sometimes...
but still we need to get some thing from sdk lets hope Android guys find something up!

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