Author

Topic: Sound file to play on statuses? (Read 733 times)

legendary
Activity: 1092
Merit: 1016
760930
December 18, 2013, 04:11:48 PM
#6
I have actually tried to do this like 4 times now, and it doesn't seem to work.  Rather, I never figured out how to access the underlying sound system using Python-Qt4.  It should definitely be added, but I have struggled far more than I should have with it and it got dropped lower on the priority list.

Hi Alan, where did you get stuck?
I added this type of functionality (in PyQt4) to my personal copy of Electrum a while ago.
So perhaps I could help.

I got stuck when nothing I tried worked.  I tried like 3 examples from various websites and documentation, and I never got sound out it.

If you want to take a shot, please do.  Linux is easiest though, since the dev environment takes 4 commands to get setup.   Windows... is pretty terrible to get setup, even just for messing with the python libraries (not compiling any C++ code)

Strange, I didn't have any difficulties at all to do this under Windows. I don't have much time right now, but here is a bare-bones working example of how to play a sound in PyQt4 that actually works (for me, at least):

Code:
import time ; from PyQt4.QtGui import *

QSound.play("C:/WINDOWS/Media/notify.wav")
time.sleep(3)

Can you give it a try?
legendary
Activity: 1428
Merit: 1093
Core Armory Developer
December 17, 2013, 02:39:38 PM
#5
I have actually tried to do this like 4 times now, and it doesn't seem to work.  Rather, I never figured out how to access the underlying sound system using Python-Qt4.  It should definitely be added, but I have struggled far more than I should have with it and it got dropped lower on the priority list.

Hi Alan, where did you get stuck?
I added this type of functionality (in PyQt4) to my personal copy of Electrum a while ago.
So perhaps I could help.

I got stuck when nothing I tried worked.  I tried like 3 examples from various websites and documentation, and I never got sound out it.

If you want to take a shot, please do.  Linux is easiest though, since the dev environment takes 4 commands to get setup.   Windows... is pretty terrible to get setup, even just for messing with the python libraries (not compiling any C++ code)
legendary
Activity: 3738
Merit: 1360
Armory Developer
December 17, 2013, 02:28:46 PM
#4
Worst case scenario, Ill build a PortAudio Python library and get it done that way.
legendary
Activity: 1092
Merit: 1016
760930
December 17, 2013, 02:24:09 PM
#3
I have actually tried to do this like 4 times now, and it doesn't seem to work.  Rather, I never figured out how to access the underlying sound system using Python-Qt4.  It should definitely be added, but I have struggled far more than I should have with it and it got dropped lower on the priority list.

Hi Alan, where did you get stuck?
I added this type of functionality (in PyQt4) to my personal copy of Electrum a while ago.
So perhaps I could help.
legendary
Activity: 1428
Merit: 1093
Core Armory Developer
December 15, 2013, 10:43:23 PM
#2
I have actually tried to do this like 4 times now, and it doesn't seem to work.  Rather, I never figured out how to access the underlying sound system using Python-Qt4.  It should definitely be added, but I have struggled far more than I should have with it and it got dropped lower on the priority list.
full member
Activity: 238
Merit: 109
December 12, 2013, 06:10:31 AM
#1
A tiny little tooltip at the bottom of my screen can easily go unnoticed when watching a movie, working, playing a game, or, really, anything else I'm doing.

Can you please implement a way to select a sound file to be played when the events are fired? So I could have something like blockchain's high pitched beep whenever you receive payments, which, is super useful.

EDIT:- Talking about these:-
Jump to: