Getting formatted media URL

What I’m trying to do:

I am trying to send a media URL to nlpcloud service for speech recognition. I can get the URL from the the browser media like this:

blob:https://2togjdkmkazicxv7.anvil.app/0357e005-f0ab-428a-9414-f086234e50ab

but I need it like this:

in actual .mp3 or .wav file

What I’ve tried and what’s not working:

I have tried saving it to a table and getting the url using the anvil.media API but still i get a blob url

Code Sample:

# this is a formatted code snippet.
# paste your code between ``` 

Clone link:
share a copy of your app

You might search on the forum for playing audio. There are working examples available.

actually that was a mistake i need the formatted audio like this: “https://ia801405.us.archive.org/17/items/children_at_play_2210.poem_librivox/childrenatplay_davies_ah_64kb.mp3”, not a player.

Ah, got it. You need a media URL that is not limited to the browser session. That’s something you have to build yourself using HTTP endpoints. For example: Anvil Media URL - not permanent

1 Like