lib/omniai/client.rb in omniai-1.1.2 vs lib/omniai/client.rb in omniai-1.1.4
- old
+ new
@@ -46,18 +46,18 @@
raise NotImplementedError, "#{self.class.name}#chat undefined"
end
# @raise [OmniAI::Error]
#
- # @param file [IO]
+ # @param io [String, Pathname, IO] required
# @param model [String]
# @param language [String, nil] optional
# @param prompt [String, nil] optional
# @param temperature [Float, nil] optional
# @param format [Symbol] :text, :srt, :vtt, or :json (default)
#
# @return text [OmniAI::Transcribe::Transcription]
- def transcribe(file, model:, language: nil, prompt: nil, temperature: nil, format: nil)
+ def transcribe(io, model:, language: nil, prompt: nil, temperature: nil, format: nil)
raise NotImplementedError, "#{self.class.name}#speak undefined"
end
end
end