Class: GroqRuby::Resources::Audio

Inherits:
Object
  • Object
show all
Defined in:
lib/groq_ruby/resources/audio.rb,
lib/groq_ruby/resources/audio/speech.rb,
lib/groq_ruby/resources/audio/translations.rb,
lib/groq_ruby/resources/audio/transcriptions.rb

Overview

Namespace for the three audio sub-resources: speech, transcriptions, and translations.

Defined Under Namespace

Classes: Speech, Transcriptions, Translations

Instance Method Summary collapse

Constructor Details

#initialize(transport) ⇒ Audio

Returns a new instance of Audio.



6
7
8
# File 'lib/groq_ruby/resources/audio.rb', line 6

def initialize(transport)
  @transport = transport
end

Instance Method Details

#speechAudio::Speech

Returns:



11
12
13
# File 'lib/groq_ruby/resources/audio.rb', line 11

def speech
  @speech ||= Audio::Speech.new(@transport)
end

#transcriptionsAudio::Transcriptions



16
17
18
# File 'lib/groq_ruby/resources/audio.rb', line 16

def transcriptions
  @transcriptions ||= Audio::Transcriptions.new(@transport)
end

#translationsAudio::Translations

Returns:



21
22
23
# File 'lib/groq_ruby/resources/audio.rb', line 21

def translations
  @translations ||= Audio::Translations.new(@transport)
end