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

Unable to set config option "speech": "baidu|zh" #184

Open
oicheryl opened this issue Mar 31, 2021 · 1 comment
Open

Unable to set config option "speech": "baidu|zh" #184

oicheryl opened this issue Mar 31, 2021 · 1 comment

Comments

@oicheryl
Copy link

Thank you @luoliyan for your fantastic work on this add on!

Describe the bug
I use the config option "speech": "baidu|zh" to add Mandarin audio to cards. After I recently updated to the latest version, the setting does not save and the config always reverts back to "speech": "google|zh-CN" whenever I close the app. This means I am unable to use Baidu TTS.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Tools' -> 'Add-ons' -> Select 'Chinese Support Redux v0142' -> 'Config'
  2. Scroll to bottom and change "speech": "google|zh-CN" to "speech": "baidu|zh"
  3. Close Anki and restart
  4. Open a card with the appropriate fields (eg. "Hanzi" and "Audio") and check the 汉字 is enabled
  5. Click the "Hanzi" field and hit tab

Expected behavior
The audio should be filled with the Baidu TTS. Instead it is filled from Google.

Screenshots
Screenshot 2021-03-31 at 18 01 08

Specs (please complete the following information):

  • OS: MacOS Catalina Version 10.15.7, MacBook Pro 13-inch 2020
  • Anki Version: v 2.1.35
  • Chinese Support Version: v0.14.2
@luoliyan
Copy link
Owner

This is a result of the quick fix I made for Google TTS support. I need to do a second pass to make it less of a hack.

There will be an update over the weekend that addresses this and some other outstanding issues.

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

No branches or pull requests

2 participants