class RubyLLM::Speech

A Speech is audio generated from text. RubyLLM.speak returns one. It holds the raw audio bytes along with the model, voice, and format used.

speech = RubyLLM.speak "Hello, welcome to RubyLLM!"
speech.save "welcome.mp3"