Comments (5)
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.
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.
I've uploaded the new version to AnkiWeb. Can you confirm that it's working for you now?
from chinese-support-redux.
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:
from chinese-support-redux.
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)
- Chinese Redux problem (maybe cantonese related) HOT 3
- Cantonese pinyin does not work HOT 3
- Option to reverse cards HOT 1
- Meaning field isn't populating HOT 5
- Crash every second time fields are automatically filled due to audio
- Ruby doesn't separate vowel followed by n- initial properly
- Silhouette field doesn't fill HOT 2
- (fully) Colorize and make ruby pinyin for phrases (long words) HOT 1
- Bopomofo loading not correct HOT 1
- Colouring doesn't work
- sound not working, mp3 file has bug HOT 18
- On Windows 11 Redux don't add the fields with a new Chinese word HOT 3
- Can't click 汉字 button
- About punctuation and symbols HOT 4
- addons21\1128979221\edit.py:86:model is deprecated: please use 'note_type'
- Not getting audio clips while trying to use Google Mandarin speech engine HOT 6
- Create Reverse Cards HOT 2
- Color field won't fill correctly in another note type HOT 2
- Support Pinyin tone numbers as well as accent marks HOT 2
- Clicking on 汉字 doesn't activate the pluggin HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chinese-support-redux.