android dtmf同步,Android中使用webRTC发送Dtmf信令

本文档介绍了一种任务调度方法,用于发送指定的DTMF(双音多频)音调。通过API,用户可以插入音调系列,每个字符对应特定音调,支持延迟和个性化时长。同时,如果同一对象已有任务在运行,会取消旧任务。确保高效且灵活的DTMF生成和控制。
摘要由CSDN通过智能技术生成

/**

* Queues a task that sends the provided DTMF tones.

*

* If insertDtmf is called on the same object while an existing task for this

* object to generate DTMF is still running, the previous task is canceled.

*

* @param tones This parameter is treated as a series of characters. The characters 0

* through 9, A through D, #, and * generate the associated DTMF tones. The

* characters a to d are equivalent to A to D. The character ',' indicates a

* delay of 2 seconds before processing the next character in the tones

* parameter. Unrecognized characters are ignored.

* @param duration Indicates the duration in ms to use for each character passed in the tones

* parameter. The duration cannot be more than 6000 or less than 70.

* @param interToneGap Indicates the gap between tones in ms. Must be at least 50 ms but should be

* as short as possible.

* @return true on success and false on failure.

*/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值