Play audio in add on?
#1
In my interface, I would like to have audio feedback based on button pushes. (Specifically, it's a phone dialer and I want to play DTF tones I have in mp3).

I really can't see a way to do this. Can anyone offer any suggestion?
Reply
#2
I don't think you can do it in a standard Kodi numeric input dialog. However, you can create your own custom dial pad with 10 buttons and a text label using WindowDialog or WindowXMLDialog class and then add callbacks for your virtual key presses where you can play any sound you want with xbmc.playSFX().

I would suggest my PyXBMCt library for creating a custom dial pad, but that's completely up to you.
Reply
#3
Hey man, thanks! I already have the interface done, but I will totally check out your library. I think what I was looking for was xbmc.playSFX!
Reply

Logout Mark Read Team Forum Stats Members Help
Play audio in add on?0