Using 8bit mono at 8000Hz with arecord and aplay

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

We tried to record and play the recorded file using arecord and aplay as follows:
arecord -f cd /home/test.wav
aplay -f cd /home/test.wav

The file gets recorded and played correctly.

But if I try to record file of format S8 or U8, I get error:

# arecord -f U8 /home/test_alsa_record_2
Recording WAVE '/home/test_alsa_record_2' : Unsigned 8 bit, Rate 8000 Hz, Mono
arecord: set_params:979: Sample format non available

# arecord -f S8 /home/alsa_record_2
Recording WAVE '/home/alsa_record_2' : Signed 8 bit, Rate 8000 Hz, Mono
arecord: set_params:979: Sample format non available

Is there any other way to set the format as S8 or U8? Or only cd/cdr/dat formats can be played using alsa?

Regards,
--Shilpa.
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux