No audio output (TTS) on Linux

Support for any problem or bug related to 124thATC
ntnll
Posts: 561
Joined: Sun May 13, 2018 12:32 pm

Re: No audio output (TTS) on Linux

Post by ntnll » Fri Mar 08, 2019 5:56 pm

hoover wrote:
Fri Mar 08, 2019 4:18 pm
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:
...
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
Hi Uwe,
I don't drive the TTS from the plugin, is handled by XP SDK. So if the XP TTS works, 124th should works. Can you hear the ATIS voice when tuned the correct frequency on the radio? If I fine remember, also on Linux ATIS use the internal TTS, it should proves if XP is able to uses your TTS engine.

a.
124thATC Developer

hoover
Posts: 15
Joined: Wed Mar 06, 2019 5:04 pm

Re: No audio output (TTS) on Linux

Post by hoover » Sat Mar 09, 2019 7:54 am

Thanks a lot for your reply.

I'm getting some conflicting information from the x-plane / Linux subforum: It was stated there that the internal XP ATC doesn't use TTS, but sampled words that get rearranged into sentences as necessary:

https://forums.x-plane.org/index.php?/f ... nt=1611552

This kind of makes sense as the x-plane native "dumb" ATC rounds quite good while an espeak-ng "Hello World" sounds very much like Mr. Hawking's ghost :) (I can live with that because of the many great features of 124thATC)

Thanks again for the support & all the best,

Uwe

hoover
Posts: 15
Joined: Wed Mar 06, 2019 5:04 pm

Re: No audio output (TTS) on Linux

Post by hoover » Sat Mar 09, 2019 8:34 am

Hey guys,

I'm happy to report I got it to work, yay!!!

All I needed to do was to download the XLinSpeak binary plugin provided by uglydwarf in his announcement thread and use that instead of my self-compiled one (I guess that job is best left to the professionals :))

Now speech output is working just fine. The native X plane ATC voices sound better than what espeak-ng provides, but I read somewhere that you can tinker with those as well, so for now I'm very happy!

All the best,

Uwe

https://forums.x-plane.org/applications ... ?id=248660

RandomUser
Posts: 72
Joined: Fri Aug 31, 2018 10:15 pm

Re: No audio output (TTS) on Linux

Post by RandomUser » Sat Mar 09, 2019 2:16 pm

Congratulations.
If you happen to get a different TTS engine to work with speech-dispatcher, feel free to inform me. While espeak-ng works, it doesn't provide the best output.

ntnll
Posts: 561
Joined: Sun May 13, 2018 12:32 pm

Re: No audio output (TTS) on Linux

Post by ntnll » Sat Mar 09, 2019 9:24 pm

hoover wrote:
Sat Mar 09, 2019 7:54 am
Thanks a lot for your reply.

I'm getting some conflicting information from the x-plane / Linux subforum: It was stated there that the internal XP ATC doesn't use TTS, but sampled words that get rearranged into sentences as necessary:

Thanks again for the support & all the best,

Uwe
ATC communications are just wave files streamed, you can find those files in the xplane installation. But, as far as I know, the ATIS uses TTS. Definitely on windows, but I believe also on Linux
124thATC Developer

hockenberry
Posts: 5
Joined: Sat Dec 07, 2019 11:16 pm

Re: No audio output (TTS) on Linux

Post by hockenberry » Sat Dec 14, 2019 5:40 pm

Another possible hurdle in Ubuntu: my speech-dispatcher was not working for some reason,

Code: Select all

spd-say "hello"
would produce no sound. But when I was using

Code: Select all

espeak "hello"
it worked. It turns out that the volume level for speech-dispacther were turned down to 0. So to solve this issue go to settings/sound/applications tab and change the volume.

Voila!!! Sound is now working thanks to xlinspeak/speech-dispatcher. (note that you can tweak the speed in speech-dispacther conf files to be more in line with the speed of the real atc, I use x2).

ntnll
Posts: 561
Joined: Sun May 13, 2018 12:32 pm

Re: No audio output (TTS) on Linux

Post by ntnll » Sun Dec 15, 2019 7:04 pm

hoover wrote:
Fri Mar 08, 2019 4:35 pm
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
Hi hoover,
the best way to test TTS on XP is to tune on atis frequency. If you don't hear the voice, it means TTS is not working for whole X-Plane, not a 124thATC probelm
124thATC Developer

hockenberry
Posts: 5
Joined: Sat Dec 07, 2019 11:16 pm

Re: No audio output (TTS) on Linux

Post by hockenberry » Thu Dec 19, 2019 5:45 pm

@hoover I think your ocmpilation was fine. Its just that xplane expects a lin.xpl file not a lin64.xpl. So if you rename it to lin.xpl or create a link your compilation should work. I know you solve the issue but maybe it can help others.

vittop
Posts: 107
Joined: Tue Dec 11, 2018 7:50 am

Re: No audio output (TTS) on Linux

Post by vittop » Thu Jan 09, 2020 11:24 pm

hockenberry wrote:
Thu Dec 19, 2019 5:45 pm
@hoover I think your ocmpilation was fine. Its just that xplane expects a lin.xpl file not a lin64.xpl. So if you rename it to lin.xpl or create a link your compilation should work. I know you solve the issue but maybe it can help others.
I confirm, my self-compiled linspeak is named lin.xpl too, and works fine on both my Linux machines (one is with XP11 Demo other is XP11 full)
[Using XP11.41r1|Ubuntu 16.04\Mint 18.3|Kernel 4.15.0-99|amdgpu opensource driver|Mesa 18.0.5]

Post Reply