# Test your mic outside of Mycroft

**URL:** https://community.openconversational.ai/t/test-your-mic-outside-of-mycroft/9456
**Category:** Archive - Former Random Mycroft Category
**Created:** [September 18, 2020, 5:16pm UTC](https://community.openconversational.ai/t/test-your-mic-outside-of-mycroft/9456 "2020-09-18T17:16:47Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![i6\_mods](https://community.openconversational.ai/user_avatar/community.openconversational.ai/i6_mods/32/2611_2.png) [@i6\_mods](https://community.openconversational.ai/u/i6_mods)
#### Post date: [September 18, 2020, 5:16pm UTC](https://community.openconversational.ai/t/test-your-mic-outside-of-mycroft/9456/1 "2020-09-18T17:16:47Z")

</div>

Hey, great project! My first post.

Is there a way to change the mic record test:

> arecord -d 10 test.wav  
> So that we may adjust the test for different hz and mono/stereo?

when I run the test i am only able to record a sample as:

> Recording WAVE ‘test.wav’ : Unsigned 8 bit, Rate 8000 Hz, Mono

similarly when I run:

> aplay test.wav

I get:

> Playing WAVE ‘test.wav’ : Unsigned 8 bit, Rate 8000 Hz, Mono

I would like to run this test at 16000hz & 44100hz mono/stereo

Thanks! 🙂

---

<div class="post-metadata">

### Author: ![SGee](https://community.openconversational.ai/user_avatar/community.openconversational.ai/sgee/32/3411_2.png) [@SGee](https://community.openconversational.ai/u/SGee)
#### Post date: [September 18, 2020, 7:16pm UTC](https://community.openconversational.ai/t/test-your-mic-outside-of-mycroft/9456/2 "2020-09-18T19:16:12Z")

</div>

This command uses resources “outside” of mycroft. arecord (ALSA) parecord (Pulse audio sound Server)

Correct me if i’m wrong, the 8k seem to be dictated by your input device. You have to tell Pulse audio to resample your stream using ffmpeg ([or other services](https://medium.com/@gamunu/enable-high-quality-audio-on-linux-6f16f3fe7e1f))  
although i don’t expect a noticeable better quality through upsampling.

The linked article expands on some configuration options, that might be interesting in general.

Play it with paplay

---

<div class="post-metadata">

### Author: ![i6\_mods](https://community.openconversational.ai/user_avatar/community.openconversational.ai/i6_mods/32/2611_2.png) [@i6\_mods](https://community.openconversational.ai/u/i6_mods)
#### Post date: [September 18, 2020, 8:07pm UTC](https://community.openconversational.ai/t/test-your-mic-outside-of-mycroft/9456/3 "2020-09-18T20:07:31Z")

</div>

hey there, my onboard audio device inputs and out are both 44100hz

---

<div class="post-metadata">

### Author: ![SGee](https://community.openconversational.ai/user_avatar/community.openconversational.ai/sgee/32/3411_2.png) [@SGee](https://community.openconversational.ai/u/SGee)
#### Post date: [September 18, 2020, 8:11pm UTC](https://community.openconversational.ai/t/test-your-mic-outside-of-mycroft/9456/4 "2020-09-18T20:11:34Z")

</div>

Can you specify that hardware? But regardless you have to make some configuration changes.

---

<div class="post-metadata">

### Author: ![i6\_mods](https://community.openconversational.ai/user_avatar/community.openconversational.ai/i6_mods/32/2611_2.png) [@i6\_mods](https://community.openconversational.ai/u/i6_mods)
#### Post date: [September 18, 2020, 8:19pm UTC](https://community.openconversational.ai/t/test-your-mic-outside-of-mycroft/9456/5 "2020-09-18T20:19:44Z")

</div>

Thanks for the great community, help, and introduction.  
So, it appears I can do this:  
arecord -d 10 -f cd -t wav test.wav  
and it will record in signed 16-bit little endin, rate 44100hz, stereo

aplay test.wav plays it back as the above.

---

<div class="post-metadata">

### Author: ![SGee](https://community.openconversational.ai/user_avatar/community.openconversational.ai/sgee/32/3411_2.png) [@SGee](https://community.openconversational.ai/u/SGee)
#### Post date: [September 18, 2020, 8:37pm UTC](https://community.openconversational.ai/t/test-your-mic-outside-of-mycroft/9456/6 "2020-09-18T20:37:24Z")

</div>

If you want to stay in alsaland, [config asound.conf](https://www.alsa-project.org/main/index.php/Asoundrc)

---

<div class="post-metadata">

### Author: ![baconator](https://community.openconversational.ai/letter_avatar_proxy/v4/letter/b/d07c76/32.png) [@baconator](https://community.openconversational.ai/u/baconator)
#### Post date: [September 19, 2020, 1:43am UTC](https://community.openconversational.ai/t/test-your-mic-outside-of-mycroft/9456/7 "2020-09-19T01:43:13Z")

</div>

Yes, you can specify all the parameters on recording.

arecord -d (duration) -f presetformat -r samplerate -c channels

arecrd -d 3 -f S16\_LE -r 16000 -c 1 16khz16bitmono.wav
