Interface: SpeechResult
Defined in: packages/aiui-claude-channel/src/speak.ts:26
One synthesized clip: the audio bytes plus how long, which model, and its MIME.
Properties
bytes
bytes:
Uint8Array
Defined in: packages/aiui-claude-channel/src/speak.ts:27
cost?
optionalcost?:CallCost
Defined in: packages/aiui-claude-channel/src/speak.ts:37
ESTIMATED cost: /v1/audio/speech returns raw audio with no usage object, so input tokens are guessed from text length and the audio output goes unpriced — a floor, marked estimated (absent for the mock).
latencyMs
latencyMs:
number
Defined in: packages/aiui-claude-channel/src/speak.ts:30
mime
mime:
string
Defined in: packages/aiui-claude-channel/src/speak.ts:29
Container MIME of bytes (e.g. audio/mp3) — the page player reads it.
model
model:
string
Defined in: packages/aiui-claude-channel/src/speak.ts:31