
Voice Chat AI allows you to interact with AI characters using speech. Choose between various characters, each with unique personalities and voices. Run locally with Ollama, or use cloud providers like OpenAI, Anthropic, or xAI.
Mix and match: Use ElevenLabs voices with Ollama models, OpenAI TTS with Anthropic chat, or run completely locally with Spark-TTS voice cloning.
WebRTC Real-Time: Experience instant conversations with OpenAI's Realtime API - interrupt the AI and get immediate responses.
Full Documentation: https://github.com/bigsk1/voice-chat-ai
Windows with WSL2:
bashdocker run -d \ -e "PULSE_SERVER=/mnt/wslg/PulseServer" \ -v \\wsl$\Ubuntu\mnt\wslg:/mnt/wslg/ \ -v ./elevenlabs_voices.json:/app/elevenlabs_voices.json \ --env-file .env \ --name voice-chat-ai \ -p 8000:8000 \ bigsk1/voice-chat-ai:latest
Linux/WSL2 Ubuntu:
bashdocker run -d \ -e "PULSE_SERVER=/mnt/wslg/PulseServer" \ -v /mnt/wslg/:/mnt/wslg/ \ -v ./elevenlabs_voices.json:/app/elevenlabs_voices.json \ --env-file .env \ --name voice-chat-ai \ -p 8000:8000 \ bigsk1/voice-chat-ai:latest
Native Linux (PulseAudio):
bashdocker run -d \ -e PULSE_SERVER=unix:/tmp/pulse/native \ -v ~/.config/pulse/cookie:/root/.config/pulse/cookie:ro \ -v /run/user/$(id -u)/pulse:/tmp/pulse:ro \ -v ./elevenlabs_voices.json:/app/elevenlabs_voices.json \ --env-file .env \ --name voice-chat-ai \ -p 8000:8000 \ bigsk1/voice-chat-ai:latest
Requirements: NVIDIA GPU, nvidia-container-toolkit, CUDA drivers
Windows with WSL2:
bashdocker run -d --gpus all \ -e "PULSE_SERVER=/mnt/wslg/PulseServer" \ -v \\wsl$\Ubuntu\mnt\wslg:/mnt/wslg/ \ -v ./elevenlabs_voices.json:/app/elevenlabs_voices.json \ --env-file .env \ --name voice-chat-ai-cuda \ -p 8000:8000 \ bigsk1/voice-chat-ai:cuda
Linux/WSL2 Ubuntu:
bashdocker run -d --gpus all \ -e "PULSE_SERVER=/mnt/wslg/PulseServer" \ -v /mnt/wslg/:/mnt/wslg/ \ -v ./elevenlabs_voices.json:/app/elevenlabs_voices.json \ --env-file .env \ --name voice-chat-ai-cuda \ -p 8000:8000 \ bigsk1/voice-chat-ai:cuda
CPU:
yamlservices: voice-chat-ai: image: bigsk1/voice-chat-ai:latest container_name: voice-chat-ai ports: - "8000:8000" env_file: - .env environment: - PULSE_SERVER=/mnt/wslg/PulseServer volumes: - /mnt/wslg/:/mnt/wslg/ - ./elevenlabs_voices.json:/app/elevenlabs_voices.json restart: unless-stopped
CUDA:
yamlservices: voice-chat-ai-cuda: image: bigsk1/voice-chat-ai:cuda container_name: voice-chat-ai-cuda deploy: resources: reservations: devices: - driver: nvidia count: all capabilities: [gpu] ports: - "8000:8000" env_file: - .env environment: - PULSE_SERVER=/mnt/wslg/PulseServer volumes: - /mnt/wslg/:/mnt/wslg/ - ./elevenlabs_voices.json:/app/elevenlabs_voices.json restart: unless-stopped
Create a .env file with your settings:
env# LLM Provider (ollama, openai, anthropic, xai) MODEL_PROVIDER=ollama OLLAMA_MODEL=llama3:latest OLLAMA_BASE_URL=http://localhost:11434 # OpenAI (optional) OPENAI_API_KEY=sk-... OPENAI_MODEL=gpt-4o-mini # Anthropic (optional) ANTHROPIC_API_KEY=sk-ant-... ANTHROPIC_MODEL=claude-3-5-sonnet-20241022 # xAI (optional) XAI_API_KEY=xai-... XAI_MODEL=grok-2-latest # TTS Provider (sparktts, openai, elevenlabs, kokoro) TTS_PROVIDER=openai # ElevenLabs (optional) ELEVENLABS_API_KEY=... # Transcription (openai or local) TRANSCRIPTION_PROVIDER=openai FASTER_WHISPER_LOCAL=false # Default character CHARACTER_NAME=samantha
Access: http://localhost:8000
Experience immersive narrative adventures with AI characters. Each story has unique plot lines, choices, and outcomes.
Play interactive games with specialized game master characters:
For local zero-shot voice cloning inside the container:
bash# Enter container docker exec -it voice-chat-ai bash # Run setup script (GPU recommended) python setup_sparktts.py # Restart container exit docker restart voice-chat-ai
Set TTS_PROVIDER=sparktts in your .env file.
Model size: ~2GB download (Hugging Face)
latest - Latest stable release (CPU, Python 3.11-slim)cuda - CUDA 12.4 support for GPU accelerationv1.0.0 - Specific version tagsmain - Development branch (may be unstable)| Variable | Options | Default | Description |
|---|---|---|---|
MODEL_PROVIDER | ollama, openai, anthropic, xai | ollama | LLM provider |
TTS_PROVIDER | sparktts, openai, elevenlabs, kokoro | openai | Text-to-speech service |
TRANSCRIPTION_PROVIDER | openai, local | openai | Speech-to-text service |
CHARACTER_NAME | Any character folder name | samantha | Default character |
FASTER_WHISPER_LOCAL | true, false | false | Use local Whisper for transcription |
OLLAMA_BASE_URL | URL | http://localhost:11434 | Ollama API endpoint |
Full configuration guide: https://github.com/bigsk1/voice-chat-ai#configuration
For better performance and audio support, we recommend native installation over Docker:
bashgit clone https://github.com/bigsk1/voice-chat-ai.git cd voice-chat-ai python -m venv venv source venv/bin/activate # Windows: venv\Scripts\activate # Install PyTorch (choose CPU or CUDA) pip install torch torchaudio torchvision --index-url https://download.pytorch.org/whl/cpu # Install dependencies pip install -r requirements.txt
bashgit clone https://github.com/bigsk1/voice-chat-ai.git cd voice-chat-ai uv sync # Creates venv and installs everything
Start: uvicorn app.main:app --host 0.0.0.0 --port 8000
If microphone doesn't work in WSL2:
bash# In WSL2 sudo apt-get update sudo apt-get install pulseaudio pulseaudio --start
Verify GPU access in container:
bashdocker exec -it voice-chat-ai-cuda nvidia-smi
If Spark-TTS or Whisper models fail to download, check:
More troubleshooting: https://github.com/bigsk1/voice-chat-ai#troubleshooting
🚨 Breaking Changes:
✨ New Features:
pyproject.toml for modern dependency managementUpgrade Guide: https://github.com/bigsk1/voice-chat-ai/releases/tag/v1.0.0
Contributions welcome! Please read our contributing guidelines and submit pull requests.
Areas for contribution:
MIT License - See https://github.com/bigsk1/voice-chat-ai/blob/main/LICENSE
If you find this project useful, please ***:
Made with ❤️ by bigsk1
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。


探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
无需登录使用专属域名
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
Harbor Proxy Repository 对接专属域名
Portainer Registries 加速拉取
Nexus3 Docker Proxy 内网缓存
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
docker search 限制
站内搜不到镜像
离线 save/load
插件要用 plugin install
WSL 拉取慢
安全与 digest
新手拉取配置
镜像合规机制
manifest unknown
no matching manifest(架构)
invalid tar header(解压)
TLS 证书失败
DNS 超时
域名连通性排查
410 Gone 排查
402 与流量用尽
401 认证失败
429 限流
D-Bus 凭证提示
413 与超大单层
来自真实用户的反馈,见证轩辕镜像的优质服务