class Miniphonic::Production
Public Instance Methods
create_from_preset(preset)
click to toggle source
# File lib/miniphonic/production.rb, line 11 def create_from_preset(preset) self.preset = preset self.create self.get_attributes end
endpoint()
click to toggle source
# File lib/miniphonic/production.rb, line 7 def endpoint "production" end
start()
click to toggle source
# File lib/miniphonic/production.rb, line 30 def start command :start end
stop()
click to toggle source
# File lib/miniphonic/production.rb, line 34 def stop command :stop end
upload_audio(path)
click to toggle source
# File lib/miniphonic/production.rb, line 17 def upload_audio(path) command :upload, path_to_payload(path, :input_file) end
upload_audio_from_service(filename, service)
click to toggle source
If your file is on a service registered with Auphonic, use this to not have to upload by hand.
# File lib/miniphonic/production.rb, line 24 def upload_audio_from_service(filename, service) self.input_file = filename self.upload_service = service update end