UPDATE: The Qube now has an option to select which audio service to use, outdating the following content unless you are using older source code.
Since a few people have asked me about this, here is how to integrate TwUp into The Qube, the popular non-GUI Twitter client for blind users. Because I am not a user of The Qube myself I do not guarantee that this guide will remain up-to-date, nor do I claim that it is quick and easy to follow. I am not hating on SndUp, although I obviously stay with TwUp because I created it. But really, I don’t know why you’d want to change audio services. Still, people asked me, so in case you know something I don’t, here’s how to it.
For those looking to integrate TwUp into other applications, look here for the terse, generic API documentation. Or, in the spirit of Web 2.0 and cloud buzz, be cool and use the web uploader, which has a progress bar and speed / ETA indicators.
Right, let’s cut to the chase:
- Install Python 2.7.
- Get the source code for The Qube (i.e. the zip-file for the master branch).
- Extract the source code archive if you grabbed one.
- Located the file “src\core\gui\new_message.py” and open it in a text-editor.
- Search for “sndup.net” to locate the SndUp API URL.
- Keeping the original single-quotes in tact, replace ‘http://sndup.net/post.php’ with ‘http://api.twup.me/post.json’.
- If you are that kind of person, locate and edit the text “Unable to upload audio file to SndUp.” to reflect your recent change.
- Don’t mind the lines about an API key.
- Safe the file. Yay for short steps.
- Install everything from the “dependencies” folder, then launch “src\main.pyw”.
- Enjoy your newly gained ability to upload to TwUp, or comment below in case it didn’t work for you.
- Optionally use py2exe (bundled with The Qube) to cook your own executable.
Once again, you’ll probably want to have a look at the web uploader instead, unless you want to stick to The Qube or other Qwitter-clones for some reason. But be aware that TwUp has a public RSS feed, so using this service to have a convenient system for direct / private audio messages probably isn’t a good idea.