1 Reply Latest reply on Aug 17, 2015 3:30 PM by CMata_Intel

    yocto 2.1: How to play WAV over bluetooth speakers

    maestr0

      how to connect a bluetooth speaker to Edison and play a wav file.

       

      yocto 2.1

      configure_edison --version
      159
      
      
      
      
      

       

       

      I am able to pair and connect a bluetooth speaker using

       

      bluetoothctl
      
      
      
      
      

       

       

      pactl list | grep bluez_sink
        Name: bluez_sink.5A_5A_5A_A6_3B_C7
        Monitor Source: bluez_sink.5A_5A_5A_A6_3B_C7.monitor
        Name: bluez_sink.5A_5A_5A_A6_3B_C7.monitor
        Monitor of Sink: bluez_sink.5A_5A_5A_A6_3B_C7
      
      
      
      
      

       

      5A:5A:5A:A6:3B:C7 is the speaker.

       

      There is no mplayer by default in yocto 2.1.

      There is no install command either so I can't install mplayer properly when I compile it from sources. I can only run it from where it got compiled. But for now let's assume I don't have mplayer. What are my alternatives?

       

      aplay is not showing my bluetooth speaker

       

      aplay -lL
      null
          Discard all samples (playback) or generate zero samples (capture)
      default:CARD=Loopback
          Loopback, Loopback PCM
          Default Audio Device
      sysdefault:CARD=Loopback
          Loopback, Loopback PCM
          Default Audio Device
      front:CARD=Loopback,DEV=0
          Loopback, Loopback PCM
          Front speakers
      surround21:CARD=Loopback,DEV=0
          Loopback, Loopback PCM
          2.1 Surround output to Front and Subwoofer speakers
      surround40:CARD=Loopback,DEV=0
          Loopback, Loopback PCM
          4.0 Surround output to Front and Rear speakers
      surround41:CARD=Loopback,DEV=0
          Loopback, Loopback PCM
          4.1 Surround output to Front, Rear and Subwoofer speakers
      surround50:CARD=Loopback,DEV=0
          Loopback, Loopback PCM
          5.0 Surround output to Front, Center and Rear speakers
      surround51:CARD=Loopback,DEV=0
          Loopback, Loopback PCM
          5.1 Surround output to Front, Center, Rear and Subwoofer speakers
      surround71:CARD=Loopback,DEV=0
          Loopback, Loopback PCM
          7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
      **** List of PLAYBACK Hardware Devices ****
      card 0: Loopback [Loopback], device 0: Loopback PCM [Loopback PCM]
        Subdevices: 8/8
        Subdevice #0: subdevice #0
        Subdevice #1: subdevice #1
        Subdevice #2: subdevice #2
        Subdevice #3: subdevice #3
        Subdevice #4: subdevice #4
        Subdevice #5: subdevice #5
        Subdevice #6: subdevice #6
        Subdevice #7: subdevice #7
      card 0: Loopback [Loopback], device 1: Loopback PCM [Loopback PCM]
        Subdevices: 8/8
        Subdevice #0: subdevice #0
        Subdevice #1: subdevice #1
        Subdevice #2: subdevice #2
        Subdevice #3: subdevice #3
        Subdevice #4: subdevice #4
        Subdevice #5: subdevice #5
        Subdevice #6: subdevice #6
        Subdevice #7: subdevice #7
      

       

       

      What's wrong?

      5A_5A_5A_A6_3B_C7

      5A_5A_5A_A6_3B_C7