awesomeTTS - delete text from field after audio has been generated

Here’s the problem:
I have a card design that has an extra field for the audio created by awesomeTTS. My procedure is that when I create a card, I put the word (that is to be translated) into the audio field and then have awesomeTTS transcribe it to audio. The audio is appended. Example:

Audio field:
to walk [sound:google-7b207482-e820d8a7-2651f0b9-5dc0d8fb-28976a2e.mp3]

This however means that I cannot use the audio field for a card design where only the audio is played (without me seeing the word). So I want to achieve is that the “to walk” string is automatically deleted from the audio field after the audio file has been created. Is there a way to do this?

1 Like

You may want to hide a field text in the card template. The text will not be displayed, but the audio will play (not tested on mobile), like this:

<!--{{Front}}-->

Works like a charm (also on android), thank you!

1 Like

Another technique that would make your notes more versatile is to always store you text and your audio in separate fields. Then you can have the add-on use your text field as the source, and your audio field as the target.

You never have to display the text on a card if you don’t want to, but you can still “display” the audio, so you’ll have a play button/control.

1 Like