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) real 0m0.700s user 0m0.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