I want to connect and play an audio file in Bluetooth speaker using apalis imx6 board.
How can I do this ?
I read the articles in internet, seems we need to configure the pulseaudio.
I am able to enable bluetooth controller in apalis board and able to see the bluetooth speaker MAC ID using 'bluetoothctl" command, but don’t know how to connect and play an audio file.
Able to compile the pulseaudio source code in apalis imx6 board and don’t know how to configure the pulseaudio to play an audio file.
Any reference links for configuring the BT speaker for apalis imx6 board ??
Got the below log while running the pulseaudio.
Once I run the pulseaudio, not able to see the bluez stack in pactl command output.
root@apalis-imx6:~# root@apalis-imx6:~# pulseaudio W: [pulseaudio] main.c: This program is not intended to be run as root (unless --system is specified).
Got the below error while running as normal user.
apalis-imx6:~$ pulseaudio E: [pulseaudio] module.c: Failed to load module "module-alsa-sink" (argument: ""): initialization failed. E: [pulseaudio] main.c: Module load failed. E: [pulseaudio] main.c: Failed to initialize daemon. apalis-imx6:~$ apalis-imx6:~$
In my understanding, source should be apalis imx6 audio card and sink should be BT speaker device.
But not able to see any BT speaker in pacmd & pactl command output.
I have attached the pacmd and pactl commands output log.
Can you please help me out of this issue ?