Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

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
You can’t perform that action at this time.