Bỏ qua đến nội dung

Anki Polly Importer

Chờ xử lý #anki #addon #polly #importer
https://github.com/dadav/aws-polly-anki-addon21
24/4/2020

Cách tải addon Anki Polly Importer

Bạn có thể tải addon bằng một trong hai cách sau:

Click nút Copy bên dưới để copy code vào clipboard

2090845100

Sau đó mở Anki → Tools → Add-ons → Get Add-ons → Dán code → OK

Mở trang addon trên AnkiWeb và tìm mã code ở cuối trang

Mở trên AnkiWeb

Cuộn xuống cuối trang AnkiWeb, tìm dòng có mã code 2090845100 và copy

2

Mô tả chi tiết

Source: https://github.com/dadav/aws-polly-anki-addon21

ankipo This addon let’s you add audio from (aws) polly to your deck.

config

{ “access_id”: "", “access_key”: "", “audio_field”: “audio”, “engine”: “standard”, “query_fields”: [“text”], “query_fields_seperator”: “<break/>”, “template”: “{text}”, “region”: “eu-west-1”, “voice”: "" }

access_id: The id (NOT YOUR LOGIN CREDENTIAL) of the aws account you want to use.

access_key: The key (NOT THE PASSWORD) for the aws account you want to use.

audio_field: The name of the audio field you want to save the audio reference to.

engine: The name of the engine you want to use (standard or neural).

query_fields: A list of fields you want the audio from.

query_fields_seperator: The seperator that will be used to combine those fields.

template: The template you can use to supply some ssml decorators. You can also use {combined} or single field names as a reference like {field1}, {field2}. The have to be in the query_fields list tho.

region: The region of your aws instance.

voice: The aws polly voice you want to use.

example

If I would want to create a audio file from the fields singular1 and singular2, which contain the first and second conjugated forms of some german verb, seperated by a short break of 1s and save the result to the audio field, I would do it like this:

{ “access_id”: “idididididididid”, “access_key”: “keykeykeykeykey”, “audio_field”: “audio”, “engine”: “standard”, “query_fields”: [“singular1”, “singular2”], “query_fields_seperator”: “<break time=“1s”>”, “template”: “{combined}”, “region”: “eu-west-1”, “voice”: “Hans” }

you could also change the template to this (same result):

{ “template”: “{singular1}<break time=“1s”>{singular2}” }

or this (same result):

{ “template”: “<speak>{singular1}<break time=“1s”>{singular2}</speak>” }


Liên kết hỗ trợ


Reviews (2)

👍 2020-12-26

Quite unfinished, I was not able to get it running without modifying the source code.

Best would probably be to modify this to become an addon for AwesomeTTS, which has all the functionality needed

👍 2020-05-20

Works good. Would strongly suggest to developer to make it possible to do batch adds of audio files… going through my cards to add polly audio one by one will be very tedious. Also, an option to choose from multiple voices would be nice as I won’t want the same voice for all my audio.