Class: SavvyOpenrouter::Resources::Audio

Inherits:
Base
  • Object
show all
Defined in:
lib/savvy_openrouter/resources/audio.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from SavvyOpenrouter::Resources::Base

Instance Method Details

#speech(**params) ⇒ Object



8
9
10
11
# File 'lib/savvy_openrouter/resources/audio.rb', line 8

def speech(**params)
  body = config.merge_chat_body(params)
  conn.post_raw("/audio/speech", body: body)
end

#transcribe(**params) ⇒ Object



13
14
15
16
# File 'lib/savvy_openrouter/resources/audio.rb', line 13

def transcribe(**params)
  body = config.merge_chat_body(params)
  conn.post("/audio/transcriptions", body: body)
end