I'm using Raspbian Jessie and have a Google Assistant working using an input microphone and a speaker attached to the 3.5 socket. I also have a Bluetooth speaker which has been paired.
My question hopefully is quite simple (tried getting the answer from other articles but can't seem to figure out what to try):
On the desktop I can right-click on the volume control and pick my Bluetooth speaker and then my adapted Google assistant code can launch cvlc to play music on that speaker (the assistant voice still comes out of the 3.5 socket speaker) and it all works. I want to know how to do the right-click volume control selection from either the command line or even better python itself so that I can write code to tell my assistant to connect to the speaker and then play the song.
Most articles I read talk about switching from Analog to HDMI. But my choice here is to flick between Analog and one of a listed set of Bluetooth speakers which I've separately paired previously.
Quite new to Python and still a Pi novice, any help or pointers would be great.