如何在android进行实时通话期间以编程方式发送Dtmf音调? [英] how to send Dtmf tone programmatically during a live call in android?
问题描述
我想在我的应用中以编程方式发送 DTMF 音频.在搜索时,我找到了一种方法
I Want to send DTMF Tones programmatically in my app. While searching i found a method
public void playDtmfTone (char digit)
这是Google在android中发送的新更新,以发送 DTMF 还是我们必须等待.
Is this a new update by google in android to send DTMF or still we have to wait.
http://developer.android.com/reference/android/telecom/Call.html#playDtmfTone(char)
推荐答案
有所谓的音频流,因此必须有一种在AudioManager.STREAM_VOICE_CALL
或AudioManager.STREAM_DTMF
上播放音调的方法.实际上,Skype会这样做.
There are the so called audio streams, and so there must be a way of playing tones over the AudioManager.STREAM_VOICE_CALL
or AudioManager.STREAM_DTMF
ones. Actually Skype does this.
但是您不能确定是在其他应用程序拨打的电话上播放音调.
But what you can't do for sure is to play tones over a call made from other app.
这篇关于如何在android进行实时通话期间以编程方式发送Dtmf音调?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!