I was able to play a .wav file from my Edison in a Bluetooth speaker. I will post the steps I took here:
rfkill unblock bluetooth bluetoothctl agent DisplayYesNo default-agent scan on [set my speaker to pair] [I found my speaker's MAC: 00:11:67:CB:B7:1A] scan off pair 00:11:67:CB:B7:1A connect 00:11:67:CB:B7:1A quit pactl list sinks
The output of the last command displayed three devices:
The last one is the one you should look for; the other two options always appear even if no devices are connected to the Edison. Then the last two steps are:
pactl set-default-sink bluez_sink.00_11_67_CB_B7_1A gst-launch-1.0 filesrc location= /home/root/6TwvVhGFWndl.wav ! wavparse ! pulsesink
At this point the Edison and the Bluetooth speaker are working together to play the 6TwvVhGFWndl.wav file (It's Beethoven’s 5th in case you were wondering )
I believe the reason why you are not finding the sink is because you are trying to connect to a Android phone. I mean A2DP is designed to uni-directionally transfer an audio stream. I believe that your Edison doesn't detect your phone as a sink therefore it is not displayed on the pactl list sinks command.
thanks for your detail reply. I tried also, but I connect Edison with my Android phone, I have no Bluetooth Speaker.
following your steps, "pactl list sinks" cannot get sink #2 information. sink #0, sink #1 are all same as yours.
does it cannot support to connect with Android phone with A2DP ?
As I mentioned before, the reason why you can't connect on A2DP to your Andriod device is because it is not a audio device (like a speaker or a headset). I believe that's the same reason why your device doesn't appear as a sink although you are connected to the phone by Bluetooth. I'd suggest you to read Advanced Audio Distribution Profile | Bluetooth Development Portal and Implementing Advanced Audio Distribution Profile | Bluetooth Development Portal to learn more about A2DP.