Page 1 of 2

No audio output (TTS) on Linux

Posted: Tue Nov 06, 2018 5:57 pm
by Carpet
Hey
I recently switched from windows to linux with using X-Plane. I was very satisfied with the plugin, however on linux I have not managed to get text-to-speech output (i cant hear ATC and the pilot's voice). I am not sure if this is really a bug, as it is not 124th ATC problem but rather X-Plane and linux. I nevertheless wanted to ask this short question hoping someone has an idea how to get audio output on linux. Is it even possible?

Cheers and thanks for the work
Carpet

P.S. libcurl4 is installed and a bug report is attached.

My System:
Linux Mint 19 Tara, Cinnamon

Re: No audio output (TTS) on Linux

Posted: Wed Nov 07, 2018 9:40 am
by ntnll
Carpet wrote:
Tue Nov 06, 2018 5:57 pm
Hey
I recently switched from windows to linux with using X-Plane. I was very satisfied with the plugin, however on linux I have not managed to get text-to-speech output (i cant hear ATC and the pilot's voice). I am not sure if this is really a bug, as it is not 124th ATC problem but rather X-Plane and linux. I nevertheless wanted to ask this short question hoping someone has an idea how to get audio output on linux. Is it even possible?

Cheers and thanks for the work
Carpet

P.S. libcurl4 is installed and a bug report is attached.

My System:
Linux Mint 19 Tara, Cinnamon

Guys please read the FAQs!! You can find a lot of answers there!

Linux TTS is not supported by X-Plane, at least it wasn't in the previous versions, I suppose is still not supported.
In the past, I wrote an experimental custom OpenAL library function, in order to provide the TTS functionality. I later deprecated it because there were other plugins doing it well for the whole X-Plane simulator (my function was interfering with those software, generating a double audio stream). So basically I suggest to the Linux users to use one of them plugins.

If I fine remember, there were:
XLinSpeak
124thATC-speechaddon

Re: No audio output (TTS) on Linux

Posted: Wed Nov 07, 2018 3:08 pm
by Carpet
Hey
Now I feel really dumb. Sorry. Thanks for your reply anyway! Keep up the good work :) If I get it to run smoothly I'll surely consider donating.

Re: No audio output (TTS) on Linux

Posted: Thu Nov 08, 2018 10:15 am
by ntnll
Carpet wrote:
Wed Nov 07, 2018 3:08 pm
Hey
Now I feel really dumb. Sorry. Thanks for your reply anyway! Keep up the good work :) If I get it to run smoothly I'll surely consider donating.
No problem at all Carpet, I hope you can fix it.
I love Linux, but unfortunately the TTS support is quite poor. Is one of the reasons because I'm still using Windows for XP

Re: No audio output (TTS) on Linux

Posted: Thu Nov 08, 2018 7:28 pm
by argonius
Carpet wrote:
Wed Nov 07, 2018 3:08 pm
Hey
Now I feel really dumb. Sorry. Thanks for your reply anyway! Keep up the good work :) If I get it to run smoothly I'll surely consider donating.
I have audio output working on my Ubuntu 18.04 machine using XLinSpeak. You'll find a binary here: https://forums.x-plane.org/index.php?/f ... for-linux/

Just make sure speech-dispatcher is installed on your system. If you need help, just ask :-)

Re: No audio output (TTS) on Linux

Posted: Thu Jan 03, 2019 7:41 pm
by RandomUser
argonius wrote:
Thu Nov 08, 2018 7:28 pm
I have audio output working on my Ubuntu 18.04 machine using XLinSpeak. You'll find a binary here: https://forums.x-plane.org/index.php?/f ... for-linux/

Just make sure speech-dispatcher is installed on your system. If you need help, just ask :-)
I'm curious about this, since missing TTS is basically keeping me from flying more on Linux.

I figure that you'll only get a single voice and that Voices.txt becomes basically useless?

Re: No audio output (TTS) on Linux

Posted: Thu Jan 03, 2019 11:41 pm
by ntnll
RandomUser wrote:
Thu Jan 03, 2019 7:41 pm
argonius wrote:
Thu Nov 08, 2018 7:28 pm
I have audio output working on my Ubuntu 18.04 machine using XLinSpeak. You'll find a binary here: https://forums.x-plane.org/index.php?/f ... for-linux/

Just make sure speech-dispatcher is installed on your system. If you need help, just ask :-)
I'm curious about this, since missing TTS is basically keeping me from flying more on Linux.

I figure that you'll only get a single voice and that Voices.txt becomes basically useless?
That's correct. Multiple voices are supported only on Windows for the time being

Re: No audio output (TTS) on Linux

Posted: Mon Jan 21, 2019 8:34 pm
by RandomUser
Just for information: I've managed to get TTS to work on Arch Linux, but only using by espeak-ng as a TTS provider (Festival wouldn't work). And I had to keep the speech-dispatcher config at default values.

Re: No audio output (TTS) on Linux

Posted: Wed Mar 06, 2019 5:08 pm
by hoover
Hi guys,

I managed to install the XLinSpeech plugin by UglyDwarf and have ATC voices in the standard ATC, just not with the 124thATC plugin. I'll check out this speech-dispatcher and see if it helps. Is it necessary to install if standard ATC voices work?

X-plane 11.32, Linut Mint 19.1 64bit.

All the best & thanks for creating this plugin!

Uwe

EDIT: Looks like I already have it installed:
apt install speech-dispatcher
Reading package lists... Done
Building dependency tree
Reading state information... Done
speech-dispatcher is already the newest version (0.8.8-1ubuntu1).

Re: No audio output (TTS) on Linux

Posted: Wed Mar 06, 2019 6:10 pm
by RandomUser
Do you have a TTS engine installed and is it working?

TTS on Ubuntu:
https://wiki.ubuntuusers.de/Sprachausgabe/

Re: No audio output (TTS) on Linux

Posted: Thu Mar 07, 2019 8:58 am
by hoover
Hello RandomUser,

many thanks for your reply.

I have "speech-dispatcher" installed as outlined above, do I need anything else for TTS to work with this plugin?

As mentioned TTS works fine with the standard XPlane ATC with the xlinspeech plugin.

Which of the engines / tools from the link you provided would you recommend? Being a command line guy I'd tend towards espeak but if there's one that will enable 124thATC TTS I'd be happy about any recommendation.

All the best,

Uwe

Re: No audio output (TTS) on Linux

Posted: Fri Mar 08, 2019 12:11 am
by RandomUser
I use espeak-ng because it works out of the box with speech-dispatcher for me.

All other TTS engines seem to require some degree of configuration to work.
https://freebsoft.org/doc/speechd/speec ... tcher.html

Re: No audio output (TTS) on Linux

Posted: Fri Mar 08, 2019 8:22 am
by hoover
Again thanks,

I'll give espeak-ng a try with the plugin then and report back.

All the best,

Uwe

Re: No audio output (TTS) on Linux

Posted: Fri Mar 08, 2019 4:18 pm
by hoover
Hi folks,

I have now install espeak-ng and it works ok from the command line (espeak-ng "Hello World" does just that).

However I'm still not getting voice output from the plugin, so I'm wondering if my XLinSpeech plugin is installed correctly as it's not listed in XP's "installed plugins" list. The compilation seems to have worked fine:

Code: Select all

$make lin64.xpl
make: 'lin64.xpl' is up to date.

$ ls -l /usr/games/xplane11/Resources/plugins/XLinSpeak/64/lin64.xpl 
-rwxr-xr-x 1 hoover hoover 56232 Mar  6 17:39 /usr/games/xplane11/Resources/plugins/XLinSpeak/64/lin64.xpl
Settings.txt:
welcomeMessage#0
gIsSpeechActivated#1
gShowDarkWindows#1
gKMLExp#1
gQNH#1
altimeterDecimal#0
gFirstReadback#0
offsetFirstReadback#0.9
offsetFirstTurn#0.5
holdingPointRadius#0.1
programmFMSDirectOnJump#1
aiPlanesActivated#0
gSwitchCenterDefaultDistance#15
gProgramAutostart#1
FLTolerance#300
pointInsteadDecimal#0
flightStatsIsActive#0
lowAltitudeSpeedWarning#0
calculateWCA#1
maxHeadingError#10
headingAnnounceDelay#0
updateCheck#1
enableFmcProgramming#1
programmFMSApproxILS#1
headingAnnounceDelayAP#12
onScreenWarnings#1
reduceVectorCalls#0
preciseHeading#1
tdDescentSpeed#1500
disableVoiceOnReadBack#1
userDebug#1
autoHideDarkBox#0
autoHideDarkBoxTimeOut#30
simTimeStampMessages#0
checkSquawkCode#1
headingIndicatorActive#1
frequenciesPositionLeft#100
frequenciesPositionTop#500
dialogPositionLeft#1034
dialogPositionTop#215
latestVersion#0
informationsPosition#800

ldd also shows no missing libraries for the xpl file, so I'm a bit stumped here what to try next.

Thanks in advance for your patience and advice :)

All the best, Uwe

Re: No audio output (TTS) on Linux

Posted: Fri Mar 08, 2019 4:35 pm
by hoover
PS: I also checked that speech-dispatcher is enabled and running (which it is), so I'm beginning to wonder if the XLinSpeak plugin may be the problem here as it's not listed in x-plane, despite residing in the correct location according to the docs on github.

All the best, Uwe