Re: [Debian]Voice recorder - ecasound -- Help
Ok. thanks for your great help. For now, I choose the simplicity and * use the state files provided with the fr * use the -D plughw:0,0 option to record only a mono file and use -r 8000 to record at 8khZ So my line becomes: arecord -D plughw:0,0 -r 8000 $userfolder/$myname This saves a lot of space : 2MO -- 100 kO for a 10 seconds record. I am about to release version 2 :D 2009/2/22 Rask Ingemann Lambertsen r...@sygehus.dk On Sun, Feb 22, 2009 at 01:30:52PM +0100, kimaidou wrote: Hi guys I have a question : why not just pass the good parameters to arecord so that it recors in 8bit, Mono, 8kHz as : arecord -D hw -f S16_LE -t wav -c 1 -r 8000 myfile.wav $ arecord -D hw -f S16_LE -t wav -c 1 -r 8000 myfile.wav Recording WAVE 'myfile.wav' : Signed 16 bit Little Endian, Rate 8000 Hz, Mono arecord: set_params:923: Channels count non available $ arecord -D hw -f S8 -t wav -c 2 -r 8000 myfile.wav Recording WAVE 'myfile.wav' : Signed 8 bit, Rate 8000 Hz, Stereo arecord: set_params:918: Sample format non available $ arecord -D hw -f U8 -t wav -c 2 -r 8000 myfile.wav Recording WAVE 'myfile.wav' : Unsigned 8 bit, Rate 8000 Hz, Stereo arecord: set_params:918: Sample format non available -- Rask Ingemann Lambertsen Danish law requires addresses in e-mail to be logged and stored for a year ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Debian]Voice recorder - ecasound -- Help
Charles-Henri Gros charles-henri.gros+openm...@m4x.org writes: arecord -D hw -f cd -v -t raw | speexenc --stereo --rate 44100 --16bit --le - a.speex Thanks. Speex would prefer 8, 16 or 32 Hz. Were you able to it to work with 32 Hz? ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Debian]Voice recorder - ecasound -- Help
Hi guys I have a question : why not just pass the good parameters to arecord so that it recors in 8bit, Mono, 8kHz as : arecord -D hw -f S16_LE -t wav -c 1 -r 8000 myfile.wav Then we play it with aplay, and this way : * no need for speex, so the app is more portable * less job to do, so the app consumes less battery What do you think ? 2009/2/22 Timo Juhani Lindfors timo.lindf...@iki.fi Charles-Henri Gros charles-henri.gros+openm...@m4x.orgcharles-henri.gros%2bopenm...@m4x.org writes: arecord -D hw -f cd -v -t raw | speexenc --stereo --rate 44100 --16bit --le - a.speex Thanks. Speex would prefer 8, 16 or 32 Hz. Were you able to it to work with 32 Hz? ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Debian]Voice recorder - ecasound -- Help
kimaidou kimai...@gmail.com writes: Then we play it with aplay, and this way : * no need for speex, so the app is more portable * less job to do, so the app consumes less battery What do you think ? But the quality is worse? ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Debian]Voice recorder - ecasound -- Help
Hum, is it a question, or a statement ? I personally don't know. If it is worse, is it much worse ? I recall this is to record voice, not a concerto. So a phone quality is enough (from my point of view). 2009/2/22 Timo Juhani Lindfors timo.lindf...@iki.fi kimaidou kimai...@gmail.com writes: Then we play it with aplay, and this way : * no need for speex, so the app is more portable * less job to do, so the app consumes less battery What do you think ? But the quality is worse? ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Debian]Voice recorder - ecasound -- Help
On Sat, Feb 21, 2009 at 11:40:18AM +0100, kimaidou wrote: Hi ! I totally agree with you, i will implement this for the 0.2 version For the mono thing, I would like it but I don't know yet how to do it. This is why when you open a wav recorded file with audacity, you can see the 2 left and right side, but only the right has data... This is not good. Have a look at controls 66 and 67. Depending on how your state file routes the mic input, set them both to right or left. Example: $ amixer sset 'Capture Right Mixer' 'Analogue Mix Right' $ amixer sset 'Capture Left Mixer' 'Analogue Mix Right' (Why do we have both? They are forced to the same value.) Then select the same ADC as capture source for both channels (control 51): $ amixer sset 'ADC Data Select' 'Right ADC' I have attached two state files, one to capture from the headset mic and one to capture from the handset mic. Both use automatic level control and the one to capture from the headset mic also uses the noise gate (squelsh) control. The signal level at the handset mic is unfortunately too low for that. Please also refer to the wiki as there are a _lot_ of ways to route sound to and from various places with the WM8753L: https://wiki.openmoko.org/wiki/Neo_1973_audio_subsystem It would be really great to have a mixer app where you could point out the controls on a diagram such as the one on the wiki page. So if someone knwos the parameter to put in arecord to record only one mono sound, this would help ! -c 1, but the WM8753L doesn't support mono. You can work around it by using '-D plughw:0,0' instead of '-D hw:0,0'. Alternatively: $ arecord --help | grep -F -e 'separate-channels' -I, --separate-channels one file for each channel -- Rask Ingemann Lambertsen Danish law requires addresses in e-mail to be logged and stored for a year ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Debian]Voice recorder - ecasound -- Help
On Sun, Feb 22, 2009 at 02:33:09PM +0100, Rask Ingemann Lambertsen wrote: I have attached two state files, this time around. Btw, the state files have the speaker/headphone output and amplifier turned on (controls 87 and 93) for ease of testing. Just turn them off if you don't need them to save power. -- Rask Ingemann Lambertsen Danish law requires addresses in e-mail to be logged and stored for a year capturehandset.state.gz Description: GNU Zip compressed data captureheadset.state.gz Description: GNU Zip compressed data ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Debian]Voice recorder - ecasound -- Help
On Sun, Feb 22, 2009 at 01:30:52PM +0100, kimaidou wrote: Hi guys I have a question : why not just pass the good parameters to arecord so that it recors in 8bit, Mono, 8kHz as : arecord -D hw -f S16_LE -t wav -c 1 -r 8000 myfile.wav $ arecord -D hw -f S16_LE -t wav -c 1 -r 8000 myfile.wav Recording WAVE 'myfile.wav' : Signed 16 bit Little Endian, Rate 8000 Hz, Mono arecord: set_params:923: Channels count non available $ arecord -D hw -f S8 -t wav -c 2 -r 8000 myfile.wav Recording WAVE 'myfile.wav' : Signed 8 bit, Rate 8000 Hz, Stereo arecord: set_params:918: Sample format non available $ arecord -D hw -f U8 -t wav -c 2 -r 8000 myfile.wav Recording WAVE 'myfile.wav' : Unsigned 8 bit, Rate 8000 Hz, Stereo arecord: set_params:918: Sample format non available -- Rask Ingemann Lambertsen Danish law requires addresses in e-mail to be logged and stored for a year ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Debian]Voice recorder - ecasound -- Help
Hi ! I totally agree with you, i will implement this for the 0.2 version For the mono thing, I would like it but I don't know yet how to do it. This is why when you open a wav recorded file with audacity, you can see the 2 left and right side, but only the right has data... This is not good. So if someone knwos the parameter to put in arecord to record only one mono sound, this would help ! 2009/2/21 Rask Ingemann Lambertsen r...@sygehus.dk On Thu, Feb 19, 2009 at 12:07:40PM +0100, kimaidou wrote: arecord -D hw -f cd -v -t wav ~/rec-$(date +%Y-%m-%d-%H-%M).wav I think 44100 Hz is overkill for something like this. 8 kHz ought to be enough and would save a lot of disk space. I would have also suggested a mono recording, but I'm not sure that is supported. -- Rask Ingemann Lambertsen Danish law requires addresses in e-mail to be logged and stored for a year ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Debian]Voice recorder - ecasound -- Help
Try this: arecord -D hw -f S16_LE -t wav -c 1 -r 8000 ~/rec-$(date +%Y-%m-%d-%H-%M).wav should work. -c is for the channels. Matthias kimaidou schrieb: Hi ! I totally agree with you, i will implement this for the 0.2 version For the mono thing, I would like it but I don't know yet how to do it. This is why when you open a wav recorded file with audacity, you can see the 2 left and right side, but only the right has data... This is not good. So if someone knwos the parameter to put in arecord to record only one mono sound, this would help ! 2009/2/21 Rask Ingemann Lambertsen r...@sygehus.dk mailto:r...@sygehus.dk On Thu, Feb 19, 2009 at 12:07:40PM +0100, kimaidou wrote: arecord -D hw -f cd -v -t wav ~/rec-$(date +%Y-%m-%d-%H-%M).wav I think 44100 Hz is overkill for something like this. 8 kHz ought to be enough and would save a lot of disk space. I would have also suggested a mono recording, but I'm not sure that is supported. -- Rask Ingemann Lambertsen Danish law requires addresses in e-mail to be logged and stored for a year ___ Openmoko community mailing list community@lists.openmoko.org mailto:community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Debian]Voice recorder - ecasound -- Help
matthias matthiasfels...@web.de writes: arecord -D hw -f S16_LE -t wav -c 1 -r 8000 ~/rec-$(date +%Y-%m-%d-%H-%M).wav How about using speex compression? I recorded a few words with arecord -f S16_LE -r 44100 a.wav and ended up with a 1089580-byte file. speexenc a.wav a.speex reduced the size to only 78214 bytes and speexdec a.speex played it back with better quality than the 8000 Hz recording. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Debian]Voice recorder - ecasound -- Help
Great idea ! Thanks for both of you, I will -soon- put this in the 0.2 version. One question : on which package depends speexenc and speexdec ? kimaidou 2009/2/21 Timo Juhani Lindfors timo.lindf...@iki.fi matthias matthiasfels...@web.de writes: arecord -D hw -f S16_LE -t wav -c 1 -r 8000 ~/rec-$(date +%Y-%m-%d-%H-%M).wav How about using speex compression? I recorded a few words with arecord -f S16_LE -r 44100 a.wav and ended up with a 1089580-byte file. speexenc a.wav a.speex reduced the size to only 78214 bytes and speexdec a.speex played it back with better quality than the 8000 Hz recording. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Debian]Voice recorder - ecasound -- Help
kimaidou kimai...@gmail.com writes: One question : on which package depends speexenc and speexdec ? $ find-package-by-file bin/speexenc You have searched for paths that end with bin/speexenc in suite etch, all sections, and all /usr/bin/speexenc speex You have searched for paths that end with bin/speexenc in suite lenny, all sections, and all /usr/bin/speexenc speex You have searched for paths that end with bin/speexenc in suite squeeze, all sections, and all /usr/bin/speexenc speex You have searched for paths that end with bin/speexenc in suite sid, all sections, and all /usr/bin/speexenc speex http://iki.fi/lindi/find-package-by-file is a simple one-liner to query packages.debian.org to always have up-to-date information. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Debian]Voice recorder - ecasound -- Help
Timo Juhani Lindfors wrote: matthias matthiasfels...@web.de writes: arecord -D hw -f S16_LE -t wav -c 1 -r 8000 ~/rec-$(date +%Y-%m-%d-%H-%M).wav How about using speex compression? I recorded a few words with arecord -f S16_LE -r 44100 a.wav and ended up with a 1089580-byte file. speexenc a.wav a.speex In this case I suggest using something like arecord -f S16_LE -r 44100 | speexenc - a.speex -- Charles-Henri ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Debian]Voice recorder - ecasound -- Help
Charles-Henri Gros charles-henri.gros+openm...@m4x.org writes: In this case I suggest using something like arecord -f S16_LE -r 44100 | speexenc - a.speex I was going to suggest it too but it does not work: $ time arecord -f S16_LE -r 44100 | speexenc - a.speex Recording WAVE 'stdin' : Signed 16 bit Little Endian, Rate 44100 Hz, Mono Warning: Speex is only optimized for 8, 16 and 32 kHz. It will still work at 44100 Hz but your mileage may vary Encoding 44100 Hz audio using ultra-wideband (sub-band CELP) mode (mono) real0m0.700s user0m0.095s sys 0m0.155s strace shows read(0, RIFF$\0\0\200WAVEfmt \20\0\0\0\1\0\1\0D\254\0\0\210X\1\0\2..., 4096) = 4096 write(2, Warning: Speex is only optimized ..., 112) = 112 write(2, Encoding 44100 Hz audio using ult..., 73) = 73 open(a.speex, O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40021000 write(3, OggS\0\2\0\0\0\0\0\0\0\0p\310\232l\0\0\0\0\23N\314\254\1PSpeex..., 287) = 287 close(3)= 0 munmap(0x40021000, 4096)= 0 exit_group(0) = ? ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Debian]Voice recorder - ecasound -- Help
Timo Juhani Lindfors wrote: Charles-Henri Gros charles-henri.gros+openm...@m4x.org writes: In this case I suggest using something like arecord -f S16_LE -r 44100 | speexenc - a.speex I was going to suggest it too but it does not work: I looked into it. What I did to get it to work: arecord -D hw -f cd -v -t raw | speexenc --stereo --rate 44100 --16bit --le - a.speex You need to match the params exactly as the raw format doesn't transmit them (and speexenc apparently can only accept raw data as stdin) -- Charles-Henri ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Debian]Voice recorder - ecasound -- Help
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Timo Juhani Lindfors ha scritto: kimaidou kimai...@gmail.com writes: arecord -D hw -f cd -v -t wav ~/rec-$(date +%Y-%m-%d-%H-%M).wav Btw, it's useful to add GSM cell information and GPS location information to the filename when it is available. I think that implementing this the Neo FreeRunner will be the first phone for mappers (I'm referring to OpenStreetMap). Georeferred voice notes could be a coolest feature in a completely open phone to produce completely open maps. Actually, the audio mapping[1] is supported by the main OSM editor, JOSM[2], and is the smartest way to collect streets names for bikers. An important note: it is not necessary for a mapper to have the recordings georeferred with latitude and longitude, the audio metadata could contain simply the time catched by GPS, and in this way the file will be georeferred on a GPX. In both the cases, again, after TangoGPS (with OSM support) this could be the big step to create a phone for mappers. Good work :) [1] http://wiki.openstreetmap.org/wiki/Audio_mapping [2] http://wiki.openstreetmap.org/wiki/JOSM - -- Francesco de Virgilio *Ubuntu-it Member and Wiki Editor* mailto:frad...@ubuntu-it.org http://wiki.ubuntu-it.org/FrancescoDeVirgilio *Wikimedia Italia Member* http://en.wikipedia.org/wiki/User:Fradeve11 *OpenStreetMap Mapper* http://www.openstreetmap.org/user/Fradeve11 *Blog* http://fradeve.netsons.org Love - Peace - Freedom - Free Software GPG 0x6482E056 (FP B996 A12C BD52 2A9B CDD3 812D 462D 93B0 6482 E056) -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkmeu9oACgkQRi2TsGSC4Fb6EQCdE7O9ODAoquLd+BtJ4NR4rf1y lhsAnRsR5GYRlJjp2bFqwsP5YftEdeqA =lgbj -END PGP SIGNATURE- ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Debian]Voice recorder - ecasound -- Help
This is a great idea. I personnaly try to add data into OSM when I have time. I will add this in high priority in my to-do list. By the way, I create a package called voicenote, and: a wiki page : http://wiki.openmoko.org/wiki/Voicenote a opkg page : http://www.opkg.org/package_140.html As you can read in the wiki page http://wiki.openmoko.org/wiki/Voicenote#Futur_improvement_.2F_To_do_list , there are a lot of things to do, and anyone wich wants to help can !! thanks for you comment 2009/2/20 Francesco de Virgilio fradev...@gmail.com -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Timo Juhani Lindfors ha scritto: kimaidou kimai...@gmail.com writes: arecord -D hw -f cd -v -t wav ~/rec-$(date +%Y-%m-%d-%H-%M).wav Btw, it's useful to add GSM cell information and GPS location information to the filename when it is available. I think that implementing this the Neo FreeRunner will be the first phone for mappers (I'm referring to OpenStreetMap). Georeferred voice notes could be a coolest feature in a completely open phone to produce completely open maps. Actually, the audio mapping[1] is supported by the main OSM editor, JOSM[2], and is the smartest way to collect streets names for bikers. An important note: it is not necessary for a mapper to have the recordings georeferred with latitude and longitude, the audio metadata could contain simply the time catched by GPS, and in this way the file will be georeferred on a GPX. In both the cases, again, after TangoGPS (with OSM support) this could be the big step to create a phone for mappers. Good work :) [1] http://wiki.openstreetmap.org/wiki/Audio_mapping [2] http://wiki.openstreetmap.org/wiki/JOSM - -- Francesco de Virgilio *Ubuntu-it Member and Wiki Editor* mailto:frad...@ubuntu-it.org http://wiki.ubuntu-it.org/FrancescoDeVirgilio *Wikimedia Italia Member* http://en.wikipedia.org/wiki/User:Fradeve11 *OpenStreetMap Mapper* http://www.openstreetmap.org/user/Fradeve11 *Blog* http://fradeve.netsons.org Love - Peace - Freedom - Free Software GPG 0x6482E056 (FP B996 A12C BD52 2A9B CDD3 812D 462D 93B0 6482 E056) -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkmeu9oACgkQRi2TsGSC4Fb6EQCdE7O9ODAoquLd+BtJ4NR4rf1y lhsAnRsR5GYRlJjp2bFqwsP5YftEdeqA =lgbj -END PGP SIGNATURE- ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Debian]Voice recorder - ecasound -- Help
kimaidou wrote: I am answering myself here : I found the solution :you have to add a at the end of the arecord line So the file content is now : #!/bin/bash zenity --question --title=Voice-note --text=Click Validate to START recording; gostart=$? if [ $gostart = 1 ] then echo Operation canceled exit else echo Recording... fi arecord -D hw -f cd -v -t wav ~/rec-$(date +%Y-%m-%d-%H-%M).wav alsactl -f /usr/share/openmoko/scenarios/voip-handset.state restore This line should not end with '' and should probably come before the arecord line zenity --info --title=Voice-note --text=Click Validate to STOP recording; gostop=$? killall -TERM arecord You should use kill %1 instead, this will only kill the instance you just started (and TERM is the default). For that, you need to enable job control (set -m) alsactl -f /usr/share/openmoko/scenarios/gsmhandset.state restore zenity --info --title=Voice note --text=Your voice-note has been recorded; goread=$? #END OF FILE Result: #!/bin/bash # Exit on error # Enable job control set -em zenity --question --title=Voice-note --text=Click Validate to START recording; gostart=$? if [ $gostart = 1 ] then echo Operation canceled exit 1 else echo Recording... fi alsactl -f /usr/share/openmoko/scenarios/voip-handset.state restore arecord -D hw -f cd -v -t wav ~/rec-$(date +%Y-%m-%d-%H-%M).wav zenity --info --title=Voice-note --text=Click Validate to STOP recording # Kill arecord kill %1 alsactl -f /usr/share/openmoko/scenarios/gsmhandset.state restore zenity --info --title=Voice note --text=Your voice-note has been recorded #END OF FILE -- Charles-Henri ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Debian]Voice recorder - ecasound -- Help
Thanks a lot for your comments . It is my first bash script, so I have a lot to learn. I will integrate thoses changes ! 2009/2/21 Charles-Henri Gros charles-henri.gros+openm...@m4x.orgcharles-henri.gros%2bopenm...@m4x.org kimaidou wrote: I am answering myself here : I found the solution :you have to add a at the end of the arecord line So the file content is now : #!/bin/bash zenity --question --title=Voice-note --text=Click Validate to START recording; gostart=$? if [ $gostart = 1 ] then echo Operation canceled exit else echo Recording... fi arecord -D hw -f cd -v -t wav ~/rec-$(date +%Y-%m-%d-%H-%M).wav alsactl -f /usr/share/openmoko/scenarios/voip-handset.state restore This line should not end with '' and should probably come before the arecord line zenity --info --title=Voice-note --text=Click Validate to STOP recording; gostop=$? killall -TERM arecord You should use kill %1 instead, this will only kill the instance you just started (and TERM is the default). For that, you need to enable job control (set -m) alsactl -f /usr/share/openmoko/scenarios/gsmhandset.state restore zenity --info --title=Voice note --text=Your voice-note has been recorded; goread=$? #END OF FILE Result: #!/bin/bash # Exit on error # Enable job control set -em zenity --question --title=Voice-note --text=Click Validate to START recording; gostart=$? if [ $gostart = 1 ] then echo Operation canceled exit 1 else echo Recording... fi alsactl -f /usr/share/openmoko/scenarios/voip-handset.state restore arecord -D hw -f cd -v -t wav ~/rec-$(date +%Y-%m-%d-%H-%M).wav zenity --info --title=Voice-note --text=Click Validate to STOP recording # Kill arecord kill %1 alsactl -f /usr/share/openmoko/scenarios/gsmhandset.state restore zenity --info --title=Voice note --text=Your voice-note has been recorded #END OF FILE -- Charles-Henri ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Debian]Voice recorder - ecasound -- Help
Sorry I forgot the link to ecasound example page : http://eca.cx/ecasound/Documentation/examples.html#rtrecording 2009/2/19 kimaidou kimai...@gmail.com Hi community I am running the Hackable1 , and try to find a lightweight and simple way to record and play voice notes. I discovered ecasound via a google search. ( http://groups.google.com/group/linux.debian.user/browse_thread/thread/d2caa54f7448993a/14d58b5ea003409a?lnk=raot). I am trying to use it from command-line to record some sound (me talking :D ) with the following line : *ecasound -i /dev/dsp -o mynotes.wav -c* Pressing on t will start recording. When finished, press on s to stop then q to quit. I tried to open the mynotes.wav file with *audacity*, but I cannot see any waves, though my file size is 4Mo/ So my conclusion is ecasound worked well, but I should have change the scenario (one of the *.state file ) before recording ? So I need your help to test ecasound and report any solution. If I can get it to work, I will try to create a simple gui to run it Thanks in advance Kimaidou ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Debian]Voice recorder - ecasound -- Help
kimaidou kimai...@gmail.com writes: *ecasound -i /dev/dsp -o mynotes.wav -c* Pressing on t will start recording. When finished, press on s to stop then q to quit. /dev/dsp is OSS interface. Just use ALSA instead: alsactl -f voip-handset.state restore arecord -r 44100 -f S16_LE notes.wav and then use aplay notes.wav to hear them. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Debian]Voice recorder - ecasound -- Help
Hi both Thanks for you replies. I dumly forgot to search for voice recording among the wiki :( Before I try it, could you please tell if the following order and commands are ok (don't want to break my kernel** cd /usr/share/openmoko/scenarios/ wget http://wildsau.enemy.org/~moko/voice-recording.state arecord -D hw -f cd -v -t wav ~/rec-$(date +%Y-%m-%d-%H-%M).wav alsactl -f voice-recording.state restore HERE I TALK OR SING A SONG : La la laa laa l, then killall -TERM arecord alsactl -f gsmhandset.state restore Is this correct ? Kimaidou ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Debian]Voice recorder - ecasound -- Help
2009/2/19 kimaidou kimai...@gmail.com Hi community I am running the Hackable1 , and try to find a lightweight and simple way to record and play voice notes. I discovered ecasound via a google search. ( http://groups.google.com/group/linux.debian.user/browse_thread/thread/d2caa54f7448993a/14d58b5ea003409a?lnk=raot). I am trying to use it from command-line to record some sound (me talking :D ) with the following line : *ecasound -i /dev/dsp -o mynotes.wav -c* Pressing on t will start recording. When finished, press on s to stop then q to quit. I tried to open the mynotes.wav file with *audacity*, but I cannot see any waves, though my file size is 4Mo/ So my conclusion is ecasound worked well, but I should have change the scenario (one of the *.state file ) before recording ? So I need your help to test ecasound and report any solution. If I can get it to work, I will try to create a simple gui to run it Does arecord and aplay work for you? http://wiki.openmoko.org/wiki/Recording_audio ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Debian]Voice recorder - ecasound -- Help
Come back here to give some feedback : 1/ to restore one state file, you must specify the complete adress e.g. alsactl -f /usr/share/openmoko/scenarios/gsmhandset.state restore 2/ I tried once to record via arecord and it worked (no sound because I have not done the 1/ ). Then I killed it by CTRL+Z But now I cannot reuse it, the command arecord -D hw -f cd -v -t wav ~/rec-$(date +%Y-%m-%d-%H-%M).wav give the following error : arecord: main:564: audio open error: Device or resource busy How can I de-busy the audio device ? Thanks in advance Kimaidou 2009/2/19 kimaidou kimai...@gmail.com Hi both Thanks for you replies. I dumly forgot to search for voice recording among the wiki :( Before I try it, could you please tell if the following order and commands are ok (don't want to break my kernel** cd /usr/share/openmoko/scenarios/ wget http://wildsau.enemy.org/~moko/voice-recording.statehttp://wildsau.enemy.org/%7Emoko/voice-recording.state arecord -D hw -f cd -v -t wav ~/rec-$(date +%Y-%m-%d-%H-%M).wav alsactl -f voice-recording.state restore HERE I TALK OR SING A SONG : La la laa laa l, then killall -TERM arecord alsactl -f gsmhandset.state restore Is this correct ? Kimaidou ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Debian]Voice recorder - ecasound -- Help
kimaidou kimai...@gmail.com writes: wget http://wildsau.enemy.org/~moko/voice-recording.state Do not use voice-recording.state if you don't want your kernel to crash [1]. Use voip-handset.state [1] http://docs.openmoko.org/trac/ticket//2073 ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Debian]Voice recorder - ecasound -- Help
kimaidou kimai...@gmail.com writes: How can I de-busy the audio device ? dmesg probably shows that your kernel OOPSed since hit http://docs.openmoko.org/trac/ticket//2073 ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Debian]Voice recorder - ecasound -- Help
On 2009.02.19.12.21, kimaidou wrote: | not done the 1/ ). Then I killed it by CTRL+Z CTRL+Z backgrounds the process, not freeing any resources. Go for CTRL+C --Brock ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Debian]Voice recorder - ecasound -- Help
Hi All. My feedback : the process is working. Now I would like to create a small bash + zenity tool. I need anyone's help to make it work. For now, I have : #!/bin/bash zenity --question --title=Voice-note --text=Click Validate to START recording; gostart=$? if [ $gostart = 1 ] then echo Operation canceled exit else echo Recording... fi zenity --info --title=Voice-note --text=Click Validate to STOP recording; gostop=$? arecord -D hw -f cd -v -t wav ~/rec-$(date +%Y-%m-%d-%H-%M).wav alsactl -f /usr/share/openmoko/scenarios/voip-handset.state restore alsactl -f /usr/share/openmoko/scenarios/gsmstereoout.state restore killall -TERM arecord zenity --info --title=Voice note --text=Your voice-note has been recorded; goread=$? This is not working because I don't know how to load the arecord thing AND show a windows which asks the user to stop recording. Does anyone have any clue ? thanks in advance kimaidou ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Debian]Voice recorder - ecasound -- Help
I am answering myself here : I found the solution :you have to add a at the end of the arecord line So the file content is now : #!/bin/bash zenity --question --title=Voice-note --text=Click Validate to START recording; gostart=$? if [ $gostart = 1 ] then echo Operation canceled exit else echo Recording... fi arecord -D hw -f cd -v -t wav ~/rec-$(date +%Y-%m-%d-%H-%M).wav alsactl -f /usr/share/openmoko/scenarios/voip-handset.state restore zenity --info --title=Voice-note --text=Click Validate to STOP recording; gostop=$? killall -TERM arecord alsactl -f /usr/share/openmoko/scenarios/gsmhandset.state restore zenity --info --title=Voice note --text=Your voice-note has been recorded; goread=$? #END OF FILE CONCLUSION It works well !! For those who want to try, just create a executable text file called voicenote.sh for example in your personnal folder and add the lines above. To make it executable, please do : chmod +x ~/voicenote.sh Thanks all for your help ! Kimaidou ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Debian]Voice recorder - ecasound -- Help
kimaidou kimai...@gmail.com writes: arecord -D hw -f cd -v -t wav ~/rec-$(date +%Y-%m-%d-%H-%M).wav Btw, it's useful to add GSM cell information and GPS location information to the filename when it is available. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Debian]Voice recorder - ecasound -- Help
good idea. Btw, I have made an ipk and a debian tar file to install my voicenote software. I have other idea to implement but I will try to add these info if possible. kimaidou 2009/2/19 Timo Juhani Lindfors timo.lindf...@iki.fi kimaidou kimai...@gmail.com writes: arecord -D hw -f cd -v -t wav ~/rec-$(date +%Y-%m-%d-%H-%M).wav Btw, it's useful to add GSM cell information and GPS location information to the filename when it is available. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community