Changes

Jump to navigation Jump to search

Voice HAT Software

1,621 bytes added, 19:05, 18 November 2020
no edit summary
*Check linux kernal version, and require kernal 5.4 or more version;
sudo uname --alla Linux raspberrypi 5.4.72-v7l+ #1356 SMP Thu Oct 22 13:57:51 BST 2020 armv7l GNU/Linux(this is the result of the above command)
*Setup WM8960 driver git clone --depth=1 https://github.com/respeaker/seeed-voicecard cd seeed-voicecard sudo ./install.sh #This will take about 30 minutes or so, depending on your network conditions reboot * Check play: aplay -l <pre>pi@raspberrypi:~/seeed-voicecard $ aplay -l**** List of PLAYBACK Hardware Devices ****card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA] Subdevices: 8/8 Subdevice #0: subdevice #0 Subdevice #1: subdevice #1 Subdevice #2: subdevice #2 Subdevice #3: subdevice #3 Subdevice #4: subdevice #4 Subdevice #5: subdevice #5 Subdevice #6: subdevice #6 Subdevice #7: subdevice #7card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI] Subdevices: 1/1 Subdevice #0: subdevice #0card 1: seeed2micvoicec [seeed-2mic-voicecard], device 0: bcm2835-i2s-wm8960-hifi wm8960-hifi-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0</pre> * Check record arecord -l <pre>pi@raspberrypi:~/seeed-voicecard $ arecord -l**** List of CAPTURE Hardware Devices ****card 1: seeed2micvoicec [seeed-2mic-voicecard], device 0: bcm2835-i2s-wm8960-hifi wm8960-hifi-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0pi@raspberrypi:~/seeed-voicecard $</pre> * Record & play test sudo arecord -f cd -Dhw:1 | aplay -Dhw:1 #Ctrl+C to exit,  #Recore to result file test.wav sudo arecord -D hw:1,0 -f S32_LE -r 16000 -c 2 test.wav #The result recore file is test.wav, Ctrl+C to exit * Play the record result file sudo aplay -Dhw:1test. Setupwav * How to adjust volumn sudo alsamixer[[File:VOICE0HAT-3.png|none]] 
<!--Add review function! -->

Navigation menu