# Export notes / cards with built in TTS to TXT

**URL:** <https://forums.ankiweb.net/t/export-notes-cards-with-built-in-tts-to-txt/27090>\
**Category:** Beta Testing\
**Created:** [February 3, 2023, 9:17am UTC](https://forums.ankiweb.net/t/export-notes-cards-with-built-in-tts-to-txt/27090 "2023-02-03T09:17:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cqg](https://avatars.discourse-cdn.com/v4/letter/c/e95f7d/32.png) [@cqg](https://forums.ankiweb.net/u/cqg)\
**Post date:** [February 3, 2023, 9:17am UTC](https://forums.ankiweb.net/t/export-notes-cards-with-built-in-tts-to-txt/27090/1 "2023-02-03T09:17:51Z")

</div>

I don’t know if this is intentional or not, but when exporting cards / notes using a notetype containining a {{tts}} field, the resulting TXT file includes the TTS references and duplicates the contents of the text fields.

This is, for example, a simple card using the built in TTS feature:  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/2/28bf2be7e350cabf2c1990fe0168d60d604d7057.png)

This is the resulting txt file after exporting the deck (“Include HTML / media references” option is unchecked)

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/2/2d38ff4c57021dc6b1456c127a70aac663eb15b3.png)

But if I change the notetype of the card to Basic, I get expected results:  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/f/f73495da7cf0cd70d6f169443ecfd1d2b81a8a9c.png)

Shouldn’t export to TXT files (without including HTML and media references) be limited to the actual content of the cards?

---

<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:** [February 5, 2023, 5:56am UTC](https://forums.ankiweb.net/t/export-notes-cards-with-built-in-tts-to-txt/27090/2 "2023-02-05T05:56:54Z")

</div>

You say cards/notes, but I suspect this only happens when exporting cards? The export cards mode is intended for moving content to other flashcard programs that only support front/back cards, so it renders the front and back card templates.

---

<div class="post-metadata">

**Author:** ![cqg](https://avatars.discourse-cdn.com/v4/letter/c/e95f7d/32.png) [@cqg](https://forums.ankiweb.net/u/cqg)\
**Post date:** [February 5, 2023, 7:07am UTC](https://forums.ankiweb.net/t/export-notes-cards-with-built-in-tts-to-txt/27090/3 "2023-02-05T07:07:00Z")

</div>

Yes, you’re right, sorry, my fault. Still, I personally find exporting TTS code and duplicated fileds, while of course not a serious problem, somewhat unnecessary and counterintuitive.

Anyway, thanks for clarifying!

---

<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:** [March 7, 2023, 7:07am UTC](https://forums.ankiweb.net/t/export-notes-cards-with-built-in-tts-to-txt/27090/4 "2023-03-07T07:07:52Z")

</div>

Closed on March 7, 2023, 7:07am UTC

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