How do I record sound

Xiangfu Liu xiangfu at sharism.cc
Sun Dec 19 13:14:20 EST 2010


On 12/19/2010 08:50 PM, David Kuehling wrote:
> Recording seems to be broken on NanoNote.  Linux/hw problem?
> 
> sox -t alsa default test.gsm stat

(open the MIC in alsamixer)

I change the command to: 
  sox -t alsa default test.wav stat
  sox -t alsa default test.ogg stat

works fine. 

root at BenNanoNote:~# sox -t alsa default test.wav stat

Input File     : 'default' (alsa)
Sample Size    : 16-bit (2 bytes)
Sample Encoding: signed (2's complement)
Channels       : 1
Sample Rate    : 8000

Time: 00:06.14 [00:00.00] of 00:00.00 (0.00%) Samples out: 41.0k Clips: 0    ^C
Samples read:             40960
Length (seconds):      5.120000
Scaled by:         2147483647.0
Maximum amplitude:     0.596649
Minimum amplitude:    -0.724396
Midline amplitude:    -0.063873
Mean    norm:          0.033385
Mean    amplitude:    -0.000099
RMS     amplitude:     0.058860
Maximum delta:         0.146179
Minimum delta:         0.000000
Mean    delta:         0.004639
RMS     delta:         0.010349
Rough   frequency:          223
Volume adjustment:        1.380
Aborted.
root at BenNanoNote:~# aplay test.wav 
Playing WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 8000 Hz, Mono
^CAborted by signal Interrupt...
root at BenNanoNote:~# sox -t alsa default test.ogg stat

Input File     : 'default' (alsa)
Sample Size    : 16-bit (2 bytes)
Sample Encoding: signed (2's complement)
Channels       : 1
Sample Rate    : 8000

Time: 00:03.07 [00:00.00] of 00:00.00 (0.00%) Samples out: 16.4k Clips: 0    ^C
Samples read:             24576
Length (seconds):      3.072000
Scaled by:         2147483647.0
Maximum amplitude:     0.445190
Minimum amplitude:    -0.517181
Midline amplitude:    -0.035995
Mean    norm:          0.023082
Mean    amplitude:     0.000012
RMS     amplitude:     0.046074
Maximum delta:         0.175446
Minimum delta:         0.000000
Mean    delta:         0.003640
RMS     delta:         0.009075
Rough   frequency:          250
Volume adjustment:        1.934
Aborted.



-- 
Best Regards
Xiangfu
-- Qi RSS feed, http://en.qi-hardware.com/feed/rss20.xml --




More information about the discussion mailing list


interactive