Skip to content

OneByJorah/VoiceCortex

Repository files navigation

VoiceCortex banner

VoiceCortex

Self-hosted phone AI assistant

License Language


VoiceCortex preview



Features

  • Phone Integration —接听电话并进行语音对话.
  • STT Pipeline — Speech-to-text with faster-whisper.
  • LLM Processing — AI-powered conversation with local/cloud LLMs.
  • TTS Output — Natural speech synthesis with Piper.
  • Real-Time — Low-latency WebSocket streaming.
  • Call Logging — Record and transcribe all calls.
  • Multi-Provider — Twilio, Asterisk, and SIP support.
  • Docker Ready — Easy deployment with Docker.

Quick Start

git clone https://github.com/OneByJorah/VoiceCortex.git
cd VoiceCortex

cp .env.example .env
docker compose up -d

Local Development

pip install -r requirements.txt
python3 voicecortex.py

Configuration

Variable Default Description
STT_PROVIDER faster-whisper Speech-to-text provider
STT_MODEL base STT model size
LLM_PROVIDER ollama LLM provider
LLM_MODEL llama2 LLM model name
TTS_PROVIDER piper Text-to-speech provider
TTS_VOICE en_US-lessac TTS voice
TWILIO_SID Twilio account SID
TWILIO_TOKEN Twilio auth token
PORT 8080 API port

Architecture

Phone Call ──▶ VoiceCortex ──▶ STT ──▶ LLM ──▶ TTS ──▶ Phone Response
                    │
                    ├──▶ faster-whisper
                    ├──▶ Ollama/OpenAI
                    ├──▶ Piper
                    └──▶ Call Logger

Project Structure

VoiceCortex/
├── voicecortex.py          # Main entry point
├── pipeline/
│   ├── __init__.py
│   ├── stt.py              # Speech-to-text
│   ├── llm.py              # Language model
│   ├── tts.py              # Text-to-speech
│   └── phone.py            # Phone integration
├── providers/
│   ├── twilio.py           # Twilio integration
│   ├── asterisk.py         # Asterisk integration
│   └── sip.py              # SIP protocol
├── docker-compose.yml      # Docker deployment
├── requirements.txt        # Python dependencies
└── README.md

Contributing

Contributions are welcome. Please see CONTRIBUTING.md for guidelines and CODE_OF_CONDUCT.md for community standards.

Security

For security concerns, see SECURITY.md. Please report vulnerabilities to info@jorahone.com — do not use public issues.

License

MIT © Jhonattan L. Jimenez


🤝 Contributing

See CONTRIBUTING.md. All contributions follow the Code of Conduct.

🔒 Security

Found a vulnerability? Please follow our Security Policy and report privately to security@jorahone.com.

📄 License

MIT License © Jhonattan L. Jimenez (OneByJorah)


Built with 🌴 by OneByJorah · jorahone.com

About

Self-hosted phone AI assistant — real-time voice conversations over telephone via STT > LLM > TTS pipeline.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages