| View previous topic :: View next topic |
| Author |
Message |
Stefan16 Guest
|
Posted: Fri Mar 17, 2006 5:22 pm Post subject: How to make a voice .wav recorder script? |
|
|
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
|
Posted: Fri Mar 17, 2006 5:39 pm Post subject: |
|
|
You'd probably need a command line utility for that...
How about Cmd2Wav (freeware, 14k) _________________ (sorry, homesite offline atm) |
|
| Back to top |
|
 |
Stefan16 Guest
|
Posted: Fri Mar 17, 2006 5:49 pm Post subject: |
|
|
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
|
Posted: Fri Mar 17, 2006 5:56 pm Post subject: |
|
|
| The idea is to incorporate Cmd2Wav (or some other command line utility) into a AHK script using the Run command. |
|
| Back to top |
|
 |
Stefan16 Guest
|
Posted: Fri Mar 17, 2006 6:07 pm Post subject: |
|
|
| 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)
|
Posted: Fri Mar 17, 2006 6:13 pm Post subject: |
|
|
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 |
|
 |
Stefan16 Guest
|
Posted: Fri Mar 17, 2006 6:19 pm Post subject: |
|
|
| 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)
|
Posted: Fri Mar 17, 2006 6:21 pm Post subject: |
|
|
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 |
|
 |
Stafan16 Guest
|
Posted: Fri Mar 17, 2006 6:25 pm Post subject: |
|
|
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
|
Posted: Fri Mar 17, 2006 6:59 pm Post subject: |
|
|
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!  |
|
| Back to top |
|
 |
Greg
Joined: 22 Dec 2005 Posts: 246
|
Posted: Fri Mar 17, 2006 7:23 pm Post subject: |
|
|
| 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 |
|
 |
Stefan16 Guest
|
Posted: Fri Mar 17, 2006 8:31 pm Post subject: |
|
|
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
|
Posted: Fri Mar 17, 2006 8:36 pm Post subject: |
|
|
| Could you share it with us? |
|
| Back to top |
|
 |
Stefan16 Guest
|
Posted: Fri Mar 17, 2006 10:52 pm Post subject: |
|
|
As I believe PhiLho and others using more than only AutoHotkey, I have starting to do the same 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
|
Posted: Wed Jan 30, 2008 12:15 pm Post subject: |
|
|
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 |
|
 |
|