Search code examples
raspberry-piannyang

Using microphone with raspberry pi


I am very new to raspberry pi. I want to use annyang speech recognition software (it is a speech recognition software for websites). But I am not understanding how to start working with microphone. (When I use arecord or aplay commands, it is showing error such as: No such file in directory).

Do I need to change any settings in the pi board to access microphone?


Solution

  • Raspberry pi's do not have a built in microphone, you will need to use a USB microphone or connect a USB Sound Card and plug a microphone into that.

    When you use arecord you will probably have to tell it to use the right device with a command similar to this:

    arecord /home/pi/Desktop/a.wav -D sysdefault:CARD=1