krmanik / Sentence-Adder-Anki-Addon

Add sentences to Anki editor window in one click
GNU Affero General Public License v3.0
14 stars 6 forks source link

Suggestion: Ability to add Tatoeba ID to a field / audio #28

Open soliviantar opened 3 months ago

soliviantar commented 3 months ago

Hi, krmanik! Thanks again for your work, this is really useful.

I am trying to add some sentences to my cards, but I want to use the ones that have audio. I have downloaded a list with sentences with audio I am interested in. This is a tsv file that includes Sentence ID [tab] Sentence [tab] Sentence translation (if available).

What I'd like to do is to add the audio or the audio link to the note. To do that I need to know the Sentence ID and then create a link to or download the mp3 from https://audio.tatoeba.org/sentences/[languagecode]/[SentenceID].mp3. For example for Chinese sentence 332421, the audio link would be https://audio.tatoeba.org/sentences/cmn/332421.mp3.

Adding the link to a given field or even just the Sentence ID would be immensely helpful. I could then look for the audio myself or create the link with Find and replace or whatever.

Unfortunately I am unable to create a PR since I can't code, so I hope you consider it. Thanks again in any case!

krmanik commented 2 months ago

It can be done, I will put this feature in next version of the addon.