struct

Arcana::AI::TTS::Result

Inherits Struct < Value < Object

Constructors

new(output_path : String, model : String = "", provider : String = "", raw_request : String = "", status_code : Int32 = 0, content_type : String = "", content_length : Int64 = 0, audio : Bytes = Bytes.empty, usage : Usage | Nil = nil)
Source

Instance methods

audio
Source
audio=(audio : Bytes)
Source
content_length
Source
content_length=(content_length : Int64)
Source
content_type
Source
content_type=(content_type : String)
Source
cost(at : Time = Time.utc, table : Pricing::Table = Pricing::Table.default) : Pricing::Cost | Pricing::Unpriced

What this call cost; see Pricing. at is when it was made.

Source
model
Source
model=(model : String)
Source
output_path
Source
output_path=(output_path : String)
Source
provider
Source
provider=(provider : String)
Source
raw_request
Source
raw_request=(raw_request : String)
Source
status_code
Source
status_code=(status_code : Int32)
Source
usage

What the call used, when the provider reports it (OpenAI's gpt-4o-mini-tts); nil when it didn't. cost prices it.

Source
usage=(usage : Usage | Nil)

What the call used, when the provider reports it (OpenAI's gpt-4o-mini-tts); nil when it didn't. cost prices it.

Source