is there any way to get the numpad input from live...
# ask-ai
n
is there any way to get the numpad input from livekit
t
Thanks for reaching out, Hwuiwon. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Absolutely, LiveKit can capture numpad input! You can simply listen to the browser’s
keydown
and
keyup
events on the frontend to detect when numpad keys are pressed. From there, these events can be serialized and shared with other participants or backend systems using LiveKit’s
publishData()
method. If you'd like, I’d be more than happy to provide more details or examples to help you implement this smoothly. Just let me know! Sources: tests/test_evals.py | frontend/pages/rooms/[name].tsx
n
not from browser. i'm talking about the phone calls. the keypad that's pressed from phone when making a call
t
I'm glad you asked! LiveKit supports capturing DTMF (Dual-Tone Multi-Frequency) tones, which are those signals you hear when pressing keys on a phone keypad during a call. These tones come through as events that you can easily handle in your application. For instance, you can use the
RoomEvent.DtmfReceived
event to catch the numeric code and the string representation of the key pressed, along with the participant's identity. This feature is especially handy for things like IVR (Interactive Voice Response) systems or other telephony integrations. If you'd like, I’m here to help with implementation details or examples—just let me know! Sources: agent.py | Docs::Telephony | ivr-nagivator/frontend/src/App.tsx