Coder Social home page Coder Social logo

Comments (5)

infernalis avatar infernalis commented on May 26, 2024 1

I ran into the same issue and, as a hack, removing lines 7 and 8 from that tts.py file seemed to make it work.

Edit: This also seems to have changed the voice that's used (which is a good thing!). Is the accent it gets from Google defined somewhere in the code?

Edit2: 3ter is correct, Google TTS is broken, my settings had reverted to Baidu when I re-imported the plugin.

from chinese-support-redux.

luoliyan avatar luoliyan commented on May 26, 2024

Thanks. This should be fixed now. Google no longer accept zh as a language code, because they now provide zh-cn and zh-tw. I'll make that an option in the menu at some point, but for now it will default to zh-cn.

from chinese-support-redux.

luoliyan avatar luoliyan commented on May 26, 2024

I've uploaded the new version to AnkiWeb. Can you confirm that it's working for you now?

from chinese-support-redux.

3ter avatar 3ter commented on May 26, 2024

Hi luoliyan,

actually I first couldn't update the addon. I've got this debug info from Anki:
Anki 2.1.5 Python 3.6.1 Qt 5.9.2 PyQt 5.9
Platform: Windows 10
Flags: frz=True ao=True sv=1

Caught exception:
File "aqt\addons.py", line 394, in onCheckForUpdates
File "aqt\addons.py", line 156, in downloadIds
File "aqt\addons.py", line 117, in install
File "aqt\addons.py", line 140, in deleteAddon
File "site-packages\send2trash\plat_win.py", line 58, in send2trash
<class 'OSError'>: Couldn't perform operation. Error code: 124

Then I deleted it from Anki after restarting it with SHIFT held.

After adding it Anki couldn't load but showed:
image

from chinese-support-redux.

3ter avatar 3ter commented on May 26, 2024

I ran into the same issue and, as a hack, removing lines 7 and 8 from that tts.py file seemed to make it work.

I can't confirm this. Removing those two import statements make the addon load but still I only get sound with Baidu's TTS engine.

Regarding the voice I suppose when they changed the language codes they also switched voices.
G_zh now is G_zh-cn at the end of the sound files as luoliyan wrote above.

You can find instances of them in the code, yes.

from chinese-support-redux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.