AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to make a voice .wav recorder script?
Goto page 1, 2  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Stefan16
Guest





PostPosted: Fri Mar 17, 2006 5:22 pm    Post subject: How to make a voice .wav recorder script? Reply with quote

First, thank you all for the kind help.

I have another problem and I haven't found any AHK script to do it.

What I'm looking for is a small script that is able to take voice from my microphone and save it as a usual .wav file on my computer.

Can anyone help with a small script?
Back to top
daonlyfreez



Joined: 16 Mar 2005
Posts: 745
Location: Berlin

PostPosted: Fri Mar 17, 2006 5:39 pm    Post subject: Reply with quote

You'd probably need a command line utility for that...

How about Cmd2Wav (freeware, 14k)
_________________
(sorry, homesite offline atm)
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Stefan16
Guest





PostPosted: Fri Mar 17, 2006 5:49 pm    Post subject: Reply with quote

Hi,

Nice idea with the command line utility, but I would prefer a full script in AHK doing it.
Back to top
Greg



Joined: 22 Dec 2005
Posts: 246

PostPosted: Fri Mar 17, 2006 5:56 pm    Post subject: Reply with quote

The idea is to incorporate Cmd2Wav (or some other command line utility) into a AHK script using the Run command.
Back to top
View user's profile Send private message
Stefan16
Guest





PostPosted: Fri Mar 17, 2006 6:07 pm    Post subject: Reply with quote

I have understand it, but there must be a way to this with a full script without only run commands..or maybe I'm wrong?
Back to top
PhiLho



Joined: 27 Dec 2005
Posts: 6721
Location: France (near Paris)

PostPosted: Fri Mar 17, 2006 6:13 pm    Post subject: Reply with quote

Run ye olde %SystemRoot%\System32\sndrec32.exe, pilot it with AHK to record, save result...
_________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")
Back to top
View user's profile Send private message Visit poster's website
Stefan16
Guest





PostPosted: Fri Mar 17, 2006 6:19 pm    Post subject: Reply with quote

And what is if someone don't have sndrec32.exe on his system??
Back to top
PhiLho



Joined: 27 Dec 2005
Posts: 6721
Location: France (near Paris)

PostPosted: Fri Mar 17, 2006 6:21 pm    Post subject: Reply with quote

AFAIK, it is on all Windows versions since Windows 95... (standard accessory)
In its 16bit incarnation, it was even in Windows 3.xx.
If he doesn't have it, it is because he removed it.
_________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")
Back to top
View user's profile Send private message Visit poster's website
Stafan16
Guest





PostPosted: Fri Mar 17, 2006 6:25 pm    Post subject: Reply with quote

Is it allways, on any OS at System32??

Can I do something like sndrec32.exe (for .wav) only with a script?
Back to top
GUEst who
Guest





PostPosted: Fri Mar 17, 2006 6:59 pm    Post subject: Reply with quote

Buddy, type sndrec32.exe in the run dialog box from the startmenu. you got anything?

Send an {ENTER} with AHK and you will start recording. If it doesnt run from the run command, then you dont have it! Rolling Eyes
Back to top
Greg



Joined: 22 Dec 2005
Posts: 246

PostPosted: Fri Mar 17, 2006 7:23 pm    Post subject: Reply with quote

Window sound recorder uses the dll: MMSYSTEM.DLL. I haven't viewed the contents of that dll, but perhaps it is what you are looking for (with DllCall).
Back to top
View user's profile Send private message
Stefan16
Guest





PostPosted: Fri Mar 17, 2006 8:31 pm    Post subject: Reply with quote

Very Happy Thanks all of you for the advice. I have made a small script & it seems to work for me.

Nice weekend.
Back to top
Laszlo



Joined: 14 Feb 2005
Posts: 4031
Location: Pittsburgh

PostPosted: Fri Mar 17, 2006 8:36 pm    Post subject: Reply with quote

Could you share it with us?
Back to top
View user's profile Send private message
Stefan16
Guest





PostPosted: Fri Mar 17, 2006 10:52 pm    Post subject: Reply with quote

As I believe PhiLho and others using more than only AutoHotkey, I have starting to do the same Smile So what is not working with AutoHotkey, works with AutoIt I think...

Quote:
#include <Media.au3>
MsgBox(0,"Media UDF by Svennie (sound record example)","When you click OK it starts with recording, when you press Escape it will stop recording and show a dialog to save your file.")
HotKeySet("{ESC}","StopRecording")
$Stop=1
Func StopRecording()
$Stop=0
EndFunc
$Media=_MediaCreate(6)
_MediaRecord($Media)
While $Stop
WEnd
_MediaStop($Media)
$File=FileSaveDialog("","","Wave files (*.wav)")&".wav"
If @error Then
_MediaClose($Media)
Exit
EndIf
_MediaSave($Media,$File)
_MediaClose($Media)
Back to top
vlcek



Joined: 19 Feb 2007
Posts: 321
Location: Czech Republic

PostPosted: Wed Jan 30, 2008 12:15 pm    Post subject: Reply with quote

Hi all.
When you want, try
http://znk.ic.cz/dictaphone.exe
my dictaphone. It using cmd2wav. In first run, select your language and in second dropdownlist select, time for recording.
Started date of my dictaphone 29/01/2008.
[/u]
_________________
Thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group