Changes between Version 13 and Version 14 of venice/multimedia


Ignore:
Timestamp:
11/05/2024 05:41:49 PM (2 weeks ago)
Author:
Ryan Erbstoesser
Comment:

add usb audio notes

Legend:

Unmodified
Added
Removed
Modified
  • venice/multimedia

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