Hello,
john doe, le mer. 02 mai 2018 10:06:42 +0200, a ecrit:
On 5/2/2018 1:40 AM, Samuel Thibault wrote:
I'm afraid the only solution we have is that both espeakup and
speech-dispatcher just release the audio device when they think they
won't have anything to speak in the close future.
FI, I have worked on the espeakup part, which is relatively
straightforward: the speakup screen driver knows when the console is
switched to a graphical VT, and tell espeakup to suspend itself, so the
screen reader inside the Xorg session can (re)start speaking. The kernel
part has just been submitted, so it will land at best in linux 4.18.
Or the user let them know using command line option.
That can not work for the initial console -> lightdm switch.
Of course if an application in Xorg is still
using the audio card, pulseaudio will keep running the card and espeakup
won't be able to take it. I don't think we have any solution against
that.
Can't a new option be added in pulseaudio to force the release of the
soundcard?
Actually there is already pulseaudio -k which terminates the pulseaudio
server. That's a bit harsh though :)