How Anki handles video/audio playback

ChatGPT is frequently wrong about things in Anki, so I’m pretty sure no one here is interested in debating with whatever it said. The place you should be looking to learn how to do this is the manual – Field Replacements - Anki Manual .

Even if there is eventually a setting implemented like what you’re asking for, it’s certainly not going to be in the next few days – Fixing this on your card templates yourself is the best plan.

If you have mp3 audio files attached to your notes – and you use the name of the actual field where you have that audio – this will work on any version of Anki. The first field replacement will show the contents of the field – as a :play_button: button – the other 4 will simply play the audio again.

It’s hard to tell you any more about where you went wrong because we know nothing about your note type, or what you changed in your card templates. You’re going to need to give us more details if you want more help.

1 Like

Não,entedi o que você disse.Fiz corretamente como disse não errei na escrita,mas ele não reconhece mesmo algunhas cartas.Esse tipo de coisa de códigos parece dá tipo um bug,sei lá…

Mas eu queria saber quem são vocês que respondem essas perguntas.Vocês são os donos do ankidoid,trabalham nele?Vocês podem adcionar essa função na configuração.Eu pago vocês se for o caso.Porfavor isso me ajudaria muito

You’re saying that you did it as instructed, and it didn’t work. Okay, that’s fine. But there’s nothing more anyone can do to help you without being able to see why it didn’t work. You can say it’s a bug, if that makes you happy – but since it’s only not working for you, it seems less likely that it’s a bug in the app.

The folks who have responded to your posts here – and on GitHub – and in the earlier Forum thread that you’ve already been given a link to (and hopefully have read) – include contributors and helpful members of the Anki community. This feature that you requested yesterday won’t be implemented any time soon – and the timeline is even longer (or possibly never) for something that you can already do quite easily with a change to your card template.

I’m sure the AnkiDroid project would appreciate your financial support – How can I donate? - Anki FAQs . As far as I know, that all-volunteer team has enough on their collective plate that they don’t operate on a feature-for-bounty model. Regardless, functionality like this would likely need to be implemented in desktop Anki first.

2 Likes

Ok,Entedi que não se pode fazer nada em relação a a criar essa função nas configurações.Então se me permitem gostaria de me aprofundar mais na solução que me apresentaram dos códigos.Vou ver melhor como ele tá reagindo dentro do anki.Vou mandar prints,explicar melhor para ver se vocês conseguem entender porque em algunhas cartas ele dar erros.Daquí algunhas semanas eu vouto pra gente descutir

It’s your question, so you can wait as long as you want to ask it.

But if you want to ask about code, it’s best to post it as text

```

in a preformatted/code block

```

– not as screenshots. You can post examples of what goes wrong as screenshots.

No. It should be the name of the field in your note where you have that audio file attached. Field Replacements - Anki Manual

Só me confirma uma coisa, porfavor antes de eu me aprofundar nisso?O ódigo que você me enviou:

{{Front}}{{Front}}{{Front}}{{Front}}{{Front}}

devo trocar “front” pelo nome do arquivo que quero que repita,certo?Quero colocar esse:

[sound:ankidroid_audioclip_4_The_Fresh_Prince_of_Bel_Air_00_00_46_06411062520501997336199.mp3]

ex:

{{[sound:ankidroid_audioclip_4_The_Fresh_Prince_of_Bel_Air_00_00_46_06411062520501997336199.mp3]}}{{Front}}{{Front}}{{Front}}{{Front}}

É sómente isso assim mesmo?

obs:

eu coloquei esse div hidden.É que não deu de aparecer pra vocé aqui quando escrevo.Porisso mandei a imagem para você ver como fiz

A primeira imagem que te enviei foi para mostrar como foi feito porque aqui escrevendo não dá de aparecer essa parte do codigo div hidden.Agora vou te mostrar examente como ficou

[That is exactly the reason I told you to put the code in a code block.]

But none of that is the problem you’re having. You’re putting those {{field replacements}} in a field of your note. That’s not where they go.

Start here: Getting Started - Anki Manual – and make sure you understand the difference between notes, note types, and card types.

  1. The name of your field is Frente.
  2. [It’s best to keep audio tags ([sound:...]) and text in separate fields, but if you’ve already got a lot of notes like this, it can be complicated to fix them.]
  3. A {{field replacement}} needs to go on the front or back template of your card, to tell Anki where to put the contents of that field when it makes your cards.
  4. In AnkiDroid, to edit that card type/template – which will make this change for the cards from every note in your collection that uses this note type (so make sure that’s what you want) – in your screenshot, click at the bottom where it says “Cartões”.
2 Likes

Meu Deus!!Eu não estou entendendo é mais nada.Não entendo nada de códigos.Fui mexer nisso e agora varias não sai mais nada.Você poderia pelo amor de Deus.Fazer um baralho anlki no seu celular fazendo exatamente como se faz isso.Ai você manda videos,prints

Please read (and understand) the Anki Manual, especially the concepts of:

If you don’t have a basic understanding of these concepts, you will find it difficult to understand the advice that people are giving you. Sorry if you find it difficult and more effort than you want, but learning these concepts is important. Otherwise, you would be just following instructions blindly, without understanding what you are doing or why you are doing them.

No. You should change “Front” to the name of the Field that contains the audio file information. (Or, leave it as “Front” if the name of the Field is actually “Front”.)

[sound:ankidroid_audioclip_4_The_Fresh_Prince_of_Bel_Air_00_00_46_06411062520501997336199.mp3]` goes in the Field on your Note. Do not put it directly in the Card Template.

If you’ve gotten yourself in a situation where things are already broken, you should restore from an automatic backup before you started making changes – Restoring an Automatic Backup (Recovering from Data Loss) - Anki FAQs .

I’m not going to make you a demonstration video, because there are tons of those out there you can already find yourself. There are probably even videos in Portuguese that you could find. But, as BenJamesBen said – none of that is going to help you if you don’t take a few minutes to understand those key concepts of Anki, so you know what you’re editing and why.

Falo em pouco de Português. A minha esposa é de Portugal. Ando a aprender Português com anki. Tenho um deck para language learning. Anki é muito bom mas precisam aprender como usar.

I went ahead and edited my language learning template to suit your needs. As you get more proficient in using anki, then you can make changes to suit your needs. For now, you can just put the words, audio, and/or images into the fields as you make the cards. Hopefully your collection is small. But if it is not, then you can change the note type and map the fields.

https://ankiweb.net/shared/info/1566903992?cb=1761733687916

Oh, and I am getting a note saying the deck won’t be available to the public for 24 hours.

I also sent you a personal message just in case you have questions as this is more of a unique problem that doesn’t need the full audience.

2 Likes