0

I have a Raspberry Pi 3 and trying to use a USB microphone in order to create a translator (i.e. https://daveconroy.com/how-to/turn-raspberry-pi-translator-speech-recognition-playback-60-languages/) as a class project. I've been running into a few problems (so I followed a couple of tutorials for guidance, but still hit road blocks), one of those problems being in trying to find a certain file "sudo nano usr/share/alsa/alsa.conf" and edit it in order to set my USB mic as the default sound card. Problem is, this file does not exist on my Raspberry Pi 3 (I get errors saying it doesn't exist, and if I create the file manually, it doesn't allow me to save it).

How can I get my USB microphone to work without having this file in the first place? Or am I just going a totally wrong way about this?

1 Answers1

2

Welcome to Stack Exchange!

it appears your problem is a simple spelling error. When you login to your rpi with the pi user, you land by default in the home directory, or /home/pi. And when you type commands on the command line, when you give a file location, such as usr/share/..., if you don't put a / in front, it appends that location on to the current directory. So when you type sudo nano usr/share/alsa/alsa.conf, what it is really trying too edit is /home/pi/usr/share/alsa/alsa.conf, which is not what you want. so redo the command, this time typing

sudo nano /usr/share/alsa/alsa.conf

and make sure you have the / in front of usr/share/....

Hope this helps!

Benjamin Ashbaugh
  • 1,087
  • 7
  • 18