# Directly use microphone that connect with raspberry pi

**URL:** <https://discourse.nodered.org/t/directly-use-microphone-that-connect-with-raspberry-pi/27421>\
**Category:** General\
**Created:** [28 May 2020 09:15 UTC](https://discourse.nodered.org/t/directly-use-microphone-that-connect-with-raspberry-pi/27421 "2020-05-28T09:15:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![lingzhongli](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lingzhongli/32/20078_2.png) [@lingzhongli](https://discourse.nodered.org/u/lingzhongli)\
**Post date:** [28 May 2020 09:15 UTC](https://discourse.nodered.org/t/directly-use-microphone-that-connect-with-raspberry-pi/27421/1 "2020-05-28T09:15:17Z")

</div>

How can i use the microphone that directly connect with raspberry? Because i am do my project by using my laptop that open using browser... like below

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/8/381df5727705429ca9dace7e58ad521bc7a0040b.png)

So, it will directly using the microphone in my laptop to receive my voice when press the `microphone` node... now i want use the earphone's mic that directly connect to raspberry pi? how i need do?

the earphone is connect on audio jeck on raspberry pi

---

<div class="post-metadata">

**Author:** ![edje11](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/edje11/32/572_2.png) [@edje11](https://discourse.nodered.org/u/edje11)\
**Post date:** [28 May 2020 10:06 UTC](https://discourse.nodered.org/t/directly-use-microphone-that-connect-with-raspberry-pi/27421/2 "2020-05-28T10:06:43Z")

</div>

I don't think the pi has a mic input, however with an usb or bluetooth microphone and this node it should work.  
`node-red-contrib-micropi`

---

<div class="post-metadata">

**Author:** ![lingzhongli](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lingzhongli/32/20078_2.png) [@lingzhongli](https://discourse.nodered.org/u/lingzhongli)\
**Post date:** [28 May 2020 10:34 UTC](https://discourse.nodered.org/t/directly-use-microphone-that-connect-with-raspberry-pi/27421/3 "2020-05-28T10:34:41Z")

</div>

if using ReSpeaker 2-Mics Pi HAT also cannot?

---

<div class="post-metadata">

**Author:** ![edje11](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/edje11/32/572_2.png) [@edje11](https://discourse.nodered.org/u/edje11)\
**Post date:** [28 May 2020 10:42 UTC](https://discourse.nodered.org/t/directly-use-microphone-that-connect-with-raspberry-pi/27421/4 "2020-05-28T10:42:25Z")

</div>

Don't know, just try it.

---

<div class="post-metadata">

**Author:** ![JGKK](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jgkk/32/18515_2.png) [@JGKK](https://discourse.nodered.org/u/JGKK)\
**Post date:** [28 May 2020 15:32 UTC](https://discourse.nodered.org/t/directly-use-microphone-that-connect-with-raspberry-pi/27421/5 "2020-05-28T15:32:27Z")

</div>

The solution is in progress here:

> [@What node can using for ReSpeaker 2 Mic Array Pi HAT v1.0](https://discourse.nodered.org/t/what-node-can-using-for-respeaker-2-mic-array-pi-hat-v1-0/27292/19):
>
> Yes because the watson stt node expects a single wav buffer object but straight from the mic node you get raw pcm audio chunks as a stream of buffers. So you need to join the buffers and add wav headers to it. You will need to install [https://flows.nodered.org/node/node-red-contrib-wav](https://flows.nodered.org/node/node-red-contrib-wav) in nodered. Than import this flow: [{"id":"c4303dc0.528f58","type":"Mic","z":"20693e98.c7fb2a","name":"","outputPayloadType":"buffer","endian":"little","bitwidth":"16","encoding":"signed-integer","channels":"1",…

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [27 July 2020 15:32 UTC](https://discourse.nodered.org/t/directly-use-microphone-that-connect-with-raspberry-pi/27421/6 "2020-07-27T15:32:29Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
