Pulseaudio set-card-profile in default.pa not working

I am trying to set a profile persistently across reboots. Manually doing the following works:

$ pulseaudio --start
$ pacmd set-card-profile 0 'output:iec958-stereo'

But, it is not persistent across reboots, so I edited ~/.config/pulse/defult.pa appending another line:

set-card-profile 0 'output:iec958-stereo'

Adding the line to the end of default.pa causes pulseaudio to refuse to start with the error ‘Daemon session failed.’

How can I keep the profile setting persistent across reboots?

Go to Source
Author: Paul

Starting word drops when speech audio is played over bluetooth speaker (Ubuntu 18.04)

I am trying to play speech audio (audio files having text-to-speech output) over bluetooth speakers over the default settings in Ubuntu 18.04. The problem is the starting word gets cut off when the audio starts or if there’s silence in the audio file. No such problem when the audio is played over wired headphones or laptop speaker. I haven’t found any question similar to mine on this forum, but questions like this and this seem the closest and according to a comment on those threads:

Sounds like an issue with A2DP, which is one of the Bluetooth protocols. A2DP has a trigger delay, which can cut off the beginning of words if there is a pause between words. Since music is typically continuous sound, you won’t have the same issue.

For now, I have added a little noise to my audio files and find there is no cutting off of starting words over the bluetooth speaker. However I would love to have a better solution if it exists.

Go to Source
Author: supernova