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

[Bug]: Audio playback slower than actual speed (ReSpeaker 2-Mics Pi HAT) #316

Open
likelikeslike opened this issue Nov 25, 2021 · 0 comments
Assignees
Labels

Comments

@likelikeslike
Copy link

Describe the bug

To Reproduce
Steps to reproduce the behavior:

  1. Record the wav file using arecord or https://github.com/respeaker/mic_hat/blob/master/recording_examples/record.py
  2. Play the audio using aplay or https://github.com/respeaker/mic_hat/blob/master/recording_examples/play.py
  3. The output through 3.5mm Audio Jack headphone sounds slower than it should be (1.5x slower)
  4. I also export the wav file to my laptop and play it, it sounds normal

Expected behavior

The playback speed from the 3.5mm Audio Jack should be the same as the input audio file, but in fact it has been slowdown.

A side note: when I manually specify the sample rate to 22050Hz in the play.py file, and play a wav file of 16000Hz sample rate. The result sounds better than using the same sample rate (16000Hz).

Platform

  • Device: Raspberry Pi CM4 + Official CM4 IO Board+ ReSpeaker 2-Mics Pi HAT
  • OS: Raspbian OS 32bit kernel version 5.10.63-v7l+
  • Driver Version: commit number dd9391f

Relevant log output

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants