| 454 | | Please see [wiki:venice/mipi#Audio] |
| | 454 | Please see [wiki:venice/mipi#Audio] to leverage audio off the mipi header on the Venice SBCs. |
| | 455 | |
| | 456 | USB audio is always an option and most chipsets will work with basic linux tools such as aplay and arecord. |
| | 457 | |
| | 458 | Example below with Bus 002 Device 002: ID 046d:0a7a Logitech, Inc. Logi USB Headset |
| | 459 | |
| | 460 | Example below playing basic audio file over usb audio: |
| | 461 | {{{ |
| | 462 | root@noble-venice:~# aplay -l |
| | 463 | **** List of PLAYBACK Hardware Devices **** |
| | 464 | card 1: Headset [Logi USB Headset], device 0: USB Audio [USB Audio] |
| | 465 | Subdevices: 1/1 |
| | 466 | Subdevice #0: subdevice #0 |
| | 467 | root@noble-venice:~# aplay -D sysdefault:CARD=1 /usr/share/sounds/alsa/Rear_Center.wav |
| | 468 | Playing WAVE '/usr/share/sounds/alsa/Rear_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono |
| | 469 | }}} |
| | 470 | |
| | 471 | |
| | 472 | Example below Record wav file from USB microphone and then play back: |
| | 473 | {{{ |
| | 474 | root@noble-venice:~# arecord -l |
| | 475 | **** List of CAPTURE Hardware Devices **** |
| | 476 | card 1: Headset [Logi USB Headset], device 0: USB Audio [USB Audio] |
| | 477 | Subdevices: 1/1 |
| | 478 | Subdevice #0: subdevice #0 |
| | 479 | root@noble-venice:~# arecord -D sysdefault:CARD=1 -f cd -d 10 -t wav /tmp/foo.wav |
| | 480 | Recording WAVE '/tmp/foo.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo |
| | 481 | |
| | 482 | ^CAborted by signal Interrupt... |
| | 483 | arecord: pcm_read:2240: read error: Interrupted system call |
| | 484 | root@noble-venice:~# aplay -D sysdefault:CARD=1 /tmp/foo.wav |
| | 485 | Playing WAVE '/tmp/foo.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo |
| | 486 | root@noble-venice:~# |
| | 487 | |
| | 488 | |
| | 489 | }}} |