Author |
Message |
bigbri9
|
Posted: Mon Dec 05, 2005 2:00 am |
|
Joined: Wed Jul 07, 2004 1:22 am
Posts: 52
Location:
Chicago, IL
|
I found this online, thought it was pretty neat.
[url]http://outflux.net/blog/archives/2005/10/16/mythtv-button-sounds/
[/url]
It lets you add sound responses to key presses.
Now if someone could just walk a newb like me through setting it up.
Brian
|
|
Top |
|
|
ille
|
Posted: Mon Dec 05, 2005 5:59 am |
|
Joined: Thu Sep 09, 2004 4:26 am
Posts: 77
Location:
Sweden
|
Cool, I've installed that script. But I have to check if it works when I get home tonight. If you can start an ssh session to your box this is how I installed it:
Code: mythtv@mythtv:~$ su Password: root@mythtv:/home/mythtv# cd /usr/bin root@mythtv:/usr/bin# cat > irnoise <copy this into the ssh window> ircat mythtv | while read NAME; do case .$NAME. in Return|Space) SOUND=select.wav ;; *) SOUND=default.wav ;; esac #echo .$NAME: $SOUND. aplay -q .$SOUNDS./.$SOUND. done
<press ctrl-C> root@mythtv:/usr/bin# chmod a+x irnoise root@mythtv:/home/mythtv# exit mythtv@mythtv:~$ mkdir sounds mythtv@mythtv:~$ cd sounds/ mythtv@mythtv:~/sounds$ wget http://webs.lanset.com/wa8lmf/miscinfo/MiscWAVs.zip --12:50:49-- http://webs.lanset.com/wa8lmf/miscinfo/MiscWAVs.zip => `MiscWAVs.zip' Resolving webs.lanset.com... 208.187.165.5 Connecting to webs.lanset.com[208.187.165.5]:80... connected. HTTP request sent, awaiting response... 200 OK Length: 51,622 [application/x-zip-compressed]
100%[====================================>] 51,622 49.89K/s
12:50:50 (49.74 KB/s) - `MiscWAVs.zip' saved [51622/51622]
mythtv@mythtv:~/sounds$ unzip MiscWAVs.zip Archive: MiscWAVs.zip Assorted very short (less than .5 second) sound effects for use with Windows system events, or other staus or breakpoint type applications. inflating: WHOOSH.WAV inflating: AHOOGA.WAV inflating: ANVIL.WAV inflating: BEEP.WAV inflating: BONK.WAV inflating: BONK2.wav inflating: BTN_DWN.WAV inflating: CLICK.WAV inflating: CLICKloud.WAV inflating: CLICKsoft.WAV inflating: CLOCKCHM.WAV inflating: CorkPOP.WAV inflating: DING.wav inflating: LASER.WAV inflating: MetallicCLICK.wav inflating: PHASER.WAV inflating: SQEAK.WAV inflating: START.WAV inflating: THUD.WAV inflating: AHOOGAx2.WAV mythtv@mythtv:~/sounds$ /usr/bin/irnoise
_________________ Frontend/Backend: ShuttleX SN41G2, Xp2000+, 256MB, VGA to 1366x768 LCD TV
Terratec Cinergy 1200 DVB-C
DVD-BURNER: NEC ND3520 16x DL
Seagate Barracuda 7200.7 200GB
--
Frontend/Laptop: Compaq X1000, Pentium M 1.4Ghz, Unbuntu 6.10
|
|
Top |
|
|
ille
|
Posted: Mon Dec 05, 2005 3:31 pm |
|
Joined: Thu Sep 09, 2004 4:26 am
Posts: 77
Location:
Sweden
|
The post above did not work for me, first i missed the first two lines in /usr/bin/irnoise
Code: #!/bin/bash export SOUNDS=~mythtv/sounds
Then I see that the wav files used inte the script need to be resampled with a tool called sox. Code: #apt-get install sox
resample Code: mythtv@mythtv:~/sounds$ sox THUD.WAV -t wav -c 1 -s -w -r 48000 default.wav resample mythtv@mythtv:~/sounds$ sox BTN_DWN.WAV -t wav -c 1 -s -w -r 48000 -v 2 select.wav resample
The path name did not work for me so I changed /usr/bin/irnoiseaplay -q .$SOUNDS./.$SOUND. to aplay -q $SOUNDS/$SOUND Start the tool again Code: mythtv@mythtv:~/sounds$ /usr/bin/irnoise
Now I hear a firm sound "donk" when I hit a key on the remote
If you want to have this finalized, the irnoise script need to be started on boot.
|
|
Top |
|
|
grante
|
Posted: Tue Dec 06, 2005 11:30 am |
|
Joined: Mon Jun 27, 2005 4:42 pm
Posts: 321
Location:
Minneapolis, Minnesota, USA
|
bigbri9 wrote:
Brilliant! I've got to give this a try. One of my pet peeves has always been that the UI gives you no indication it's seen a key press. For some operations that take a long time (e.g. deleting a file), it's really difficult to know what's going on. I'd prever a visual indication from the application itself, but this will help.
Now, if I only had a better mixer to combine the sound card output and the PVR-350 output....
_________________ Grant
|
|
Top |
|
|
bigbri9
|
Posted: Wed Dec 07, 2005 10:03 pm |
|
Joined: Wed Jul 07, 2004 1:22 am
Posts: 52
Location:
Chicago, IL
|
Ok, after lots of tweaking I am finally satisfied with my UI sounds. If you've ever heard the song "Watermelon Man" by Herbie Hancock, I'm using the first 12 notes for all of my sounds. Pretty cool if you ask me. Here's my script:
Code: #!/bin/sh export SOUNDS=/myth/sounds/watermelon
I=1
ircat mythtv | while read NAME; do case "$NAME" in *) #echo "$I" SOUND="$I".wav if [ "$I" -eq 12 ] then #echo is 12 I=1 else #echo not 12 I=$(($I+1)) fi ;; esac #echo "$NAME: $SOUND" aplay -q "$SOUNDS"/"$SOUND" done
If anyone wants this set up, e-mail me and I can send you my 12 wav files.
Enjoy.
-Brian
|
|
Top |
|
|
hari_seldon99
|
Posted: Sat Dec 10, 2005 2:02 am |
|
Joined: Sun Oct 09, 2005 6:31 pm
Posts: 52
|
I dunno how much overhead this has, but the script seems to introduce a lag in the shading of the icons as I select one in mythfrontend. Maybe my box (specs in sig) is too slow for this. Never had problems with overhead before tho, & I've transcoded recordings while recording thru 2 tuners and commflagging 2 shows all simultaneously w/out noticeable lags of any kind.
_________________ My knoppmyth system:
P-III 850 MHz
256 Mb RAM
Hauppauge PVR-350 connected to tv via tv-out
Hauppauge PVR-150 in another PCI slot
using ivtv version 0.8.2 in Knoppmyth R5E50
PVR is both frontend and backend
|
|
Top |
|
|
bigbri9
|
Posted: Sat Dec 10, 2005 3:01 am |
|
Joined: Wed Jul 07, 2004 1:22 am
Posts: 52
Location:
Chicago, IL
|
I've got a AMD Athlon XP 2000+ and 512 of Ram, so that may be why I haven't seen any noticable lagging. That and I didn't really know what I am doing, it's mostly a guess and check method I'm using on my myth.
-Brian
|
|
Top |
|
|
hari_seldon99
|
Posted: Sat Dec 10, 2005 4:48 am |
|
Joined: Sun Oct 09, 2005 6:31 pm
Posts: 52
|
I'll dance at your wedding
I wonder if the issue is with cpu or RAM. Running "free -m" when the machine is in repose shows 243 out of 247 megs used + 108 megs in cache (I'm not running any ramdisks or anything in my mythtv box), and I've run fairly cpu intensive processes (like commflagging) without noticeable lags in playback. So, if it IS a memory problem, it's rather odd because the running binaries in the script have 100+ megs to play in, and playing one simple sound shouldn't take up such a high load.
One thing. I get a bunch of wierd messages when I run the script and select anything in mythfrontend:
ALSA lib timer_hw.c:269:(snd_timer_hw_open) extended read is not supported (SNDRV_TIMER_IOCTL_TREAD)
Wonder if that has something to do with it.
_________________ My knoppmyth system:
P-III 850 MHz
256 Mb RAM
Hauppauge PVR-350 connected to tv via tv-out
Hauppauge PVR-150 in another PCI slot
using ivtv version 0.8.2 in Knoppmyth R5E50
PVR is both frontend and backend
|
|
Top |
|
|
hari_seldon99
|
Posted: Sat Dec 10, 2005 4:57 am |
|
Joined: Sun Oct 09, 2005 6:31 pm
Posts: 52
|
Well it's definitely due to multiple occurrences of that error message. I ran the sounds through artsd (where the error occurred only once) and it works fine. I just had to replace "aplay -p" by artsplay and made sure artsd ran in the background.
_________________ My knoppmyth system:
P-III 850 MHz
256 Mb RAM
Hauppauge PVR-350 connected to tv via tv-out
Hauppauge PVR-150 in another PCI slot
using ivtv version 0.8.2 in Knoppmyth R5E50
PVR is both frontend and backend
|
|
Top |
|
|
wanttoknow
|
Posted: Wed Dec 14, 2005 11:37 am |
|
Joined: Tue Oct 25, 2005 1:22 pm
Posts: 108
Location:
USA, New Hampshire
|
|
Top |
|
|
bigbri9
|
Posted: Wed Dec 14, 2005 11:57 am |
|
Joined: Wed Jul 07, 2004 1:22 am
Posts: 52
Location:
Chicago, IL
|
|
Top |
|
|
wanttoknow
|
Posted: Wed Dec 14, 2005 2:48 pm |
|
Joined: Tue Oct 25, 2005 1:22 pm
Posts: 108
Location:
USA, New Hampshire
|
yeah I couldnt resist
they are great sounds!!
ohh and if anyone is interested I have a script that controls what button is pressed to what sounds. Just like the TIVO. Its not completly finished but by tomarrow it should be.
|
|
Top |
|
|
Willo
|
Posted: Sat Dec 17, 2005 1:20 am |
|
Joined: Sun Apr 03, 2005 2:45 pm
Posts: 22
Location:
Lees Summit MO
|
How do I get the script to run on boot? I added it to bootmisc.sh, but realized it has to be run as mythtv user.
|
|
Top |
|
|
hari_seldon99
|
Posted: Sat Dec 17, 2005 1:33 am |
|
Joined: Sun Oct 09, 2005 6:31 pm
Posts: 52
|
Willo wrote: How do I get the script to run on boot? I added it to bootmisc.sh, but realized it has to be run as mythtv user.
Put it in ~/.fluxbox/apps file
_________________ My knoppmyth system:
P-III 850 MHz
256 Mb RAM
Hauppauge PVR-350 connected to tv via tv-out
Hauppauge PVR-150 in another PCI slot
using ivtv version 0.8.2 in Knoppmyth R5E50
PVR is both frontend and backend
|
|
Top |
|
|
ndietz
|
Posted: Sat Dec 24, 2005 11:11 pm |
|
Joined: Thu Oct 06, 2005 7:19 pm
Posts: 9
|
Sounds would be sweet!! I have tried to follow through the url and this post, but am having trouble as I am not as familiar with Linux as it seems many of you are. Planning to get a RHCE book over the break . . . we'll see what happens
Anyway, think anyone can help make a tutorial post of how to install this script for a newb? That would be great. Maybe it is simple, and I am just missing something.
I was trying to follow the post by ille but don't know what he is talking about when he posts the following :
#########################################
The post above did not work for me, first i missed the first two lines in /usr/bin/irnoise
Code:
#!/bin/bash
export SOUNDS=~mythtv/sounds
###########################################
again, might be a dumb question as I am not as familiar with Linux as I would like to be. I think I am really just asking for an updated script like ille posted
Thanks
|
|
Top |
|
|