Board index FlightGear Support Tools ATC-pie

Pilot read-back not working on mac

ATC-pie is a radar air traffic control simulation program for the FlightGear multi-player network.

Pilot read-back not working on mac

Postby olitr20 » Wed Apr 20, 2022 1:16 pm

Hi, I've downloaded pyttsx3 using pip install and also using python3 -m pip install, as well as trying pyttsx2.7 and every time I seem to get this error:

Error setting up the speech synthesiser: '__NSCFString' object has no attribute 'decode'
Pilot read-back disabled

I'm not sure what I can do to resolve the problem.

Thanks in advance for any help!
olitr20
 
Posts: 1
Joined: Wed Apr 20, 2022 1:13 pm

Re: Pilot read-back not working on mac

Postby JLP04 » Tue Aug 16, 2022 4:40 pm

I found a fix which is changing line 86 in ext/tts.py from
Code: Select all
vdct = {v.id: set(lang.decode('utf8') for lang in v.languages) for v in self.engine.getProperty('voices')}
to
Code: Select all
vdct = {v.id: set(lang for lang in v.languages) for v in self.engine.getProperty('voices')}
. But, once I fixed this, starting a solo session causes the game to close and I haven't figured out what's causing that yet.
JLP04
 
Posts: 7
Joined: Mon Jun 15, 2020 3:34 pm

Re: Pilot read-back not working on mac

Postby mickybadia » Mon Nov 07, 2022 5:42 pm

I discourage using this "fix" because a crash has been reported after using it (SF ticket #24).
Users experiencing the same problem might want to report what the test code I posted there gives them.

[EDIT: added missing word]
mickybadia
 
Posts: 475
Joined: Tue Sep 24, 2013 10:12 am


Return to ATC-pie

Who is online

Users browsing this forum: No registered users and 3 guests