Quantcast
Channel: Intel Developer Zone Articles
Viewing all articles
Browse latest Browse all 3384

Play audio from your Intel® Edison via Bluetooth* using Advanced Audio Distribution Profile (A2DP)

$
0
0

Requirements

  • A Bluetooth* audio device, like a headset or speaker that can play sounds.

  • Connect your Intel® Edison board to a Wi-Fi* network, see Step 3: Get your Board Online.

  • SCP using a host computer connected to the same network (to copy music files over).

  • Establish a terminal to your board either Via Serial port or SSH.

Setup

Make your Bluetooth* audio device discoverable.

Type the following in the terminal to your board.

rfkill unblock bluetooth
bluetoothctl

Scan for devices.

scan on

Find your device and pair to it (replace the MAC address with the MAC address of your device)

pair 78:24:AF:13:58:B9

Verify that your A2DP device (the LG* headset in this case) is recognized in pulse audio as a sink device and that its sink name starts with bluez_sink.

pactl list sinks

Configure the default sink to use pulse audio server with the following command, replacing with the details of your device.

pactl set-default-sink bluez_sink.00_ 18_6B_4e_A4_B8

Copy an audio file (*.wav, *.mp3, etc) to the Intel® Edison device using scp, and play the audio file using mplayer.

mplayer Wave4.wav

More Info


Viewing all articles
Browse latest Browse all 3384

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>