6 Replies Latest reply on Apr 26, 2015 4:57 PM by hemantt

    Sending audio to bluetooth earbuds using Pulseaudio/ALSA

    oneb1got

      Hi all,

       

      I am currently trying to play a .wav/.mp3 file using the edison and sending to a pair of bluetooth earbuds. Bluetooth works flawlessly, I can pair and connect with my earbuds but when I try to play the audio file with aplay/mpg123/mplayer, all three throw an error similar to "device not found".

       

      I have these packages installed:

      pulseaudio

      pulseaudio-server

      pulseaudio-modules-*

      alsa-utils

      alsa-conf

       

      my asound.conf:

      pcm.!default {

         type pulse

         #type bluetooth

         #device "00:18:91:6D:B7:01"

         #profile "auto"

      }

      ctl.!default{

      type pulse

      #type bluetooth

      #fallback "sysdefault"

      }

       

      as you can see, I've also tried to set type to bluetooth but no results. The strange thing is pulseaudio recognizes my device but ALSA does not. I was hoping that maybe using paplay instead of aplay i could play my mp3 file but i could not find the paplay package anywhere in the repo provided by AlexT.

       

      pactl list gives me:

      Card #1

              Name: bluez_card.00_18_91_6D_B7_01

              Driver: module-bluez5-device.c

              Owner Module: 12

              Properties:

                      device.description = "Air-Fi Metro 2"

                      device.string = "00:18:91:6D:B7:01"

                      device.api = "bluez"

                      device.class = "sound"

                      device.bus = "bluetooth"

                      device.form_factor = "headset"

                      bluez.path = "/org/bluez/hci0/dev_00_18_91_6D_B7_01"

                      bluez.class = "0x240404"

                      bluez.alias = "Air-Fi Metro 2"

                      device.icon_name = "audio-headset-bluetooth"

                      device.intended_roles = "phone"

              Profiles:

                      a2dp: High Fidelity Playback (A2DP Sink) (sinks: 1, sources: 0, priority: 10, available: yes)

                      off: Off (sinks: 0, sources: 0, priority: 0, available: yes)

              Active Profile: a2dp

              Ports:

                      headset-output: Headset (priority: 0, latency offset: 0 usec)

                              Part of profile(s): a2dp

                      headset-input: Headset (priority: 0, latency offset: 0 usec, not available)

       

      Whereas ALSA only lists loopback as the only device.

       

      Whats the best way to get audio up and running on my bluetooth earbuds? Find a way to install paplay? if so how? Or am I configuring ALSA wrong?