Anki Polly Importer

AnkiWeb addon 2090845100

Generates AWS Polly speech audio from selected note fields using configurable credentials, region, voice, engine, field mapping, and SSML templates, saving the audio into a chosen deck field.
AI-generated summary; may contain mistakes.

card-creationsync-integration

Open on AnkiWeb GitHub Find alternatives

AnkiWeb

Votes
2 (πŸ‘ 2 Β· πŸ‘Ž 0)
Updated
2020-04-24
Anki versions
unknown
License
MIT (from the headers of the Python files)
Virus scan
No ClamAV match A match does not prove malware. No match does not prove that the code is safe.
Languages
JSON, Python, CSS, JavaScript, HTML, Erlang
Description language
en

Maintenance

abandoned

  • Last update or commit: 2022-12-08 (1424 days before the snapshot).
  • Commits in the last year: 0.
  • Issues: 1 open, 0 closed.
  • Pull requests: 2 open, 1 merged.

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.0–2020-04-24
History across monthly snapshots

Loading…

Similar addons

Description

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": "" } 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>" }

README

ankipo

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

Ankiweb(2090845100)

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>"
}

ssml

Link to docs