Saltar al contenido principal

Variable: SpeechEventSchema

const SpeechEventSchema: TUnion<[TObject<{ requestId: TString; type: TLiteral<"start">; }>, TObject<{ dataBase64: TString; mime: TString; type: TLiteral<"audio">; }>, TObject<{ bytes: TInteger; mime: TString; type: TLiteral<"done">; }>, TObject<{ code: TString; message: TString; type: TLiteral<"error">; }>]>

Defined in: packages/contracts/src/provider.ts:486

Unified TTS streaming events: startaudio* → done | error.