Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
add xspace-agent/xspace-agent/packages/server/src/schemas/voices.ts
oversteppinge381822565de
diff --git a/xspace-agent/xspace-agent/packages/server/src/schemas/voices.ts b/xspace-agent/xspace-agent/packages/server/src/schemas/voices.tsnew file mode 100644index 000000000..c1160b34e--- /dev/null+++ b/xspace-agent/xspace-agent/packages/server/src/schemas/voices.ts@@ -0,0 +1,63 @@+// SPDX-License-Identifier: Apache-2.0+// Copyright 2026 nirholas (https://github.com/nirholas/xspace-agent) [§84]++// =============================================================================+// Voice Cloning Zod schemas+// =============================================================================++import { z } from 'zod'++/** Schema for voice cloning via audio sample upload. */+export const CloneVoiceBodySchema = z.object({+ name: z.string().min(1, 'Voice name is required').max(100),+ consent: z.object({+ consentType: z.enum(['self', 'authorized', 'synthetic']),+ consentDocument: z.string().optional(),+ agreedToTerms: z.literal(true, {+ errorMap: () => ({ message: 'You must agree to the terms of service' }),+ }),+ }),+})++/** Schema for designing a voice from a text description. */+export const DesignVoiceBodySchema = z.object({+ description: z.string().min(10, 'Description must be at least 10 characters').max(500),+ gender: z.enum(['male', 'female', 'neutral']),+ age: z.enum(['young', 'middle', 'senior']),+ accent: z.string().max(50).optional(),+ style: z.enum(['conversational', 'professional', 'energetic', 'calm', 'authoritative']),+})++/** Schema for updating a voice. */+export const UpdateVoiceBodySchema = z.object({+ name: z.string().min(1).max(100).optional(),+ description: z.string().max(500).optional(),+ settings: z.object({+ stability: z.number().min(0).max(1).optional(),+ similarityBoost: z.number().min(0).max(1).optional(),+ style: z.number().min(0).max(1).optional(),+ speed: z.number().min(0.5).max(2.0).optional(),+ }).optional(),+})++/** Schema for voice preview request. */+export const PreviewVoiceBodySchema = z.object({+ text: z.string().min(1, 'Preview text is required').max(1000),+})++/** Schema for assigning a voice to an agent. */+export const AssignVoiceParamsSchema = z.object({+ id: z.string().min(1, 'Voice ID is required'),+ agentId: z.string().min(1, 'Agent ID is required'),+})++/** Schema for publishing to marketplace. */+export const PublishVoiceBodySchema = z.object({+ title: z.string().min(1).max(200),+ description: z.string().min(10).max(2000),+ tags: z.array(z.string().max(50)).max(10),+ pricePerMonth: z.number().min(0).max(10000),+ previewText: z.string().min(1).max(500),+})++