AwesomeTTS / awesometts-anki-addon

AwesomeTTS text-to-speech add-on for Anki
GNU General Public License v3.0
481 stars 99 forks source link

How to add audio next to the highlighted text instead of at end of field? #302

Open slabzzz opened 8 months ago

slabzzz commented 8 months ago

I often notice that whenever I add audio, the audio file is put at the end of the field. Is there any way I can have the audio file text be put right next to the highlight instead?

luc-vocab commented 8 months ago

I thought this worked and I remembered putting in a fix for that some time ago. Can you help describe your use case ? Are you trying to add audio only for specific words within a sentence in the field ?

slabzzz commented 8 months ago

I thought this worked and I remembered putting in a fix for that some time ago. Can you help describe your use case ? Are you trying to add audio only for specific words within a sentence in the field ?

I want to order the audio files well.

Say I have a field:

test

[audio file 1]

I highlight "test" for pronunciation. However, the field becomes:

test

[audio file 1]
[audio file 2 (the new "test" audio)]

This makes the audio file 1 play first when I intended for "test" to play first. So I have to move audio file 2 above audio file 1.

Some people might prefer having the audio added at the very end of the field, but I don't. That's why I was wondering if there was an option to add the audio immediately after the highlighted text? Like this:

test [audio file 2]

[audio file 1]