Giter VIP home page Giter VIP logo

aws-polly-anki-addon21's Introduction

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

aws-polly-anki-addon21's People

Contributors

dadav avatar dependabot[bot] avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

aws-polly-anki-addon21's Issues

Errors

I'm getting a lot of errors for sentences that are perfectly fine. For many cards, your add-on works fine, but with certain sentences I get this..

===

Error
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.
If the issue only occurs when add-ons are enabled, please use the Tools>Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem.
When you've discovered the add-on that is causing the problem, please report the issue on the add-ons section of our support site.
Debug info:
Anki 2.1.21 (f1734a47) Python 3.8.0 Qt 5.14.1 PyQt 5.14.1
Platform: Windows 10
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2020-05-23 19:34:07

ERROR:root:An error occurred (InvalidSsmlException) when calling the SynthesizeSpeech operation: Invalid SSML request

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.