
Use aplay command to play the file generated on your aplay -D hw:2,0 -f S16_LE -r16000 audio_record.wavīrief explanation of parameters, use aplay -h to get more information. *-r16000 = Frequency (16000Hz), varies from device to deviceĨ. *-f S16_LE = Format, varies from device to device. Use the arecord command to record and store in a file locally on Edison's home arecord -D hw:2,0 -f S16_LE -r16000 audio_record.wavīrief explanation of parameters, use arecord -h to get more information.

These are needed for the following step.ħ. From the displayed output on step 5, take note of the card# and the device# (in this example, card is 2 and device is 0). **** List of CAPTURE Hardware Devices ****Ĭard 0: Loopback, device 0: Loopback PCM Ĭard 0: Loopback, device 1: Loopback PCM Ĭard 1: dummyaudio, device 0: 14 Ĭard 1: dummyaudio, device 1: ((null)) Ĭard 1: dummyaudio, device 2: ((null)) Ĭard 2: BT300, device 0: USB Audio <- Our USB audio deviceĦ.

Sound source and sink over USB (uac2) To make this work, on Edison: To get pulse audio to work first create an ordinary user and add it to group sudo. Use the arecord -l command to list the audio devices and find the USB headset adapter, display output on Edison should look something like arecord -l On Edison put a tty on the newly created port ttyGS0 with /sbin/agetty -L 115200 ttyGS0 xterm-256color. audio record from a2dp (sink) remote player. On Edison, set the default audio output device using pactl pactl set-default-sink alsa_b-Plantronics_Plantronics_BT300_85c1bafebff57e4e80e864d6f4c9aa8a-00-BT300.analog-monoĥ. the intel® edison development board has hardware capabilitiesbluetooth, usb, and i2s i/othat allow you to enable the following audio features: audio over a usb device. Name: alsa_b-Plantronics_Plantronics_BT300_ From this USB device on Edison, you can see the number of streams handled by the device using the pactl list pactl list | grep Name | grep usb

On Edison, check if the device is correctly cat /proc/asound/pcmĠ0-00: Loopback PCM : Loopback PCM : playback 8 : capture 8Ġ0-01: Loopback PCM : Loopback PCM : playback 8 : capture 8Ġ1-01: ((null)) : : playback 1 : capture 1Ġ1-02: ((null)) : : playback 1 : capture 1Ġ2-00: USB Audio : USB Audio : playback 1 : capture 1 <- Similar to thisģ.
#Intel edison audio loopback Bluetooth#
Plug the USB headset for the Bluetooth adapter.Ģ. You also need an external power source for both the Intel Edison Kit for Arduino and Intel Edison Breakout board.ġ. If using the Intel® Edison Kit for Arduino*, activate the USB host mode by moving the SW1 to right position. If using the Intel® Edison Breakout Board, you need a USB-to-micro-USB adapter. Since this Bluetooth* headset model has a USB adapter, the Bluetooth headset is used as a USB headset. This guide follows section 4.4 from the Audio Setup Guide for Intel® Edison using a Plantronics BT300.
