Sha256: fcea33ca181637aaae5f18726067b09908c6cb315a5a62ff13adc62f7e589ec2

Contents?: true

Size: 744 Bytes

Versions: 1

Compression:

Stored size: 744 Bytes

Contents

require 'dotenv'
Dotenv.load '.env-fixer_client'

require 'fixer_client'
Fixer.reset!

Fixer.configure do |c|
  c.client_id = ENV['FIXER_CLIENT_ID']
  c.client_secret = ENV['FIXER_CLIENT_SECRET']
  c.endpoint = 'http://fixer.prx.dev/api/'
end

client = Fixer::Client.new

job = {
  job: {
    original: 's3://test-fixer/audio.wav',
    job_type: 'audio',
    tasks: [
      sequence: {
        tasks: [
          {
            task_type: 'cut',
            options: { length: 30, fade: 0 }
          },
          {
            task_type: 'transcode',
            options: { format: 'mp3', bit_rate: 64, sample_rate: 44100 },
            result: 's3://test-fixer/audio.mp3'
          }
        ]
      }
    ]
  }
}

j = client.jobs.create(job)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fixer_client-0.1.0 examples/sequence.rb