#455 NameError: name 'TextToSpeechClient' is not defined

88.230.**5 Posted at: 11 months ago

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

#1 167.234.**4 reply at 11 months ago

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

Thinking...
Post Your Reply
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Dondate via ko-fi.com

Related resource