# Converting audio web links to audio files

**URL:** <https://forums.ankiweb.net/t/converting-audio-web-links-to-audio-files/30226>\
**Category:** Help\
**Created:** [May 11, 2023, 1:13pm UTC](https://forums.ankiweb.net/t/converting-audio-web-links-to-audio-files/30226 "2023-05-11T13:13:37Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![PDogg95](https://avatars.discourse-cdn.com/v4/letter/p/d07c76/32.png) [@PDogg95](https://forums.ankiweb.net/u/PDogg95)\
**Post date:** [May 11, 2023, 1:13pm UTC](https://forums.ankiweb.net/t/converting-audio-web-links-to-audio-files/30226/1 "2023-05-11T13:13:38Z")

</div>

I currently have inserted audio files into my cards via a web link…  
I import my cards into anki via an excel csv (the audio web link is in the rightmost column)

 ![1](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/7/7b4e963ee538faf1c4b3cb7ce7e06b9e44954793.jpeg)  
and then I have formatted them to be a clickable link as such:  
 ![2](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/2/228bc7eea194c54ed129eb221c69ef3b89dee361.jpeg)  
However, would there be a way to convert this url link into just straight audio, which plays as soon as the other side of the card is flipped ? (I downloaded another pre made deck that does this). Ideally without having to recreate / copy paste one by one etc.  
thanks

---

<div class="post-metadata">

**Author:** ![kelciour](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/kelciour/32/14770_2.png) [@kelciour](https://forums.ankiweb.net/u/kelciour)\
**Post date:** [May 13, 2023, 6:30pm UTC](https://forums.ankiweb.net/t/converting-audio-web-links-to-audio-files/30226/2 "2023-05-13T18:30:08Z")

</div>

Maybe something like this:

1. Download audio files using curl, wget, aria2, etc.
2. Move audio files to the collection.media folder
3. Use Find and Replace to convert urls to [sound:audio.mp3]
4. Run Tools \> Check Media

* * *

1. Download audio files

2. Move audio files to the collection.media folder

3. Use Find and Replace to convert mp3 urls to [sound:audio.mp3]

4. Run Tools \> Check Media

---

<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:** [May 15, 2023, 5:41am UTC](https://forums.ankiweb.net/t/converting-audio-web-links-to-audio-files/30226/3 "2023-05-15T05:41:36Z")

</div>

Another option is to have [sound:http://…] on your cards, then use something like [Localize Media - AnkiWeb](https://ankiweb.net/shared/info/1293255374)

---

<div class="post-metadata">

**Author:** ![PDogg95](https://avatars.discourse-cdn.com/v4/letter/p/d07c76/32.png) [@PDogg95](https://forums.ankiweb.net/u/PDogg95)\
**Post date:** [May 15, 2023, 1:08pm UTC](https://forums.ankiweb.net/t/converting-audio-web-links-to-audio-files/30226/5 "2023-05-15T13:08:53Z")

</div>

Thank you man this is an awesome solution - however only now it doesn’t play automatically when opening up if I use ankiweb or ankidroid (since the files are local files I guess)

---

<div class="post-metadata">

**Author:** ![kelciour](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/kelciour/32/14770_2.png) [@kelciour](https://forums.ankiweb.net/u/kelciour)\
**Post date:** [May 15, 2023, 4:06pm UTC](https://forums.ankiweb.net/t/converting-audio-web-links-to-audio-files/30226/6 "2023-05-15T16:06:15Z")

</div>

Thank you, but I forgot about the Localize Media add-on, the add-on will also take care of possible duplicates with the same filename and should be more easy to use.

About AnkiWeb, I think it’s not possible due to the browser’s autoplay blocking policy.

> [@AnkiWeb not autoplaying audio](https://forums.ankiweb.net/t/ankiweb-not-autoplaying-audio/9617/2):
>
> AnkiWeb doesn’t support automatic playing of audio at this time, in part because it’s not possible with mobile browsers.

About AnkiDroid, it should behave the same way as the desktop version, check the deck’s options - it’s accessible from the context menu (with a long tap) or from the overview screen.

[https://docs.ankidroid.org/#deckOverview](https://docs.ankidroid.org/#deckOverview)

> By default, Anki automatically plays audio on the front and back of cards. If you check “Don’t play audio automatically”, Anki will not play audio …

[https://docs.ankiweb.net/deck-options.html#audio](https://docs.ankiweb.net/deck-options.html#audio)

Maybe also install the latest AnkiDroid version from GitHub (if you’re on 2.15.6 from Google Play that was last updated on Jul 14, 2021).

[https://github.com/ankidroid/Anki-Android/releases](https://github.com/ankidroid/Anki-Android/releases)

---

<div class="post-metadata">

**Author:** ![PDogg95](https://avatars.discourse-cdn.com/v4/letter/p/d07c76/32.png) [@PDogg95](https://forums.ankiweb.net/u/PDogg95)\
**Post date:** [May 16, 2023, 4:38am UTC](https://forums.ankiweb.net/t/converting-audio-web-links-to-audio-files/30226/7 "2023-05-16T04:38:44Z")

</div>

Thanks,  
I think I’ve got it working now…I added another template field for the sound file, as well as keeping that URL link for ankiweb for when I use that.  
Thank you for all your help on this .

---

<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:** [June 15, 2023, 4:38am UTC](https://forums.ankiweb.net/t/converting-audio-web-links-to-audio-files/30226/8 "2023-06-15T04:38:48Z")

</div>

Closed on June 15, 2023, 4:38am UTC

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