Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no audio from i2s-mems breakout #46

Closed
Sp4rkR4t opened this issue Jul 20, 2019 · 6 comments
Closed

no audio from i2s-mems breakout #46

Sp4rkR4t opened this issue Jul 20, 2019 · 6 comments

Comments

@Sp4rkR4t
Copy link

I tried using a usb microphone to record audio and that worked but was extremely quiet as the mic was poor quality so I switched to an adafruit i2s-mems breakout, wired it all up, and tested it with arecord and it works perfectly with one exception pikrellcam does not record any audio with it, it opens the microphone for recording and the button appear on the UI but doesn't record anything.

@billw2
Copy link
Owner

billw2 commented Jul 24, 2019 via email

@Sp4rkR4t
Copy link
Author

Sp4rkR4t commented Jul 24, 2019

When a recording ends the line in the log is like this;

Manual record stop (size:4.1MB < /tmp:85949.0MB) vid_time:5.50 vid_fps:24.01 audio_frames:131961 audio_rate:24000

This is what I get from arecord --dump-hw-params /dev/null

arecord --dump-hw-params /dev/null
Recording WAVE '/dev/null' : Unsigned 8 bit, Rate 8000 Hz, Mono
HW Params of device "default":

ACCESS: MMAP_INTERLEAVED RW_INTERLEAVED
FORMAT: S16_LE S24_LE S32_LE
SUBFORMAT: STD
SAMPLE_BITS: [16 32]
FRAME_BITS: [32 64]
CHANNELS: 2
RATE: [8000 192000]
PERIOD_TIME: (166 8192000]
PERIOD_SIZE: [32 65536]
PERIOD_BYTES: [256 524288]
PERIODS: [2 4096]
BUFFER_TIME: (333 16384000]
BUFFER_SIZE: [64 131072]
BUFFER_BYTES: [256 524288]
TICK_TIME: ALL

arecord: set_params:1339: Sample format non available
Available formats:

  • S16_LE
  • S24_LE
  • S32_LE

@billw2
Copy link
Owner

billw2 commented Jul 24, 2019 via email

@Sp4rkR4t
Copy link
Author

Ok, when I use arecord -d 2 -D plughw:1 -f S16_LE -r 24000 test.wav the resulting file is silent as well so it must be the settings that are the issue, when I was testing the mic previously I was using arecord -d 2 -D plughw:1 -r 48000 -f S32_LE test.wav and that worked fine.

@billw2
Copy link
Owner

billw2 commented Jul 24, 2019 via email

@Sp4rkR4t
Copy link
Author

Tested it, the format is the issue I've reported this to adafruit, hopefully they can help. Thank you for helping me troubleshoot this device with your excellent software.

@Sp4rkR4t Sp4rkR4t closed this as completed Aug 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants