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