Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

Fixed gTTS due to google.cn refusing gTTS requests #215

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

PisoMojado
Copy link

google.cn for some reason no longer accepts TTS requests. This is not specific to chinese-support-redux, but it is affected by it so long as the code specifies google.cn as the tld.

You can reproduce the issue using gtts-cli:
PS C:\Users\michael> gtts-cli '超' --tld cn --lang zh-TW --output 超.mp3 Error: 404 (Not Found) from TTS API. Probable cause: Unknown PS C:\Users\michael>

Running this add-on with the change resolves the issue. Please note that due to the way gTTS is behaving, it creates an empty file despite the error, so users may still need to go into their media directories and delete 0 KB files created before this fix.

@rthomascampbell
Copy link

I'm continuing to have issues with the audio in chinese-support-redux even after reinstalling the add-on. Am I missing something? It's probably worth noting that I'm a layman, so the code-specific parts of these posts have eluded my understanding.

@PisoMojado
Copy link
Author

@rthomascampbell this change is not merged, the owners of this project have unfortunately not responded to this pull request. You don't need to re-install the plugin: find the file of the same name under 'files changed' in your anki installation and make the same changes I did, and it should work.

@Gigihrajakelana
Copy link

hi there, I get the same issues like you, but sadly I know nothing about coding, would please kindly guide me how to fix this thing so I could understand? your help will be so much appreciated. thank you

@rthomascampbell this change is not merged, the owners of this project have unfortunately not responded to this pull request. You don't need to re-install the plugin: find the file of the same name under 'files changed' in your anki installation and make the same changes I did, and it should work.

@adamvnovak
Copy link

@PisoMojado Thank you for fixing this and committing the change. The audio is fixed for me now.

The managers of this repo should merge this branch!

@GregorSchafroth
Copy link

This change did the trick for me, thanks a lot for sharing!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants