class RubyLLM::SpeechChunk
A piece of generated audio, yielded by RubyLLM.speak as it arrives. Chunks are consecutive bytes of one recording, not separate audio files.
Attributes
The raw audio bytes in this chunk.
The audio format name, such as "mp3" or "pcm".
The MIME type of the audio, such as "audio/mpeg".
Public Instance Methods
Source
# File lib/ruby_llm/speech_chunk.rb, line 25 def to_blob data end
Returns the raw audio bytes. Alias for data.