DigiKey Part Number
1528-4757-ND
Manufacturer
Adafruit Industries LLC
https://cdn-learn.adafruit.com/downloads/pdf/adafruit-voice-bonnet.pdf
Manufacturer Product Number
4757
Description
ADAFRUIT VOICE BONNET FOR RASPBE
Manufacturer Standard Lead Time
4 Weeks
Customer Reference
Detailed Description
WM8960 Voice Record/Playback Audio Raspberry Pi Platform Evaluation Expansion Board
https://www.digikey.com/en/products/detail/adafruit-industries-llc/4757/13536263?s=N4IgTCBcDaIIwFYwA4C0AWA7AzqByAIiALoC%2BQA
Checking for the Card
run sudo aplay -l
To list all sound cards, you should see it at the bottom
If your card number differs from the above image, take note of your number.
You can
use alsamixer
to adjust the volume, dont forget to select the card with F6
Headphone/Speaker Test Make sure the Audio On/Off switch is set to ON!
With either headphones plugged into the headphone jack or a speaker attached to the speaker port,
run speaker-test -c2
Microphone Test
There are two microphones, and now we can test that they work.
This test is best done with headphones, not using the speaker port, because it can cause a painful feedback effect if the speakers are next to the mics!
Run: sudo arecord -f cd -Dhw:2 | aplay -Dhw:2
If your sound card ID is not #2,
then replace the number in both of the -Dhw: parameters with your actual number
2/27
https://forums.adafruit.com/viewtopic.php?t=208586
Trouble getting voice bonnet to work with Raspberry Pi
by jakerella »
Sat Mar 30, 2024 3:39 pm
Update: I uninstalled the HinTak fork (using the uninstall.sh script) and installed the source repo (https://github.com/respeaker/seeed-voicecard) using essentially the same instructions and things are working!
steps:
1. rename the folder seeed-voicecard in my case rename too <xxseeed-voicecard>
2. redo it
cd ~
sudo pip3 install --upgrade adafruit-python-shell
wget https://raw.githubusercontent.com/adafruit/Raspberry-Pi-Installer-Scripts/
master/raspi-blinka.py
sudo python3 raspi-blinka.py
When it asks you if you want to reboot, choose yes.
Speaker Bonnet on Raspberry Pi 4 - No errors and no sound
https://forums.adafruit.com/viewtopic.php?t=185587
#HMMicToMatPlot0202-2025.py
import pyaudio
import numpy as np
import matplotlib.pyplot as plt
# Audio stream configuration
CHUNK = 1024 # Buffer size
FORMAT = pyaudio.paInt16 # 16-bit audio format
CHANNELS = 1 # Mono audio
RATE = 44100 # Sampling rate (Hz)
def live_plot_mic():
p = pyaudio.PyAudio()
# Open microphone stream
mic_stream = p.open(format=FORMAT, channels=CHANNELS,
rate=RATE, input=True,
frames_per_buffer=CHUNK)
# Create a Matplotlib figure for real-time plotting
plt.ion() # Enable interactive mode
fig, ax = plt.subplots()
x = np.arange(0, CHUNK) # X-axis (samples)
y = np.zeros(CHUNK) # Y-axis (initial blank signal)
line, = ax.plot(x, y)
ax.set_ylim(-32768, 32768) # 16-bit audio range
ax.set_xlim(0, CHUNK) # Number of samples
print("Streaming microphone input to live plot... Press Ctrl+C to stop.")
try:
while True:
data = mic_stream.read(CHUNK, exception_on_overflow=False) # Read audio data
audio_wave = np.frombuffer(data, dtype=np.int16) # Convert to NumPy array
line.set_ydata(audio_wave) # Update Y-data
plt.draw()
plt.pause(0.01) # Small pause to allow GUI update
except KeyboardInterrupt:
print("Stopping microphone streaming.")
finally:
mic_stream.stop_stream()
mic_stream.close()
p.terminate()
plt.ioff()
plt.show() # Final static plot
if __name__ == "__main__":
live_plot_mic()
recomend raspberry pi sound card
ChatGPT said:
ChatGPT
Here are some great Raspberry Pi sound cards (DACs and ADCs) depending on your needs:
HiFiBerry DAC2 HD – High-end DAC with great audio quality, supports up to 192kHz/24bit.
IQaudio DAC+ – Audiophile-grade sound, integrated headphone amplifier.
Allo BOSS DAC – High-quality DAC using a PCM5122 chip for great clarity.
Pimoroni pHAT DAC – Compact and budget-friendly DAC for stereo output.
HiFiBerry DAC+ ADC – Combines high-quality DAC and ADC, great for recording.
AudioInjector Stereo – Budget-friendly stereo input/output sound card.
Pimoroni Pirate Audio Line-out – Compact with a small screen, great for projects.
Behringer UMC22 (USB) – Affordable and great for microphones (requires USB).
Focusrite Scarlett 2i2 (USB) – High-end USB audio interface for serious recording.
HiFiBerry Digi+ – Optical and coaxial output for connecting to external receivers.
Do you need it for music playback, recording, or something else?
If you need a Raspberry Pi sound card with a microphone input, here are some great options:
HiFiBerry DAC+ ADC – High-quality stereo line-in and line-out, great for recording.
AudioInjector Stereo – Affordable and compact, stereo input and output.
AudioInjector Ultra 2 – Higher-end version with better sound quality and a stereo mic preamp.
ReSpeaker 2-Mic/4-Mic Array – Designed for voice recognition and AI projects, has onboard microphones.
Pimoroni Pirate Audio Line-in – Small and budget-friendly for basic