AutoHotkey Community

It is currently May 27th, 2012, 11:33 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Sound Files [SEARCH]
PostPosted: August 21st, 2005, 11:38 am 
Similar to that [AHKMorseTool]
I'm looking for a set of sound files (equivalent to each key on the keyboard). I wanna create an AHK TypingTool.

a.wav
b.wav
.
.
colon.wav
QuestionMark.wav

Code:
+1::
SoundPlay, ExclamationMark.wav, 1 ; tells you that you've pressed Shift+1 aka the exclamation mark key
Return


Anyone out there has something in store ? :)


Report this post
Top
  
Reply with quote  
PostPosted: January 10th, 2007, 2:47 pm 
Offline

Joined: January 1st, 2007, 10:32 am
Posts: 17
I'd like a sound on every AHK action too.

I need wav files - and a AHK script that triggers them.

Perhaps an initial click to provide feedback, and then the
the girl who did the voice in "Dark Star" quietly telling me
what I've just pressed.
--
__________
|im |yler http://timtyler.org/ tim@tt1lock.org Remove lock to reply.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 10th, 2007, 6:09 pm 
Offline
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8776
@BoBo: Do you want morse coded wavs' ? :roll:

_________________
URLGet - Internet Explorer based Downloader
StartEx - Portable Shortcut Link


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 11th, 2007, 12:35 am 
Hook up a microphone, record with Audacity and speak the keys. Cut them in slices, and save them as wav or mp3.

Did you try the say.exe - you posted it yourself - or is it too slow?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 11th, 2007, 3:48 am 
Offline

Joined: August 19th, 2004, 10:53 pm
Posts: 326
How about?
http://www.research.att.com/~ttsweb/tts/demo.php

_________________
Autohotkey Just drives me crazy ..


Report this post
Top
 Profile  
Reply with quote  
PostPosted: January 11th, 2007, 1:02 pm 
Here's what I have so far [incomplete script warning!!!]:

I'm using .wav files from:

http://www.infocom.cqu.edu.au/Staff/Mic ... _Generator

It works brilliantly.

I'll add more .wav files as time passes.

key_sounds_alpha = QWERTYUIOPASDFGHJKLZXCVBNM1234567890qwertyuiopasdfghjklzxcvbnm@_

Loop Parse, key_sounds_alpha
{
HotKey ~%A_LoopField%, make_sound_alpha
}

key_sounds_other = .,"'!?\/$&=<>()[]{}|

Loop Parse, key_sounds_other
{
HotKey ~%A_LoopField%, make_sound_other
}

HotKey ~Tab, make_sound_tab
HotKey ~Up, make_sound_arrow
HotKey ~Down, make_sound_arrow
HotKey ~Left, make_sound_arrow
HotKey ~Right, make_sound_arrow
HotKey ~Space, make_sound_space
HotKey ~Enter, make_sound_enter
HotKey ~Backspace, make_sound_backspace
HotKey ~Delete, make_sound_backspace
HotKey ~^c, make_sound_bell
HotKey ~^v, make_sound_bell
HotKey ~^x, make_sound_bell
HotKey ~^z, make_sound_bell
HotKey ~^y, make_sound_bell
HotKey ~^s, make_sound_bell
HotKey ~^f, make_sound_bell
HotKey ~^r, make_sound_bell
HotKey ~Home, make_sound_pop_high
HotKey ~End, make_sound_pop_high
HotKey ~PgDn, make_sound_multiple_clicks
HotKey ~PgUp, make_sound_multiple_clicks

~LButton::goto make_sound_mouse_button
~RButton::goto make_sound_mouse_button
~MButton::goto make_sound_mouse_button
~XButton1::goto make_sound_mouse_button
~XButton2::goto make_sound_mouse_button

make_sound_mouse_button:
SoundPlay, C:\Documents\Audio\wav\key_sounds\typewriter\mouse.wav, Wait
Return

[...]


Report this post
Top
  
Reply with quote  
PostPosted: January 11th, 2007, 1:14 pm 
One problem is that auto-repeat on the sounds is sometimes not
desirable.

This:

HotKey ~Control, make_sound_arrow
HotKey ~Alt, make_sound_arrow
HotKey ~Shift, make_sound_arrow

...works badly for this reason.

A basic question - but any ideas about how best to make the
sound only fire once per keypress - without affecting the
keyboard operation.


Report this post
Top
  
Reply with quote  
PostPosted: January 11th, 2007, 2:56 pm 
Offline

Joined: January 1st, 2007, 10:32 am
Posts: 17
Tim Tyler wrote:
One problem is that auto-repeat on the sounds is sometimes not
desirable.

This:

HotKey ~Control, make_sound_arrow
HotKey ~Alt, make_sound_arrow
HotKey ~Shift, make_sound_arrow

...works badly for this reason.

A basic question - but any ideas about how best to make the
sound only fire once per keypress - without affecting the
keyboard operation.


KeyWait, Shift

...seems to work well enough in these particular cases.

_________________
--
__________
|im |yler http://timtyler.org/ tim@tt1lock.org Remove lock to reply.


Report this post
Top
 Profile  
Reply with quote  
PostPosted: January 13th, 2007, 3:12 pm 
timtyler wrote:
Tim Tyler wrote:
One problem is that auto-repeat on the sounds is sometimes not
desirable.

This:

HotKey ~Control, make_sound_arrow
HotKey ~Alt, make_sound_arrow
HotKey ~Shift, make_sound_arrow

...works badly for this reason.

A basic question - but any ideas about how best to make the
sound only fire once per keypress - without affecting the
keyboard operation.


KeyWait, Shift

...seems to work well enough in these particular cases.


One second thoughts, KeyWait sucks:

Press shift-Z and the Z fails to trigger any audio feedback.

Some other solution seems to be needed.

Maybe there should be an easy way within AHK to see if a
key is repeating - i.e. it is a multiple press of a single key
with no key_up event in between.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 15th, 2009, 8:37 am 
Offline

Joined: October 27th, 2006, 10:12 am
Posts: 649
What about creating midi events output instead of using directly .wav files and anyone can decide what type of sounds they want to trigger with each key press.

Did you want to have more speech sounds or beeps or synthesized melodies, bass, drums, effects... ?

What would be the application of this sound generating keys or where can this be useful for whom?


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 20 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group