Skip to content

Variable: VoiceSubjects

Makaio Framework


Makaio Framework / contracts / VoiceSubjects

const VoiceSubjects: BusSubjects<FlatSubjectDefinitions<"voice", { session.start: { request: ZodObject<{ sessionId: ZodString; }, $strip>; response: ZodDiscriminatedUnion<[ZodObject<{ audioTransport: ZodLiteral<"none">; strategy: ZodObject<{ stt: ZodObject<…, …>; tts: ZodObject<…, …>; }, $strip>; }, $strip>, ZodObject<{ audioTransport: ZodLiteral<"ws">; audioWsUrl: ZodString; bindToken: ZodString; strategy: ZodObject<{ stt: ZodObject<…, …>; tts: ZodObject<…, …>; }, $strip>; }, $strip>], "audioTransport">; }; session.stop: { request: ZodObject<{ sessionId: ZodString; }, $strip>; response: ZodObject<{ }, $strip>; }; status: ZodObject<{ sessionId: ZodString; state: ZodEnum<{ error: "error"; idle: "idle"; recording: "recording"; synthesizing: "synthesizing"; transcribing: "transcribing"; }>; }, $strip>; synthesis.end: ZodObject<{ messageId: ZodOptional<ZodString>; sessionId: ZodString; }, $strip>; synthesis.start: ZodObject<{ messageId: ZodOptional<ZodString>; sessionId: ZodString; }, $strip>; transcription: ZodObject<{ confidence: ZodOptional<ZodNumber>; language: ZodString; messageId: ZodOptional<ZodString>; sessionId: ZodString; text: ZodString; }, $strip>; }>, "voice"> = VoiceNamespace.subjects

Defined in: ../../../packages/contracts/src/capabilities/voice/namespace.ts:17

Typed subject tree for the voice namespace.

Use this for all emit/request/on calls instead of raw string subjects.