Skip to content

Instantly share code, notes, and snippets.

@christiangenco
Last active February 20, 2017 11:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christiangenco/054c680eceb09bc71f227c655cb68c98 to your computer and use it in GitHub Desktop.
Save christiangenco/054c680eceb09bc71f227c655cb68c98 to your computer and use it in GitHub Desktop.
Export all recordings from TapeACall
require 'json'
require 'time'
recordings = JSON.parse(ARGF.read)
recordings.each{|recording|
timestamp = Time.at(recording["created"].to_i).strftime("%Y-%m-%d %H.%M.%S")
destination = File.expand_path("#{timestamp}.mp3")
cmd = "curl \"#{recording["url"]}\" > \"#{destination}\""
puts cmd
next if File.exists?(destination)
`#{cmd}`
}

Export all recordings from TapeACall

First, extract the file stored in the TapeACall app at Library/Recordings/recordings.json (I used iFunBox on a jailbroken iPhone)

The file will look like this:

[
  {
    "has_transcription" : false,
    "is_unplayed" : false,
    "transcription_processing" : true,
    "id" : "XXXXXXXXXXXXXXXXXXXXXXXXXXX",
    "is_processing" : false,
    "is_preview" : false,
    "created" : "1456956769",
    "duration" : "116",
    "label" : "",
    "share_url" : "http:\/\/tapeacall.com\/XXXXXXXXXXX",
    "url" : "http:\/\/recordings.telapi.com\/XXXXXXXXXXXXXXXXXXXXXXXXXXX\/XXXXXXXXXXXXXXXXXXXXXXXXXXX.mp3"
  }
]

Then run ruby download_tapeacall.rb /path/to/recordings.json in the directory you would like your recordings stored.

@maximveksler
Copy link

maximveksler commented Feb 20, 2017

what can be done for non jail broken iPhone?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment