respeaker / seeed-voicecard

2 Mic Hat, 4 Mic Array, 6-Mic Circular Array Kit, and 4-Mic Linear Array Kit for Raspberry Pi
GNU General Public License v3.0
486 stars 292 forks source link

Abrupt start to audio #282

Open uselessgames opened 3 years ago

uselessgames commented 3 years ago

respeacker 2 mic

there is an abrupt start to the audio followed by no sound.

image.png

I have tried different filters on alsa and ladspa with no success.

This is causing problems in the AI.

How to fix?

github-actions[bot] commented 3 years ago

Stale issue message

ghost commented 3 years ago

@uselessgames , This action was performed automatically. Please describe the issue according to bug template - if the issue was resolved, ignore this message. The issue will be marked as closed in 7 days if inactive.

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Platform What platform are you running the code on.

Relevant log output Please copy and paste any relevant log output.

AIWintermuteAI commented 3 years ago

Hello, @uselessgames !

I am able to reproduce the problem you described with the following setup: Raspberry Pi 4 1 Gb 5.10.17-v7l+ kernel https://github.com/respeaker/seeed-voicecard/commit/b595b95b2184f52e752256cca17e9b92e1a19cd7

Here is three samples I recorded with 2-mic hat - I was speaking before I started recording and I can see a strange upward curve on 0 - 0.1~0.2 segment of the recording. image

I'll keep the issue opened and mark it as a known bug. For sound recognition applications, as workaround, the following can be suggested: