# \_sound.mp3 added to template and media.collection not exporting

**URL:** <https://forums.ankiweb.net/t/sound-mp3-added-to-template-and-media-collection-not-exporting/28051>\
**Category:** Card Design\
**Created:** [March 2, 2023, 12:53am UTC](https://forums.ankiweb.net/t/sound-mp3-added-to-template-and-media-collection-not-exporting/28051 "2023-03-02T00:53:50Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shell](https://avatars.discourse-cdn.com/v4/letter/s/46a35a/32.png) [@Shell](https://forums.ankiweb.net/u/Shell)\
**Post date:** [March 2, 2023, 12:53am UTC](https://forums.ankiweb.net/t/sound-mp3-added-to-template-and-media-collection-not-exporting/28051/1 "2023-03-02T00:53:50Z")

</div>

Hello there! I have been happily creating custom decks, but ran into some trouble when trying to export a deck that includes in the template on the front and back a file in the media.collection folder called \_sound.mp3 file. On import of the exported deck, this file is missing from the collection.

I tested export and import of a file called \_image.png placed in the front and back of the template and it does export and import with the deck, however, the \_sound.mp3, does not.

I am exporting an Anki Deck Package (.apkg) file.

I am hoping that I do not need to create an extra field to place my small sound file into.

Thank you!!

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [March 2, 2023, 7:34am UTC](https://forums.ankiweb.net/t/sound-mp3-added-to-template-and-media-collection-not-exporting/28051/2 "2023-03-02T07:34:56Z")

</div>

How is the file referenced on the template?

---

<div class="post-metadata">

**Author:** ![Shell](https://avatars.discourse-cdn.com/v4/letter/s/46a35a/32.png) [@Shell](https://forums.ankiweb.net/u/Shell)\
**Post date:** [March 2, 2023, 4:48pm UTC](https://forums.ankiweb.net/t/sound-mp3-added-to-template-and-media-collection-not-exporting/28051/4 "2023-03-02T16:48:42Z")

</div>

Hello again!!

Great news!

I just changed the format using the audio tag in HTML.

It imports with the deck now!!

Thank you so much for helping me.

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [March 3, 2023, 5:38am UTC](https://forums.ankiweb.net/t/sound-mp3-added-to-template-and-media-collection-not-exporting/28051/6 "2023-03-03T05:38:10Z")

</div>

@rumo mind adding sound tags to the existing checks in the exporter?

---

<div class="post-metadata">

**Author:** ![Shell](https://avatars.discourse-cdn.com/v4/letter/s/46a35a/32.png) [@Shell](https://forums.ankiweb.net/u/Shell)\
**Post date:** [March 21, 2023, 1:28am UTC](https://forums.ankiweb.net/t/sound-mp3-added-to-template-and-media-collection-not-exporting/28051/7 "2023-03-21T01:28:10Z")

</div>

Changed from:  
[sound:\_sound.mp3] to `<audio src="_sound.mp3">`  
and it exported and imported without having to put the file into a field!

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [March 22, 2023, 6:27am UTC](https://forums.ankiweb.net/t/sound-mp3-added-to-template-and-media-collection-not-exporting/28051/8 "2023-03-22T06:27:22Z")

</div>

Please note that workaround will no longer be required when 2.1.61 comes out and you upgrade to it.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [April 21, 2023, 6:28am UTC](https://forums.ankiweb.net/t/sound-mp3-added-to-template-and-media-collection-not-exporting/28051/9 "2023-04-21T06:28:00Z")

</div>

Closed on April 21, 2023, 6:28am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
