81 2
Sign in to rate

AwesomeTTS (Google Cloud Text-to-Speech) [unofficial]

0.19MB. Updated 2020-02-04. Only supports Anki 2.1.x.
The author has shared 20 other item(s).

Description

This is an unofficial upload of the AwesomeTTS add-on with Google Cloud Text-to-Speech support added. For more information about the AwesomeTTS add-on please see: - https://ankiweb.net/shared/info/301952613 - https://github.com/AwesomeTTS/awesometts-anki-addon I was paid to make it. All credit goes to Hieu who commissioned it and the AwesomeTTS team for all their work on the add-on. What I did is nothing in comparison to them. For Anki 2.1.20+ there's also built-in Text to Speech support - https://apps.ankiweb.net/docs/manual.html#text-to-speech CHANGES 2019-02-20 Add Google Cloud Text-to-Speech 2019-07-09 Update the list of supported voices 2019-11-07 Add Mandarin Chinese to the list of supported voices 2019-11-07 Support 3-letter language code 2020-01-03 Fix "SSL: CERTIFICATE_VERIFY_FAILED" on macOS 2020-01-25 Fix on-the-fly TTS 2020-01-26 Add basic support for Anki 2.1.20 - https://apps.ankiweb.net/docs/beta.html 2020-02-03 Fix for Anki 2.1.20beta7 2020-02-04 Ignore AnkiDroid TTS tag - https://docs.ankidroid.org/manual.html#_workarounds (Text to Speech) HOW TO USE 1. Create an API key. It may look something like this: 1.1. Create a new project. 1.2. Add a valid payment method. 1.3. Activate Google Cloud Text-to-Speech API. 1.4. Create an API key. For more information please see - https://cloud.google.com/docs/authentication/api-keys#creating_an_api_key 2. Paste it in the AwesomeTTS add-on. API KEY The following API key can be still valid and can be used for testing as long as it doesn't exceed 300 requests per minute and 1 million characters monthly free tier. AIzaSyBm7NinfOuybtq-WWkcFMoiHHxMz60qxj0 ADDITIONAL INFORMATION According to Pricing and Quotas & Limits, a monthly free tier for WaveNet voices is limited to 1 million characters (~23 hours) and 5,000 characters per request. It looks like it can be temporarily increased via Google Cloud Platform Free Tier. ISSUES Please submit any relevant issues here, by email or via GitHub - https://github.com/kelciour/awesometts-anki-addon/issues The official Anki Support forum is a good place too, but I won't get a notification and it may take some time before I notice it. NOTES This is pretty much a temporary upload for an easy install of AwesomeTTS add-on with Google Cloud TTS support. It may or may not work with another AwesomeTTS add-on installed. Nickolay <kelciour@gmail.com>

Download

As add-ons are programs downloaded from the internet, they are potentially malicious. You should only download add-ons you trust.

Supported Anki versions:

To download this add-on, please copy and paste the following code into Anki 2.1:

814349176

If you were linked to this page from the internet, please open Anki on your computer, go to the Tools menu and then Add-ons>Browse & Install to paste in the code.

All Anki 2.1.x Add-Ons Ask a Question

Reviews

on 1582072447
Works so well!

Any idea of how I would systematically replace all audio in a deck with AwesomeTTS?

I'm using the Domino Chinese deck, it's great but it's all old computer generated, and the updated voices would be brilliant.
Any tools or add-ons you can recomend to make that happen? thanks
on 1582048857
The add-on works great! Thank you.
The only thing I can't figure out for myself ( and I'm an inexperienced user :) is to apply this great add-on for my little project.
I need to place in the question field of the card a sentence from an English book. And I want it to be read by ttc when the card is opened
I've tried to add {{tts en_US:Field}} as per Anki manual to the top field of the card's template, but for some reason Windows 10 TTS didn't work for me when opening the card.
I tried different kinds of cards template with the same negative result. I thought then, that maybe I could record the voice from Awesome TTS, but couldn't do it either. Maybe you could advise me of any solution.
Thank you !
on 1581861860
Very useful addon!
on 1581836943
Thank you so much for your effort. Love it 😊
on 1581744119
Awesome applicability!
I might be missing something, but in past add-ons (this was a few years ago), there was a way to automatically add (and bulk-add) the TTS to the card. This one is working great, but I have to individually add the audio each time. Is there a way to work around this? (EDIT: I figured it out by clicking command + T in the browser, which allowed bulk adds. Thanks again for the tool!)
on 1581621954
Working perfectly with 2.1.20
on 1581545908
I started using your add-on yesterday, but I noticed that a feature from my old AwesomeTTS is not working: "AwesomeTTS will automatically populate the input field of the note editor dialog with whatever was already in the active note field when you opened the dialog."
on 1580725545
The pre-record function works well but on-the-fly still doesn't work on Mac.
Comment from author
Is there any error or something? It seems to work fine on Windows & Ubuntu, but it was just one line change and maybe there's something else that needed to be updated.

As an alternative, since you're on Mac, maybe try Anki 2.1.20 with built-in on-the-fly TTS support - https://apps.ankiweb.net/docs/beta.html

> You can now use {{tts en_US:Field}} on your card templates to use the text to speech support built into Windows and macOS, changing the language code as necessary.
> You can specify the voices you’d prefer - the first available one will be used. Eg. {{tts ja_JP voices=Apple_Otoya,Microsoft_Haruka:Field}}. The voices you specify must match the language.
> Adding {{tts-voices:}} to your template will show all available voices.
on 1580424953
Excellent plugin for Anki! Thank you for your efforts.
on 1580146368
Thank you. It was very helpful.
However, audio is not played on synchronized smartphones. What should I do to shed it?
Comment from author
I assume it's not about on-the-fly TTS tags since I doubt they'll work on mobile without some modifications to the card template and it's about [sound:...] tags that were added for example from the Add or Edit window or by using AwesomeTTS - Add Audio to Selected in the card browser. In this case, everything should work fine on mobile if it works on desktop, all devices are in sync and media were synced too, i.e. Anki 2.1 - Tools - Preferences - Network - "Synchronize audio and images too" and AnkiDroid - Preferences - "Fetch media on sync" or AnkiMobile - Preferences - "Sync Sounds & Images" weren't manually disabled and Anki 2.1 - Tools - Check Media doesn't report any missing files in the collection.media folder.
on 1579777540
good
on 1579571401
Works great with wavenet. Code changes look reasonable too. Some things are still broken in 2.1.x but I'll send PRs if I need anything.
on 1579446794
for a few hours, I get it and make it successful.
Thank a lot for your effort. I was upset when awesomeTTS ( google translate) does not work with the newer anki until I read this instruction
on 1579432116
This is one of the best Anki add-ons I have used.
and support from the developer is very good and fast.
Thank you for your great work man.
on 1579367759
Thanks!
on 1579292478
Thanks very much , this is the only app I can found that can do this job ( Google Cloud TTS) , not only that it do the job very well and also free !! thanks so much man , Keep the good work , I didn't know any thing about Ankiweb or the application only when I found this addson at Google search .
on 1579287600
Most valuable thing on the addon list.
on 1579182664
Hello,
is it possibe to add https://www.dict.cc/ to Awesome TTS addon, here is how I get the audio manually from the site:
1-I clich "Optionen" under the search square or on this link https://www.dict.cc/dict/options.php
2-I scroll down from the left menu, under "Sprachausgabeformat" I choose "wav" instead of "mp3" and then click "Optionen Speichern"
3-After that I search the words I need and I can download the audio manually using "internet Download Manager"
Comment from author
Thank you for asking but I can't do it. Everything is possible but it takes time and at the moment I can't spend time on anything that of no interest to me.
on 1579020152
Works OK on Windows 10 and Ubuntu. Thanks for your efforts.
on 1578668278
5 of the 12 notes you selected were processed. During processing, 4 notes were successfully updated, but 1 note failed while processing.
The following problem was encountered:
HTTPSConnectionPool(host='texttospeech.googleapis.com', port=443): Max retries exceeded with url: /v1/text:synthesize? key=AlzaSyBm7NinfOuybtq-WWkcFMoiHHxMz60qxjO (Caused by SSLError(SSLE0F£rror(8, 'EOF occurred in violation of protocol (_ssl.c: 847)'),)) (1 time)
You aborted processing. If you want to rollback the changes to the notes that were already processed, use the Undo AwesomeTTS Batch Update option from the Edit menu.

thank you very much:) appreciate your work
on 1578240717
This is amazing! Still has some bugs (regular OSX Speech doesn't seem to work for me), but as this is new, completely understandable.
Comment from author
The add-on's been updated and OSX Speech I guess should work now too. In addition, Anki 2.1.20 comes with built-in TTS support.

> Changes in 2.1.20beta3 (95b497cc)
> You can now use {{tts en_US:Field}} on your card templates to use the text to speech support built into Windows and macOS, changing the language code as necessary.

For more information please see - https://apps.ankiweb.net/docs/beta.html
on 1578069750
I am sorry ı got thıs eror durıng google translate ın my Mac.

Cannot record the input phrase with these settings.

<urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:847)>

but ı works wtıh the apı above ın google cloud speech. Can you help about thıs ıssue. Today I delet thıs app accıdentally and reınstall ıt. After reınstall ı get thıs message. Thank you very much.

03-01-2020 thank you very much after update it is working now- Thanks again
Comment from author before post was edited
Firstly, it's okay to use the provided API key if it works. My credit card is no longer valid but somehow the API key is still working. Secondly, I've updated the add-on. It should work now but maybe I missed something. Please go to Tools - Add-ons - Check for Updates, restart Anki and let me know if it works or not. And lastly, thank you for not using the downvote button to report about the issue!
on 1577070950
In my installation under Linux works great. Thanks for adapting it to 2.1
on 1576225439
Very helpful for languages
on 1575765468
I get the following error. Also, I no longer see the field where I am to put the API_Key. Any thoughts on why I get this error? Do we still need to manually input the API Key? I don't see where in Anki we do this?

Thanks for your advice ...

Doug

==== Error ===
<urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:847)>
Comment from author
Please make sure that Google Cloud Text-to-Speech is selected, not Google Translate or any other TTS service, the API Key field should be there.
--------------
The add-on had been updated and it should work now with Google Translate too.
on 1575745660
It's working!
on 1575073858
Google Cloud Text-to-Speech is absolutely better. I wholeheartedly wish this addon become Official!! Thanks for making it!!
on 1574829075
Anki 2.1.11 (3cf770c7) Python 3.6.7 Qt 5.12.1 PyQt 5.11.3
Platform: Windows 10
Flags: frz=True ao=True sv=1

Caught exception:
File "C:\Users\BryantJialu\AppData\Roaming\Anki2\addons21\814349176\awesometts\gui\templater.py", line 201, in accept
tform = self._card_layout.tab['tform']
<class 'AttributeError'>: 'CardLayout' object has no attribute 'tab'
Comment from author
It took a while but the add-on finally has been updated and it's been fixed. In addition, Anki 2.1.20 comes with built-in TTS support.

> Changes in 2.1.20beta3 (95b497cc)
> You can now use {{tts en_US:Field}} on your card templates to use the text to speech support built into Windows and macOS, changing the language code as necessary.

For more information please see - https://apps.ankiweb.net/docs/beta.html
--------------
Thanks for the report! I don't know when it'll be fixed and at the moment can only suggest to generate audio using the browser window.
on 1574571597
Great!
on 1574534085
very good
on 1574279282
ready
on 1573938180
great, thank you!
on 1573211401
非常好用的tts插件,让我的例句有了十分优质的发音,感谢您!!!
on 1572439138
Amazing !!!!!!!!!!!!!
on 1572196088
excellent
on 1571900664
works awesome!! thank you mate
on 1570963133
very nice!
on 1570555624
Funciona !!
on 1570445710
muito bom
on 1569744874
I love it.
on 1569659811
awesome! thank you!
on 1568441690
For those who want to make this work with Chinese, go to /addons/awesometts/service/googletts.py

And add these elements in _voice\_list array:

("cmn-CN-Standard-A", "Mandarin Chinese, China (cmn-CN-Standard-A)"),
("cmn-CN-Standard-B", "Mandarin Chinese, China (cmn-CN-Standard-B)"),
("cmn-CN-Standard-C", "Mandarin Chinese, China (cmn-CN-Standard-C)"),
("cmn-CN-Wavenet-A", "Mandarin Chinese, China (cmn-CN-Wavenet-A)"),
("cmn-CN-Wavenet-B", "Mandarin Chinese, China (cmn-CN-Wavenet-B)"),
("cmn-CN-Wavenet-C", "Mandarin Chinese, China (cmn-CN-Wavenet-C)"),
And then change the number 5 to 6 in this line:

"languageCode": options['voice'][:6],

I'm not a python programmer so this solution is kinda dirty. But that's just because the design isn't perfect. The reason why you need to add 1 is that it's parsing the string based on the first 5 characters of the voice name like en-us for example but for Chinese it's cmn-CN, which is a character longer. Maybe someone can make this dynamic.
on 1568425189
Let's make this the official AwesomeTTS version and deprecate others please. Also my understanding is that this is the repository: https://github.com/kelciour/awesometts-anki-addon
on 1568400804
Good. Damien should baptize this as the official addon.

Notice: Beware of scammers trying to resell these voice services/API keys. Resells are usually forbidded by the T&S and these keys are usually revoked within a few months. Most voice services do come with free trials with a small limit cap per month, there's no need to pay a 3rd party for it, who's uncle also happens to be a prince or a king in Nigeria.
on 1567958679
Very useful, great for language learning decks, with all the available languages that Google offers
on 1567673314
Awesome, thanks so much for sharing this.
U r the life saver.
on 1567604392
Perfect!
on 1567354667
Useful addition.
on 1566820707
good!!!!
on 1566755925
Thank you. Seems to be working fine for me so far :)
on 1566153678
It's very helpful
on 1565826431
Really good!
on 1565571912
Just added audio to 5000 french cards using Google Text-to-Speech, with a nice sounding WaveNet voice :)
on 1565518265
nice
on 1565271465
excellent, works perfectly
on 1565195707
Ctrl + T works!
I LOVE YOU!
on 1564876489
Awesome addon, no bugs compared to other 2.1 versions, except the percentage always seems off by a little bit haha.

Can you ignore furigana when using this? that is if you have sections within square brackets can you ignore it?
on 1564106493
Works really well, and the WaveNet voices are amazing!
on 1563925519
ty
on 1563728752
I've been waiting for properly working text to speech add-on for Anki 2.1 for so long. This work like a charm. Thank you for your work.
on 1561147306
Great!
on 1560808254
good
on 1559905855
Great, thanks!
on 1559206223
Works perfectly with the given API key
on 1558511459
thanks
on 1558428411
No instructions for getting to step 2; configuration???? WTF
Comment from author
Please be more specific. As far as I can remember, I went to this page https://cloud.google.com/text-to-speech/ and clicked on "Try It Free" to get an API key.
on 1557812069
If you're looking for chinese TTS don't waste your time here. But I use that for Japanese and works flawless.
Comment from author before post was edited
There's indeed no Chinese voice in the add-on as it's not supported by Google Cloud Text-to-Speech at the moment. As for now the list of supported voices is hard-coded in the add-on and it may not be up-to-date, but the full list of voices can be found either on this demo page - https://cloud.google.com/text-to-speech/ - or in the documentation - https://cloud.google.com/text-to-speech/docs/voices

I know that Amazon Polly has Chinese voice, but I don't know how good it is ( https://docs.aws.amazon.com/polly/latest/dg/voicelist.html ) and this version of the AwesomeTTS add-on doesn't have Amazon Polly support and as for now I'm not very much interesting on spending time on something that would be of no use to me. I'm aware of another version of the AwesomeTTS add-on with Amazon Polly support, though it may take a bit of time to install it. Please see the following issue for more information - https://github.com/kelciour/awesometts-anki-addon/issues/2
on 1557030693
Would it be possible to add Google Cloud support/this add-on support for Anki 2.0.x? Many of the japanese voices (like naver translate, etc) have stopped working and the remaining ones sound like robots.
Can't shift to 2.1 as there are many important add-ons.
on 1556536390
Very good!!
on 1556495783
Works great!
on 1555582949
Большое спасибо!
on 1555507852
I don't use Anki 2.1, but I'm giving a thumbs up because someone took the time to make this port and upload it for free. Also I might just download Anki 2.1 because there is support for the Google Cloud TTS.
on 1555316497
Only this version of AwesomeTTS could be installed in my pc and still works fine with my newly installed anki 2.1.1. And so far, except some errors popup occasionally and some of the dictionary datasets are not accessible, all is fine.
on 1554643324
Works great, thank you!
on 1554498264
I need this plugin. Thank you for making it available.
[update] - Is it possible to have volume option?
on 1554025771
Lifesaver!! thanks! Hope chinese will be released!
on 1553502096
Nice and better than the other one for Anki 2.1. But 2 bugs I found for now:

• CTRL+T doesn’t work when selecting a one card in the browser. Works with several cards selected (at least 2).
• The groups fail to display presets in submenu. All the presets are shown at the top of the context menu instead and the group entries are shown in the bottom of the same menu.

It’s an awesome and useful addon for languages learning. Thanks for this improvement and update.
on 1552803767
Perfectly work!
on 1551372364
its so great
on 1550898332
It woks perfectly. Thank you for this cool job.
on 1550846957
Good things got better!
Really useful!
Thank you for your work :)
on 1550703611
Cannot preview the input phrase with these settings.

403 Client Error: Forbidden for url: https://texttospeech.googleapis.com/v1/text:synthesize?key=AIzaSyBoJ_L_E-A_ ...


Make this -> https://cloud.google.com/iam/docs/understanding-roles#primitive_role_definitions

And
it is necessary to activate Api for this error: https://cloud.google.com/text-to-speech/docs/quickstart-protocol
Comment from author
It looks like Google Cloud Text-to-Speech API haven't been enabled for a project associated with this API key.
---------------------
It looks like it's not possible to enable Google Cloud Text-to-Speech API without providing a valid payment method, i.e. you need to create a billing account and maybe sign up for GCP Free Tier - https://cloud.google.com/free/docs/gcp-free-tier
"Even though you set up a billing account, you won't be charged unless you upgrade to a paid account."

My billing account had been closed, it's not valid anymore, but it looks like it's still possible to continue to use Google Cloud Text-to-Speech API if it's already been activated. I've updated this page and added an API key that I've used for testing.
on 1550626106
Google Cloud TTS makes a huge difference. The app turns from "great" to "magnificent". Thank you very much!!!
Comment from author
No problem, but that's not entirely my doing as I've been paid to make this happen sooner than later and AwesomeTTS team have done an amazing work to make it so much easier to add any new TTS service without knowing anything about how Anki works.