arecord: set_params:1233: Sample format non available Available formats: - S16_LE
<p>I have a USB microphone and speaker adapter connected to a Raspberry Pi 3. I have set up everything on alsamixer. I have also set the <code>pcm.!default sysdefault:0</code> in file <code>.asoundrc</code> in the home directory which sets the USB audio adapter as the default audio card.</p>
<p>I have run: <code>aplay -l</code> and the output is:</p>
<pre><code>card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
 Subdevices: 7/8
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
</code></pre>
<p>I then set the pcm.!default sysdefault:0 in file <code>.asoundrc</code> in the home directory.</p>
<p>When I run the command <code>arecord -d 5 -r 48000 test.wav</code> I receive this error:</p>
<blockquote>
<p>arecord: set_params:1233: Sample format non available Available
formats: - S16_LE</p>
</blockquote>