USB 2.0 3D Soundkarte | Sound card Audio Adapter 5.1 | 1€ | LINK |
Extending the Raspi with a microphone
I don’t know how one can earn money with this - the sound card costs 1€ and ships for free :). It works great with the Raspi and extends it with a microphone in.
lsusb
Bus 001 Device 007: ID 0d8c:013c C-Media Electronics, Inc. CM108 Audio Controller
Tools
sudo apt-get install alsa-tools alsa-oss alsa-utils
cat /proc/asound/cards
0 [ALSA ]: BRCM bcm2835 ALSbcm2835 ALSA - bcm2835 ALSA
bcm2835 ALSA
1 [Device ]: USB-Audio - USB PnP Sound Device
C-Media Electronics Inc. USB PnP Sound Device at usb-bcm2708_usb-1.2, full spee
Change default device
sudo vim ~/.asoundrc
pcm.!default {
type plug
slave.pcm {
@func getenv
vars [ ALSAPCM ]
default "hw:0,1"
}
}
alsamixer + F3 - adjust volume
Play Audio
aplay numnuts.wav
Text to Speech (TTS)
sudo apt-get install festival
echo "test" | festival --tts
German voice
http://www.ims.uni-stuttgart.de/institut/arbeitsgruppen/phonetik/synthesis/festival_opensource.html