kind-postman-17041
06/07/2025, 1:14 AMtall-airline-16756
06/07/2025, 1:14 AMtall-airline-16756
06/07/2025, 1:14 AMpublishDtmf API on the localParticipant object to transmit DTMF tones. This is particularly useful for relaying signals to telephone users via SIP participants.
The publishDtmf function requires two parameters:
• `code`: An integer representing the DTMF signal code
• `digit`: A string representing the DTMF digit (e.g., "1", "#", "*")
Here is an example usage:
// publishes 123# in DTMF
await localParticipant.publishDtmf(1, '1');
await localParticipant.publishDtmf(2, '2');
await localParticipant.publishDtmf(3, '3');
await localParticipant.publishDtmf(11, '#');
Let me know if you need further assistance!
Sources: publishDtmf | Handling DTMF | LiveKit Docs