USB TO AUDIO

From Waveshare Wiki
Jump to: navigation, search
USB TO AUDIO
USB-TO-AUDIO-1.jpg
{{{name2}}}

{{{name3}}}

{{{name4}}}

{{{name5}}}

Introduction

This is a USB sound card that supports recording and playback, a stereo codec, a built-in microphone, and a speaker. It is suitable for Raspberry Pi/Jetson Nano, driver-free, plug and play.

Features

  • Onboard PWR indicators for operating status.
  • Onboard microphone and speaker, support audio input/output.
  • Driver-free, plug and play. Compatible with Windows, Mac OS, Linux, and Android.
  • Standard USB 2.0 port, portable size.

Specification

  • Power supply: 5V
  • Audo encoder/decoder: SSS1629A5
  • Control port: USB
  • Audio port: PH2.0
  • Speaker driver: 2.6W per channel (4Ω BTL)

Working with Raspberry Pi

Hardware Configuratoin

Hardware connection:
USB-TO-AUDIO-details-15.jpg

Play and Record

  • Right-click the Audio logo of Raspberry Pi ->Choose USB PnP Audio Device->Play or recording.

Configure Volume

  • Right-click USB Device Settings->The left spider is the volume of the speaker and the right one is microphone.

USB AUDIO test 2.png

Working with Jetson Nano

Hardware Configuration

Connection diagram:
USB TO AUDIO01.png

Configure Play & Recording Volume

  • Right-click on the top right speaker icon -> the speaker volume bar and microphone volume bar appear -> you can drag the volume bar to adjust the volume and microphone volume.

USB TO AUDIO02.png

Working with PC

  • Connect the USB TO AUDIO to PC and it will be auto-recognized as a USB audio device.

USB TO AUDIO 1.png

  • Open the Control panel. choose Hardware and Sound-> Sound -> Recording and a USB microphone is listed.

USB TO AUDIO 2.png

  • Connect speaker to the USB TO AUDIO , please keep the speaker away from the USB TO AUDIO module

Right-Click Microphone -> Properties -> Listen and set it as below:
USB TO AUDIO 3.png

  • Try to say to the microphone and check if the speaker works normally. Please keep the speaker away from the USB TO AUDIO Module, or it causes echo problem.

Working with Horizon Sunrise X3 PI

  • Open the command terminal, connect USB TO AUDIO, and enter the following commands:
lsusb
  • Seeing the content as shown means that the USB device has been detected:

USB TO AUDIO03.jpg

  • Enter the commands, and list the sound card and the digital audio device:
aplay -l 

See the content as shown in the figure indicates that the corresponding audio output is detected, remember the two positions shown in the label, later to carry out the use of the device needs:
USB TO AUDIO04.jpg
Enter the command to list sound cards and recording devices:

arecord -l 

See the content as shown in the figure indicates that the corresponding audio input is detected, remember the two positions shown in the label, the latter for the use of the device needs:
USB TO AUDIO05.jpg
Enter the commands, and adjust the volume in the interface:

sudo alsamixer

Press F6, choose the corresponding device, and adjust the volume:
USB TO AUDIO090.jpg
USB TO AUDIO091.jpg
Start recording 10 seconds of audio:

arecord -Dhw:0,0 -f S16_LE -r16000 -c2 -d 10 -t wav sound_16b_16k.wav

Note the markings of the location shown, here to be consistent with the previously detected.
USB TO AUDIO092.jpg
Start playing the audio you just recorded:

aplay -Dhw:0,0 -f S16_LE -r16000 -t wav sound_16b_16k.wav

Note the markings of the location shown, here to be consistent with the previously detected:
USB TO AUDIO093.jpg

Working With VisionFive2

Install usbutils library:

apt install usbutils

Enter lsusb to view the corresponding USB device, and the device shown in the figure indicates that the device is connected.
USB TO AUDIO094.png
Install alsa-utils:

apt install alsa-utils

Enter the commands, list the sound card and the digital audio device:

aplay -l 

USB TO AUDIO095.png
Enter the commands, list the sound card and the recording device:

arecord -l 

USB TO AUDIO096.png
Enter the command to adjust the volume in the terminal screen:

sudo alsamixer

USB TO AUDIO097.png
USB TO AUDIO098.png
Enter the command to adjust the volume in the terminal screen:

sudo alsamixer

Resources

FAQ

 Answer:
*Enter the volume adjustment command in the terminal interface
sudo alsamixer
  • If the USB PnP Audio sound card is not set as the default sound card, you need to press F6 to select the sound card device.

USB TO AUDIO.png

  • Switch speaker or microphone volume settings by left and right buttons; switch microphone volume settings by up and down buttons.

{{{5}}}


 Answer:
*Recording
arecord -d 10 test.wav
  • Broadcast
aplay test.wav

{{{5}}}



Support

If you require technical support, please go to the Support page and open a ticket.