Randomly last night I was thinking about if anyone was still trying to create any new social networks (I had a go once, in case you didn’t know) and decided it was probably pointless.
Then today I read about something called ‘Vero‘ that apparently has 3m users (up from less than 150k three weeks ago – hmmm) and like others before them, hold up some ‘manifesto’ as to how they’re going to process and protect you and all your info etc. etc. ‘You’re the customer not the product’, etc. etc. Hmmm.
As long as they never, EVER **EVER** take venture capital and survive on a subscription model, it might work. Because otherwise, investors will push and push for ‘growth’ and ‘returns’ and suck the life out of everything. As they always do. (Update: I see the founder is a 39 year-old billionaire. So, no potentially dodgy and ruthless contacts there then? Ahem. Sorry, but people that rich have some extremely unscrupulous ‘friends’ around them.)
Also, I just had a look at their ‘team’ page. A page full of men from the top to the bottom. Apart from the very bottom that is, where the only female member of the team runs ‘customer service’.
Nope. They’re doomed.
After seeing (then hearing) a public Facebook post by Documentally just earlier regarding some (inevitable) changes that AudioBoom (previously known as ‘audioboo’) are enforcing on their loyal users (ie: “pay up”), I thought I’d try something I haven’t tried for years, which is to upload an mp3 file to Archive.org.
Turns out it was very easy.
curl --location --header 'x-amz-auto-make-bucket:1' \ --header 'x-archive-meta01-collection:test_collection' \ --header 'x-archive-meta-mediatype:audio' \ --header 'x-archive-meta-title:The Wilhelm Scream' \ --header "authorization: LOW ##my-access-key-##:##my-secret-key-##" \ --upload-file wilhelm.mp3 \ http://s3.us.archive.org/kosso-tests-things/wilhelm-scream.mp3
Which now gives us:
The ‘Item’ (aka bucket) is called kosso-tests-things. That was created because I specified x-amz-auto-make-bucket:1 and defined it in the actual url location at the end as the folder name. I also changed the filename by using a different name in the url location.
If I wanted to upload another File to that ‘item’, I would just use:
curl --location --header 'x-archive-meta01-collection:test_collection' \ --header 'x-archive-meta-mediatype:audio' \ --header 'x-archive-meta-title:Another Audio File Test' \ --header "authorization: LOW ##my-access-key-##:##my-secret-key-##" \ --upload-file letsgo.mp3 \ http://s3.us.archive.org/kosso-tests-things/letsgo-test.mp3
The two audio files can now also be viewed and played on their page on archive.org here:
You can get an XML file which lists all the files in this ‘Item’ using:
A JSON format is provided here : (note ‘metadata’, not ‘details’ like the web url)
It would be pretty easy for anyone to script a way to grab all your AudioBoom files and dump them in (what’s called) an ‘Item’ on archive.org. (Amazon S3 calls Items ‘buckets’)
According to their docs, ‘Items’ should not be over 100Gb. And should not contain over 10,000 files. So i think one would do! 😉 You should also be able script the attachment of the original metadata (locations, etc. even comments and text.).
Their system auto automatically creates audio waveforms for players and ogg audio ‘derivative’ conversions. http://s3.us.archive.org/kosso-tests-things/wilhelm-scream.ogg and http://s3.us.archive.org/kosso-tests-things/wilhelm-scream.png
All the script would need is the links to your AudioBoom files (and their metadata) and also you’d need to have an account on Archive org and get your special API ‘keys’. (via: http://archive.org/account/s3.php if logged in)
eg: Here’s a url with a JSON list of my audio uploads to AudioBoo(m) : https://api.audioboom.com/audio_clips?username=kosso
Also no reason why that script shouldn’t also generate an RSS feed of the files (or last however many) and overwrite it each time a new file was added to the ‘Item’.
Archive.org also has a Python library which will also make life incredibly easy to script all this up, if snakes are your thing.
More docs for the “Internet Archive’s S3-like server API, aka ‘IAS3.'” here : https://github.com/vmbrasseur/IAS3API
NOTE: The files mentioned in these examples will be deleted after 30 days or so, since they are in the ‘test_collection’ Collection.
You can see how far I got here, which will list any Audioboom user’s last 20 posts and allow you to play them. But that’s as far as I can get.
Or, they could add these settings to their CloudFront CORS setup: (I think!)
<?xml version="1.0" encoding="UTF-8"?> <CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> <CORSRule> <AllowedOrigin>http://*</AllowedOrigin> <AllowedOrigin>https://*</AllowedOrigin> <AllowedMethod>GET</AllowedMethod> <MaxAgeSeconds>3000</MaxAgeSeconds> <AllowedHeader>*</AllowedHeader> </CORSRule> </CORSConfiguration>
Python is definitely the way to go.
Here’s a Python script I’ve just knocked up which will (to start with) download all your Audiobooms, including all the metadata (recorded date, original upload date, location, etc.) and photo and waveform images if they exist.
It shouldn’t take too much to set it to upload to Archive.org now, with all the data and photos too. I would upload to the
opensource_audio collection. Set the item name to something like
username-audioboos and be sure to initialise the Item metadata before kicking off the uploads.
For some reason I found that the Archive.org API lets you set any custom metadata to an ‘Item’. But not to each of the arbitrary files within in the Item. So the script makes a copy of the original JSON from Audioboom and uploads that for each recording.
As long as the initial Item is set up with the
mediatype:audio metadata, the main Archive.org page should show the audio files in their web player once uploaded. (I think). The photos and JSON files will be there, but you won’t see them on the Item page or player.
So, once all the files are there, Archive.org’s handy JSON or XML list files could then be used by any other application someone might want to build to read and then offer a player or do what they like with. And it’s just a matter of reading the JSON file with it (with the same filename) to parse out all the data from when it was originally uploaded to Audioboom.
ps: I think the massive bonus of Archive.org is that they also create an automatic Torrent file to download all or any of the files in the ‘Item’. Neat.
Something made from this, which I’ve put together over the past few days, will probably make it into the mojomeja plugin for the app I’m building at some stage.
and then later…
I’m actually really, really chuffed with this work. It’s been one of the ‘holy grails’ for me in web development. Doing all this in the browser is stunning, compared to the way I used to have to do this sort of thing. (eg: Using Flash!)
Have a go on a demo on a domain I bought many years ago, for this very purpose :
The news web designer who started the trend of auto-playing video which follows you down the screen needs to be stabbed with a mouse pointer
— Kosso 🌀 (@kosso) July 20, 2017