31

Did Raspberry Pi 3 add audio input? I'm new to RPi and interested in doing speech recognition but noticed input has been missing for previous versions.

If it hasn't, what is the best way for me to go about recognizing speech on RPi3? Thank you.

2
  • 5
    Welcome - look at cheap USB sound card dongles, they typically have an input as well as an output port. Should cost no more than $5 via EBay etc.
    – Phil B.
    Commented Feb 29, 2016 at 20:48
  • Nope - but there are plenty of hats which provide audio input. elinux.org/index.php?title=RPi_Expansion_Boards#Sound
    – Matt
    Commented Mar 17, 2017 at 20:07

3 Answers 3

14

The product announcement does not list any form of audio in. You could use a USB device as mentioned by Phil, or use a hat that's designed for the job.

7
  • 2
    What is a "hat" (Google isn't being very helpful)? Also, what are the advantages to an expensive card like that vs. a $5 input? Commented Feb 29, 2016 at 21:20
  • 5
    Hats are addon boards designed specifically for the RPi. The hat will give you better quality, and won't add a lot of the overhead nightmare known as USB. It really depends on what level of quality you need, what types of inputs, and what your budget looks like.
    – Jacobm001
    Commented Feb 29, 2016 at 21:25
  • 2
    Thanks I'm just looking for voice recognition. Preferably like from across the room. Like I want to be able to yell "go to youtube.com" from my couch. :) Think a $5 usb dongle and $5 3.5mm mic could do that? Commented Feb 29, 2016 at 22:03
  • 1
    @corysimmons were you able to find a microphone solution? I got a Raspberry Pi 3 and need a microphone for voice recognition too.
    – Web User
    Commented Nov 4, 2016 at 16:00
  • 1
    There are now more addons and hats which give line inputs to the Pi, check here for a short list : elinux.org/index.php?title=RPi_Expansion_Boards#Sound
    – Matt
    Commented Jan 16, 2017 at 12:21
8

That is correct, there is no audio input. The Pis generate analogue audio output using simple pulse width modulation (PWM) which is an efficient way to make output audio, but in the case of the Pi, it lacks great analogue separation. To get audio input, the Pi would have to have a dedicated audio codec, which it doesn't.

A lot of people mention USB sound cards which can readily be used with the Pi systems. There are other GPIO based sound cards which can also provide input audio lines ... check here for a non comprehensive list. Some of them also have microphones built in or microphone inputs, or lastly line inputs with which you can use a microphone preamp.

USB sound cards tend to have longer latencies (mode delay) as they have to buffer audio to send over USB (using the UAC/UAC2 protocol).

Matt

2
  • Could you please include some specific detail in your answer, link only answers are generally discouraged.
    – Darth Vader
    Commented Sep 3, 2016 at 8:35
  • Thanks for the feedback Darth, I have now altered my answer to include info on why there isn't audio input as well as mentioning USB sound cards.
    – Matt
    Commented Sep 4, 2016 at 11:23
2

You can use one of those USB sound cards, or if you don't want to hog up USB ports but don't mind using the GPIO pins, you can use the Cirrus Logic Sound Card (audiophile-grade hardware though, fairly expensive)

Not the answer you're looking for? Browse other questions tagged or ask your own question.