Sha256: 48bea03ae5a4ee6a92d390b34bd49352c14e0e42c9948b53eac555bb089f8fcd

Contents?: true

Size: 461 Bytes

Versions: 16

Compression:

Stored size: 461 Bytes

Contents

module OpenAI
  class Audio
    def initialize(client:)
      @client = client
    end

    def transcribe(parameters: {})
      @client.multipart_post(path: "/audio/transcriptions", parameters: parameters)
    end

    def translate(parameters: {})
      @client.multipart_post(path: "/audio/translations", parameters: parameters)
    end

    def speech(parameters: {})
      @client.json_post(path: "/audio/speech", parameters: parameters)
    end
  end
end

Version data entries

16 entries across 16 versions & 3 rubygems

Version Path
es_cli-0.1.0 vendor/bundle/ruby/3.1.0/gems/ruby-openai-7.3.1/lib/openai/audio.rb
ruby-openai-7.3.1 lib/openai/audio.rb
ruby-openai-7.3.0 lib/openai/audio.rb
ruby-openai-7.2.0 lib/openai/audio.rb
ruby-openai-7.1.0 lib/openai/audio.rb
ruby-openai-7.0.1 lib/openai/audio.rb
ruby-openai-7.0.0 lib/openai/audio.rb
ruby-openai-transitory-v2-6.5.3 lib/openai/audio.rb
ruby-openai-transitory-v2-6.5.2 lib/openai/audio.rb
ruby-openai-transitory-v2-6.5.1 lib/openai/audio.rb
ruby-openai-transitory-v2-6.5.0 lib/openai/audio.rb
ruby-openai-6.5.0 lib/openai/audio.rb
ruby-openai-6.4.0 lib/openai/audio.rb
ruby-openai-6.3.1 lib/openai/audio.rb
ruby-openai-6.3.0 lib/openai/audio.rb
ruby-openai-6.2.0 lib/openai/audio.rb