#455 NameError: name 'TextToSpeechClient' is not defined

IP: 88.230.x.x Posted at: 16 hours ago 👁12

Traceback (most recent call last):

File "videotrans\mainwin\_actions.py", line 292, in tts_type_change

File "videotrans\tts\__init__.py", line 287, in is_input_api

File "videotrans\winform\googlecloud.py", line 170, in openwin

File "videotrans\winform\googlecloud.py", line 72, in __init__

File "videotrans\winform\googlecloud.py", line 106, in populate_voices

File "videotrans\winform\googlecloud.py", line 89, in _check_tts_client

NameError: name 'TextToSpeechClient' is not defined

=====

Windows-10-10.0.19045-SP0

version:v3.78

frozen:True

language:en

1 Replies

Admin

Please use the source code to deploy the software. The pre-packaged version will not be updated for the time being.


image

As shown in the figure, move the code TextToSpeechClient = None on line 12 of the file videotrans/winform/googlecloud.py to the top of the file, and then add a line of code global TextToSpeechClient on line 12.

image

Post Your Reply

Trending Questions