.env file:.env.example file.LLM_ENGINE: The LLM engine to use. Options: open_router, google_gemini.LLM_MODEL: The LLM model to use.OPENROUTER_API_KEY: Your OpenRouter API key.GEMINI_API_KEY: Your Google Gemini API key.ASR_ENGINE: The ASR engine to use. Options: sherpa_onnx_asr, faster_whisper_asr.ASR_DEVICE: The device to use for ASR inference. Options: cpu, cuda.ASR_MODEL: The ASR model to use.ASR_COMPUTE_TYPE: The compute type for ASR. Options: int8, fp16, fp32.ASR_CPU_THREADS: The number of CPU threads for ASR.CHATTERBOX_TTS_BASE_URL: The base URL for the Chatterbox TTS service.CHATTERBOX_TTS_API_KEY: The API key for the Chatterbox TTS service.APP_ALLOWED_ORIGINS: The allowed origins for CORS.APP_DEBUG_SAVE_AUDIO: Save original and normalized audio for debugging.APP_ENABLE_AUDIO_PROCESSING: Enable audio processing.APP_NOISE_REDUCTION: Enable noise reduction.APP_LOUDNESS_NORMALIZATION: Enable loudness normalization..yaml files in the characters directory. Each character has a unique persona, Live2D model, and TTS engine.live2d-models directory..yaml file in the characters directory.name: The name of the character.llm_persona: The character's persona.live2d_model_name: The name of the character's Live2D model.tts_engine: The TTS engine to use for the character.model_dict.json file. Each model has a unique name, description, and URL.live2d-models directory.model_dict.json: Add a new entry to the model_dict.json file with the model's name, description, and URL.model_dict.json:name: The name of the model.description: A description of the model.url: The URL of the model's .model3.json file.kScale: The scale of the model.initialXshift: The initial X shift of the model.initialYshift: The initial Y shift of the model.kXOffset: The X offset of the model.idleMotionGroupName: The name of the idle motion group.emotionMap: A map of emotions to expression files.motionMap: A map of motions to motion files.tapMotions: A map of tap motions to motion files.frontend/src/examples directory.AIAvatar Componentfrontend/src/components/AIAvatar directory to your React application's src/components directory.AIAvatarProvider and AIAvatarCanvasAIAvatarProvider and use the AIAvatarCanvas to render the avatar.useAIAvatar HookuseAIAvatar hook to interact with the AI avatar.Posted Aug 26, 2025
Developed a real-time AI avatar using FastAPI and React.
0
10