Automatic recording |
![]() ![]() |
Automatic recording |
Jun 6 2005, 15:33
Post
#1
|
|
|
Group: Members Posts: 128 Joined: 3-July 03 From: Pomerania Member No.: 7541 |
OK, this is a weird one I admit...
My sister has a very pesky speaking bird (uhmm...don't know English name, search for "gwarek" on google image search) that...well...doesn't speak almost (probably...) at all. Almost...unfortunatelly :/ And he especially doesn't speak when someobody's in room, etc So: she has the idea to record it (she claims that once the bird speaks, he speaks almost perfectly...oh well, some imagination probably) Here's the idea: I'll donate my very old laptop (with win95...) to the cause...unfortunatelly it has very small HDD, so speex would be great I guess (voice activated recording - perfect). Since this is my dumb sister and I'm not living with family anymore, it would be preferable if the thing started automatically with win and reamained...well, not in front will be enough I guess (but it's not necessesity; if she claims she trained the bird, I hope I can train her...) Any ideas? -------------------- http://last.fm/user/zima
|
|
|
|
Jun 11 2005, 11:55
Post
#2
|
|
|
Group: Members Posts: 128 Joined: 3-July 03 From: Pomerania Member No.: 7541 |
OK, I've found something: Sound Snooper, quite perfect for the job. Unfortunatelly, although I did install illiminable codecs, Speex doesn't appear on the list, and the other are totally alien for me. So I'll list them and I ask you for help in choosing one that will have good sound quality and at the same time smallest possible size. What's worse it seems I'm quite limited in choosing kbps, bits per channel, and frequency in this app (I'll also list what's available)...
ACELP.net 11kHz, mono, 1kb/s (?!) CCITT A-Law 11kHz, 8bits, mono, 10kb/s CCITT U-Law as above GSM 6.10 11kHz, mono, 2kb/s (?!) IMA ADPCM this one has 4bits...so terrible I think Microsoft ADPCM as above Microsoft G.723.1 8kHz, mono, 6400 & 5333 bit/s, 0 kb/s (?!) Windows Media Audio V1 10kbps, 11KHz, mono, 1kb/s (?!) Windows Media Audio V2 as above (main reason I'm asking instead on trying - I have no microphone, and I'd like to finish at my sisters place as quick as possible when I'll ride there one day) Or is there any way to use Speex? (Sound snooper says in help file "Sound Snooper can save records in different formats that are supported by ACM (Windows Audio Compression Manager).") -------------------- http://last.fm/user/zima
|
|
|
|
Jun 11 2005, 21:46
Post
#3
|
|
![]() Group: Members Posts: 139 Joined: 10-September 04 From: Brazil Member No.: 16894 |
You can try to use liveincode, and record the bird speaking directly to speex files.
This post has been edited by Brink: Jun 11 2005, 21:48 -------------------- Alguém pare o mundo que eu quero descer!!
|
|
|
|
Jun 11 2005, 21:47
Post
#4
|
|
![]() Group: Members (Donating) Posts: 799 Joined: 12-September 03 Member No.: 8821 |
Speex has 2 nice options --VAD (Voice Activity Detection) and --DTX (file-based discontinuous transmission), thanks to them you can save a lot of disk space. Lately I recorded 24 hours in speex format and it took about 120MB IIRC (the room was empty for 23 hours and for 1 hour there was those thiefs speaking
I used foobar2000's Record function with following Speexenc command-line in Diskwriter: --quality 10 --vbr --vad --dtx --nframes 10 --comp 10 --denoise --agc - %d I think I've set sample rate to 8000Hz, bits per sample to 16, and channels to 1. I used very crappy microphone but the effect was more than good enough. |
|
|
|
Jun 15 2005, 18:20
Post
#5
|
|
|
Group: Members Posts: 128 Joined: 3-July 03 From: Pomerania Member No.: 7541 |
Is Speexenc the standard form the speex site?
(and I seem to remember that I've read somewhere that the official one doesn't have yet VAD...so is there some special one I'd have to download?) -------------------- http://last.fm/user/zima
|
|
|
|
Jun 15 2005, 18:31
Post
#6
|
|
![]() Group: Members Posts: 1193 Joined: 3-September 03 From: Bergen, Norway Member No.: 8667 |
QUOTE (zima @ Jun 15 2005, 09:20 AM) Is Speexenc the standard form the speex site? (and I seem to remember that I've read somewhere that the official one doesn't have yet VAD...so is there some special one I'd have to download?) I think it's had VAD in for a long time, but why not use latest unstable version? (Found e.g. on RareWares.) I don't know why there's a "stable" and an "unstable" branch, unstable has been working without any problems for me.... -------------------- "ONLY THOSE WHO ATTEMPT THE IMPOSSIBLE WILL ACHIEVE THE ABSURD"
- Oceania Association of Autonomous Astronauts |
|
|
|
Jun 16 2005, 17:00
Post
#7
|
|
|
Group: Members Posts: 128 Joined: 3-July 03 From: Pomerania Member No.: 7541 |
QUOTE (rutra80 @ Jun 11 2005, 12:47 PM) Speex has 2 nice options --VAD (Voice Activity Detection) and --DTX (file-based discontinuous transmission), thanks to them you can save a lot of disk space. Lately I recorded 24 hours in speex format and it took about 120MB IIRC (the room was empty for 23 hours and for 1 hour there was those thiefs speaking I used foobar2000's Record function with following Speexenc command-line in Diskwriter: --quality 10 --vbr --vad --dtx --nframes 10 --comp 10 --denoise --agc - %d I think I've set sample rate to 8000Hz, bits per sample to 16, and channels to 1. I used very crappy microphone but the effect was more than good enough. Is this possible in fully automatic fashion? (so foobar will start recording right after startup by link in autostart, all by itself) -------------------- http://last.fm/user/zima
|
|
|
|
Jun 16 2005, 17:48
Post
#8
|
|
![]() Group: Members Posts: 1193 Joined: 3-September 03 From: Bergen, Norway Member No.: 8667 |
QUOTE (zima @ Jun 16 2005, 08:00 AM) Is this possible in fully automatic fashion? (so foobar will start recording right after startup by link in autostart, all by itself) You could probably make a batchfile with command line options and put a link to it in autostart. Or Scheduled Tasks, run at startup. Find foobars command line options by running "your path to foobar"\foobar2000.exe /? in CMD. (You can also search on forum for how to access menu or context menu options by way of commandline). Another option is to use Case's piperec (preferably the version where Preuss fixed the CPU hog bug), put speexenc.exe and piperec.exe somewhere in %PATH% and make a batchfile like e.g. CODE @echo off title record speex from recording device piperec 16000 16 1 | speexenc --quality 8 --vbr --vad --dtx --nframes 10 --comp 10 --denoise --agc - - > "C:\My Recordings\test.spx" And just have the batchfile autostart at startup. This is a fully commandline solution, and quite simple. To stop recording, bring the CMD window in focus and hit CTRL+C. link 1, link 2, link 3, link 4 EDIT: You shouldn't take anyones word for what's best wav input samplerate/bitdepth/channels or best switches for speexenc. Experiment, and see what fits best in regards to filesize/quality for your use. Switches can be found by running speexenc -h in CMD. This post has been edited by Mr_Rabid_Teddybear: Jun 16 2005, 18:11 -------------------- "ONLY THOSE WHO ATTEMPT THE IMPOSSIBLE WILL ACHIEVE THE ABSURD"
- Oceania Association of Autonomous Astronauts |
|
|
|
Jun 16 2005, 18:23
Post
#9
|
|
|
Group: Members Posts: 128 Joined: 3-July 03 From: Pomerania Member No.: 7541 |
Thank you for quick reply.
I wonder...does the command line options in foobar allow automatic recording, when doing it manually requires choosing menu options form tool window inside foobar, clicking ok, choosing path, etc.? I can't quite find anything that would suggest it... (The real issue probably is that I'm totally ignorant when it comes to command line, batch files, etc. - although I am cosnidered by few as "advanced" and such crap, the thuth is: only in GUI, and probably only bacause I don't afraid it, not because I know everything...I started serious adventure with classic macs, then moved directly to windows...) Also, another thing: I don't have means to check it (public computer at uni), but I assume that use of piperec will cause a command line window to appear whole the time...as I mentioned above, the less things the user of this solution will be able to do wrong, the better (so it's preferable if it'll be fully automatic & hidden...). or perhaps it's possible to hide this window? Thanks again for help. -------------------- http://last.fm/user/zima
|
|
|
|
Jun 16 2005, 18:39
Post
#10
|
|
![]() Group: Members Posts: 1193 Joined: 3-September 03 From: Bergen, Norway Member No.: 8667 |
QUOTE (zima @ Jun 16 2005, 09:23 AM) I wonder...does the command line options in foobar allow automatic recording, when doing it manually requires choosing menu options form tool window inside foobar, clicking ok, choosing path, etc.? I can't quite find anything that would suggest it... All settings in foobar would have had to be set beforehand, I guess. I haven't tried if this can actually work. Maybe not. So I think piperec solution would be better for you. QUOTE (zima @ Jun 16 2005, 09:23 AM) Also, another thing: I don't have means to check it (public computer at uni), but I assume that use of piperec will cause a command line window to appear whole the time...as I mentioned above, the less things the user of this solution will be able to do wrong, the better (so it's preferable if it'll be fully automatic & hidden...). or perhaps it's possible to hide this window? Check this. EDIT: Alternative is to make a shortcut to the batchfile and choose in the Properties of the shortcut to start up minimized (and drag shortcut into Startup folder). This way it will still show up on Taskbar, but that gives you an opportunity to maximize window to stop recording if desired (not sure if first option allows for that, or if you will just continue recording until you shutdown system). You can easily learn enough 'bout commandline and batchfiles to get something like this going.... This post has been edited by Mr_Rabid_Teddybear: Jun 16 2005, 18:49 -------------------- "ONLY THOSE WHO ATTEMPT THE IMPOSSIBLE WILL ACHIEVE THE ABSURD"
- Oceania Association of Autonomous Astronauts |
|
|
|
Jun 17 2005, 01:12
Post
#11
|
|
![]() Group: Members Posts: 1193 Joined: 3-September 03 From: Bergen, Norway Member No.: 8667 |
Take care that if restarting machine like this it will start recording, overwriting any existing file. The best ting here would be to have the setup not overwriting existing file, but auto append a number to the filename or something (e.g. date & time), like if you have it write to a file recording.spx, if a file of that name already exists it doesn't overwrite it, but creates a new file recording_1.spx, then recording_2.spx, and so on. However, I hardly think something like that is possible within the framework of a simple batchfile. I guess it would take some more advanced scripting, or the addition of some program of which I don't know the existence of to the setup to achieve something like that.... It's beyond me, I'm afraid.... Maybe someone else have a suggestion?
-------------------- "ONLY THOSE WHO ATTEMPT THE IMPOSSIBLE WILL ACHIEVE THE ABSURD"
- Oceania Association of Autonomous Astronauts |
|
|
|
Jun 17 2005, 01:44
Post
#12
|
|
![]() Group: Members Posts: 439 Joined: 9-February 05 From: county down Member No.: 19713 |
QUOTE (Mr_Rabid_Teddybear @ Jun 17 2005, 01:12 AM) Maybe someone else have a suggestion? CODE piperec 16000 16 1 | speexenc --quality 8 --vbr --vad --dtx --nframes 10 --comp 10 --denoise --agc - - > "C:\My Recordings\earwig%TIME%.spx" i think you can add %time% to the filename... maybe not if the times format messes up the filename, oh yeah this is it, %random%%random% CODE piperec 16000 16 1 | speexenc --quality 8 --vbr --vad --dtx --nframes 10 --comp 10 --denoise --agc - - > "C:\My Recordings\earwig%random%%random%.spx" That makes it ~usualy not overwrite a previous file~ This post has been edited by ChiGung: Jun 17 2005, 01:52 -------------------- no conscience > no custom
|
|
|
|
Jun 17 2005, 07:25
Post
#13
|
|
![]() Group: Members Posts: 1193 Joined: 3-September 03 From: Bergen, Norway Member No.: 8667 |
QUOTE (ChiGung @ Jun 16 2005, 04:44 PM) Super I guess it would take a lot of trial to get %random%%random% to produce the same number twice, so I guess it's quite safe (If one where paranoid one could do somename%random%%random%%random%%random%.spx) -------------------- "ONLY THOSE WHO ATTEMPT THE IMPOSSIBLE WILL ACHIEVE THE ABSURD"
- Oceania Association of Autonomous Astronauts |
|
|
|
Jun 17 2005, 10:08
Post
#14
|
|
|
Group: Members Posts: 128 Joined: 3-July 03 From: Pomerania Member No.: 7541 |
Awesome guys! Thank you very much for the help. It seems I'm all set (now I just have to download all files & instructions on cdr (uni) and hope I'll be able to do it all
-------------------- http://last.fm/user/zima
|
|
|
|
Jun 17 2005, 16:01
Post
#15
|
|
|
Group: Members Posts: 128 Joined: 3-July 03 From: Pomerania Member No.: 7541 |
One problem with piperec: the archive with version that doesn't hog cpu is apparently broken...
-------------------- http://last.fm/user/zima
|
|
|
|
Jun 17 2005, 16:12
Post
#16
|
|
![]() Group: Members Posts: 1193 Joined: 3-September 03 From: Bergen, Norway Member No.: 8667 |
QUOTE (zima @ Jun 17 2005, 07:01 AM) It works OK here. Try to empty all cache, tempdirs, downloads and restart browser, then try again. (If you absolutely can't make it work PM me an e-mail adress I can send it to). EDIT: BTW. The fixed version in the package are named piperec_fix.exe, piperec.exe are the original. Difference in size are due to UPX compression of original. This post has been edited by Mr_Rabid_Teddybear: Jun 17 2005, 16:15 -------------------- "ONLY THOSE WHO ATTEMPT THE IMPOSSIBLE WILL ACHIEVE THE ABSURD"
- Oceania Association of Autonomous Astronauts |
|
|
|
Jun 17 2005, 17:07
Post
#17
|
|
![]() Group: Members Posts: 439 Joined: 9-February 05 From: county down Member No.: 19713 |
QUOTE (Mr_Rabid_Teddybear @ Jun 17 2005, 07:25 AM) QUOTE (ChiGung @ Jun 16 2005, 04:44 PM) That makes it ~usualy not overwrite a previous file~ Super I guess it would take a lot of trial to get %random%%random% to produce the same number twice, so I guess it's quite safe (If one where paranoid one could do somename%random%%random%%random%%random%.spx) Heh, ive already been kinda paranoid, because %random% returns a four digit number ( on my system anyway), but odds can be deceptive and after a modest number of saves I think even 9999:1 gets a little risky. Nice automatic recording setup here though. I did this with linco.exe and lame before, but had to run lame in high priority to stop dropouts - thats something to look out for. A Low vbr lame command line could be, CODE start /high /min piperec 22050 16 1 | lame -r --bitwidth 16 -s 22.05 -V9 -m m --resample 22 -B64 --lowpass-width 3 -q 5 - "C:\My Recordings\Learwig%random%%random%.mp3" I havent used speex, but dont like it when I get a phone connection which compresses the ambient noise out - so the line goes totaly silent when no ones speaking. edit:fixed one bug in commandline This post has been edited by ChiGung: Jun 17 2005, 17:49 -------------------- no conscience > no custom
|
|
|
|
Jun 17 2005, 17:35
Post
#18
|
|
![]() Group: Members Posts: 1193 Joined: 3-September 03 From: Bergen, Norway Member No.: 8667 |
QUOTE (ChiGung @ Jun 17 2005, 08:07 AM) Heh, ive already been kinda paranoid, because %random% returns a four digit number ( on my system anyway), but odds can be deceptive and after a modest number of saves I think even 9999:1 gets a little risky. I know. Thank you, BTW! QUOTE (ChiGung @ Jun 17 2005, 08:07 AM) CODE start /high /min piperec 22000 16 1 | lame -r --bitwidth 16 -s 22.05 -V9 -m m --resample 22 -B64 --lowpass-width 3 -q 5 - "C:\My Recordings\Learwig%random%%random%.mp3" Eh, shouldn't that be ... piperec 22050 16 1 ... ? QUOTE (ChiGung @ Jun 17 2005, 08:07 AM) I havent used speex, but dont like it when I get a phone connection which compresses the ambient noise out - so the line goes totaly silent when no ones speaking. Speex is quite nice for it's use. And you can get plenty of continual annoying background noise if you want, just drop --denoise and such, play around with the switches...... -------------------- "ONLY THOSE WHO ATTEMPT THE IMPOSSIBLE WILL ACHIEVE THE ABSURD"
- Oceania Association of Autonomous Astronauts |
|
|
|
Jun 17 2005, 17:48
Post
#19
|
|
![]() Group: Members Posts: 439 Joined: 9-February 05 From: county down Member No.: 19713 |
QUOTE (Mr_Rabid_Teddybear @ Jun 17 2005, 05:35 PM) Eh, shouldn't that be ... piperec 22050 16 1 ... ? Good catch -------------------- no conscience > no custom
|
|
|
|
Jun 17 2005, 18:19
Post
#20
|
|
![]() Group: Members Posts: 1193 Joined: 3-September 03 From: Bergen, Norway Member No.: 8667 |
Actually, it doesn't like start /high /min piperec etc....
My PC starts beeping as mad. But if you put piperec 22000 16 1 | lame -r --bitwidth 16 -s 22.05 -V9 -m m --resample 22 -B64 --lowpass-width 3 -q 5 - "C:\My Recordings\Learwig%random%%random%.mp3" in a mp3rec.bat on the other hand, and start it from CMD thus: start /high /min mp3rec.bat it starts just fine..... That Lame commandline produces a file that playbacks as pure static at my place, though.... Doing it with my Speex batch file, though, produces a good file start /high /min spxrec.bat And it was same thing; putting start /high /min piperec (etc....) in the batchfile itself made my system protest like hell.... -------------------- "ONLY THOSE WHO ATTEMPT THE IMPOSSIBLE WILL ACHIEVE THE ABSURD"
- Oceania Association of Autonomous Astronauts |
|
|
|
Jun 17 2005, 18:33
Post
#21
|
|
![]() Group: Members Posts: 439 Joined: 9-February 05 From: county down Member No.: 19713 |
QUOTE (Mr_Rabid_Teddybear @ Jun 17 2005, 06:19 PM) Actually, it doesn't like start /high /min piperec etc.... My PC starts beeping as mad. oh well QUOTE That Lame commandline produces a file that playbacks as pure static at my place, though.... -x swaps the byte endianism, could fix the static, or maybe piperec wont do that samplerate. new lame try: CODE piperec 22050 16 1 | lame -r -x --bitwidth 16 -s 22.05 --priority 3 -V9 -m m --resample 22 -B64 --lowpass-width 3 -q 5 - "C:\My Recordings\Learwig%random%%random%.mp3" experimental, add --scale 0.1 --athaa-sensitivity 3 to encourage silence detection, while increasing sensitivity at reduced volume, could decrease bitrate, file needs reamplified at playback. -------------------- no conscience > no custom
|
|
|
|
Jun 17 2005, 18:58
Post
#22
|
|
![]() Group: Members Posts: 1193 Joined: 3-September 03 From: Bergen, Norway Member No.: 8667 |
QUOTE (ChiGung @ Jun 17 2005, 09:33 AM) new lame try: CODE piperec 22050 16 1 | lame -r -x --bitwidth 16 -s 22.05 --priority 3 -V9 -m m --resample 22 -B64 --lowpass-width 3 -q 5 - "C:\My Recordings\Learwig%random%%random%.mp3" That line produced a working file. Adding --scale 0.1 --athaa-sensitivity 3 also produce a working file, but volume level are almost inaudible..... much preamp would be necessary for playback... -------------------- "ONLY THOSE WHO ATTEMPT THE IMPOSSIBLE WILL ACHIEVE THE ABSURD"
- Oceania Association of Autonomous Astronauts |
|
|
|
Jun 18 2005, 11:33
Post
#23
|
|
|
Group: Members Posts: 128 Joined: 3-July 03 From: Pomerania Member No.: 7541 |
Yep, something was wrong on the PC I've been using, it works fine on another one.
BTW, do I have to car about this "start /high /min" thing when using Speex? -------------------- http://last.fm/user/zima
|
|
|
|
Jun 18 2005, 14:18
Post
#24
|
|
![]() Group: Members Posts: 439 Joined: 9-February 05 From: county down Member No.: 19713 |
Only if you notice jitters happening in the recordings - then raising the processes priorities might help.
-------------------- no conscience > no custom
|
|
|
|
Jun 18 2005, 15:25
Post
#25
|
|
![]() Group: Members Posts: 1193 Joined: 3-September 03 From: Bergen, Norway Member No.: 8667 |
QUOTE (ChiGung @ Jun 18 2005, 05:18 AM) Only if you notice jitters happening in the recordings - then raising the processes priorities might help. In that case you can do as follows:Make a spxrec.bat thus: CODE @echo off title record speex from recording device piperec 16000 16 1 | speexenc --quality 8 --vbr --vad --dtx --nframes 10 --comp 10 --denoise --agc - - > "C:\My Recordings\polly%random%%random%.spx" and put it in your %PATH%. Then make a run.bat: CODE start /high /min spxrec.bat Make a shortcut to run.bat. Open Properties of this shortcut and choose Run: Minimized, then drag that shortcut into your Startup folder. Now it should start spxrec.bat as a high priority thread, minimized to taskbar when Windows starts up. -------------------- "ONLY THOSE WHO ATTEMPT THE IMPOSSIBLE WILL ACHIEVE THE ABSURD"
- Oceania Association of Autonomous Astronauts |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 24th May 2013 - 11:34 |