Rpi4B microphone and speaker

speaker and mic with Raspberry pi 4

Ask QuestionAsked 2 days agoActive 2 days agoViewed 34 times1

I’m making a project, a surveillance camera with audio. Live feed from my localhost webpage. the live camera part is now okay and working, my problem is the “intercom” part. I don’t really have a sure idea if it will work, so I’m here to ask. Is it possible to put a speaker and mic with raspi so I can hear the audio from my camera. And for the speaker, so that I can speak through my mic in localhost and can hear from the raspberry pi. so it’s like an Intercom. just think it’s like the IP cctv that has audio. Please help me and guide me. Thank you.

PS. I’m using a raspi camera for my live footage so it doesn’t include audio.audiorpi.gpiomicrophonespeakersshareedit  follow  closeflag asked 2 days agoJohannes Remotigue6544 bronze badges

  • 1Welcome and nice to meet you. Ah, let me summarize you problem. You project is in two parts: (1) Rpi camera, but does not include audio, so a separate microphone is needed, and web server, completed OK, (2) Intercom part and you are not sure how to use Rpi (perhaps python) to interface with microphone (might need accompanying mini audio power amplifier) and loudspeaker. / to continue, … – tlfong01 2 days ago    
  • 1I think the follow two references might help you getting started: (1) Rpi Intercom Microphone and Loudspeaker – rpi.org.forum 2018oct17: raspberrypi.org/forums/viewtopic.php?f=91&t=224976, (2) Rpi Python MAX4466/MAX9814 Microphone with Amplifier and MCP3008/PCM1802 Audio Analog to Digital Converter Module – RpiSE, 2012jan21: raspberrypi.stackexchange.com/questions/107778/…. Please feel free to ask me newbie questions. Have a great project. Cheers. – tlfong01 2 days ago    
  • 1hello @tlfong01, thank you for your inputs but I have some clarrification. the connection of my speaker. I have read all the links. Can I use this instead? raspberrypi.org/forums/download/… . – Johannes Remotigue 2 days ago
  • 1Hi #Johannes Remotigue, Thank you for your encouragement and feedback. About the the speaker connection: The link you mentioned is a USB sound card. You connect it to the Rpi USB connector, then it becomes a USB connected, external “sound card” to which you can connect (a) Microphone, (b) a speaker (system). This USB sound card is better than the Rpi’s built in/internal limited function sound card, because Rpi built in/on board sound card has only the 3.5mm connector to connect a mono speaker, but no microphone. So you need the adapter to connect the mic and speaker(s). Also more HiFi. – tlfong01 yesterday    
  • 1I’m sorry for asking too much. so If I’m going to use that USB external “sound card”, like this shopee.ph/…. Is there a need still to use the analog to digital converter module? – Johannes Remotigue yesterday
  • 1Ah, I am glad you asked. Actually I forgot to point out or remind other newbies reading my answer, that my second reference mentions two parts (a) Microphone with power amplifies (MAX4466/MAX9814), (b) ADC MCP3008, and PCM1802. The ADC recommendation is only for advanced hobbyists who wish to do real time processing. The mic with power amp is what you might like to try to learn something. Actually I am not too sure if you need to use the mic with power amp, which is useful in intercom setup which needs an amp at the front door side. / to continue, … – tlfong01 yesterday   
  • 1For your app, perhaps what you need is a cheap mic. Actually I recommend a cheap mic, the electrec type. Do not buy the many times more expensive HiFi dynamic/moving coil mic which is too weak power for the sound card. Ah I forgot to mention that your linked sound card is OK. PS, the MAX4466 mic with amp is flexible, because you can set the gain to low and high, to suit your app, like human voice too far away etc. – tlfong01 yesterday    

add a comment


Categories: Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.