ONNX Model Zoo

anuragsingh922/VocRT

By anuragsingh922 · ↓ 13 · ♥ 5 · Updated 2025-06-03

What's in this repo

This page lists the files in anuragsingh922/VocRT, including kokoro-v0_19.onnx.

  • 1 ONNX models (.onnx files)
  • 183 files, including 63 .tsx, 24 .py, 16 .js, 16 .ts, 11 .pt, 10 .json
  • Last updated 2025-06-03

ONNX files

File Size Download
kokoro-v0_19.onnx — Download

How to use

These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.

README

VocRT - Personal Realtime Voice-to-Voice AI Solution

License: MIT Python 3.10

https://vocrt.vercel.app

VocRT is a comprehensive, privacy-first Realtime Voice-to-Voice (V2V) solution that enables natural conversations with AI. Built with cutting-edge TTS models, RAG capabilities, and seamless integration, VocRT processes your voice input and responds with high-quality synthesized speech in real-time.

🚀 Key Features

Real-time Voice Processing

  • Ultra-low latency voice-to-voice conversion
  • High-quality speech synthesis using Kokoro-82M model
  • Customizable voice selection with multiple voice options
  • Adjustable threshold and silence duration for optimal user experience

Advanced RAG Capabilities

  • Multi-format document support: PDF, CSV, TXT, PPT, PPTX, DOC, DOCX, XLS, XLSX
  • URL content extraction: Process web pages, Medium blogs, and online PDFs
  • Unlimited document uploads without usage limits or billing concerns
  • 100% privacy-first approach with local processing

Privacy & Cost Benefits

  • No API usage limits or recurring charges
  • Complete data privacy - all processing happens locally
  • Offline capability use local LLM model if resources allow
  • No data sharing with external AI services

🏗️ Architecture Overview

┌─────────────────┐    ┌─────────────────┐    ┌─────────────────┐
│   React Client  │◄──►│  Express Server │◄──►│  VocRT Engine   │
│   (Frontend)    │    │   (Backend)     │    │   (Python)      │
└─────────────────┘    └─────────────────┘    └─────────────────┘
                                                        |
                                                        |
                                 _______________________|
                                │                       │
                                ▼                       ▼
                       ┌──────────────────┐    ┌─────────────────┐
                       │    Embeddings    │    │   Whisper STT   │
                       │   (e5-base-v2)   │    │   Kokoro TTS    │
                       │    Qdrant DB     │    │                 │
                       │   (Vector Store) │    └─────────────────┘
                       └──────────────────┘

📁 Repository Structure

VocRT/
├── backend/         # Express.js server
├── frontend/        # React client application
├── models/          # AI models directory
├── voices/          # Available voice profiles
├── demo/            # Sample audio and demo files
├── .env             # Environment configuration
├── requirements.txt # Python dependencies
└── README.md        # Project documentation

🛠️ Manual Installation

Prerequisites

  • Python 3.10 (required)
  • Node.js 16+ and npm
  • Docker (for Qdrant vector database)
  • Git for cloning repositories

Step 1: Clone Repository

git clone https://huggingface.co/anuragsingh922/VocRT
cd VocRT

Step 2: Python Environment Setup

macOS/Linux:
python3.10 -m venv venv
source venv/bin/activate
Windows:
python3.10 -m venv venv
venv\Scripts\activate

Step 3: Install Python Dependencies

pip install -r requirements.txt

If the installation fails (e.g. due to dependency or PyTorch issues), try the following recovery steps:

pip install --upgrade pip setuptools wheel
pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cpu
pip install -r requirements.txt

Step 4: Install eSpeak

Ubuntu/Debian:
sudo apt-get update
sudo apt-get install espeak
macOS:
# Install Homebrew if not present
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Install eSpeak
brew install espeak
Windows:
  1. Download from eSpeak official website
  2. Run installer and follow instructions
  3. Add installation path to system PATH environment variable
  4. Verify installation: espeak --version
Verification:
espeak "VocRT installation successful!"

Step 5: Backend Setup (Express.js)

cd backend
npm install
npm run dev

Step 6: Frontend Setup (Vite)

cd frontend
npm install
npm run dev

Step 7: Qdrant Vector Database Setup

Documentation: Qdrant Quickstart Guide

# Pull Qdrant image
docker pull qdrant/qdrant

# Start Qdrant container
docker run -p 6333:6333 -p 6334:6334 \
  -v "$(pwd)/qdrant_storage:/qdrant/storage:z" \
  qdrant/qdrant

Access Points:

Step 8: Download Required Models

Embedding Model:

Clone e5-base-v2 to models/e5-base-v2

alt text

Whisper STT Model:

Choose your preferred Whisper model size:

✅ Just specify the model name(app.py) — it will be automatically downloaded and loaded.

  • tiny: Fastest, lower accuracy
  • base: Balanced performance
  • small: Better accuracy
  • medium/large: Highest accuracy, slower processing

alt text

Step 9: Environment Configuration

Edit .env file with your API credentials:

# LLM Configuration
OPENAI_API_KEY=your_openai_api_key_here
GEMINI_API_KEY=your_gemini_api_key_here
LLM_PROVIDER=google  # or 'google' for Gemini
LLM_MODEL=gemini-2.0-flash  # or your preferred model

Step 10: Launch VocRT Server

python3 app.py

🎯 Usage Guide

  1. Access the application: Navigate to http://localhost:3000
  2. Select voice profile: Choose from available voice options
  3. Configure settings: Adjust silence duration for optimal performance
  4. Add context: Upload documents, provide URLs, or enter text for AI context
  5. Start conversation: Begin speaking and enjoy real-time voice responses

📊 Supported Document Formats

Format Extension Description
PDF .pdf Portable Document Format
Text .txt Plain text files
Word .doc, .docx Microsoft Word documents
Excel .xls, .xlsx Microsoft Excel spreadsheets
PowerPoint .ppt, .pptx Microsoft PowerPoint presentations
CSV .csv Comma-separated values
URLs Web links Online content, blogs, PDFs

🤖 AI Models & Technology Stack

Core Models

  • TTS: Kokoro-82M - High-quality text-to-speech
  • STT: OpenAI Whisper - Accurate speech recognition
  • Embeddings: e5-base-v2 - Semantic text understanding
  • LLM: OpenAI GPT / Google Gemini - Natural language processing

Technology Stack

  • Backend: Python, Express.js, gRPC
  • Frontend: React, Vite
  • Database: Qdrant (Vector Database)
  • Audio Processing: Whisper, eSpeak, phonemizer

🔧 Performance Optimization

Hardware Recommendations

  • CPU: Multi-core processor (4+ cores recommended)
  • RAM: 4GB+ for optimal performance
  • Storage: SSD for faster model loading
  • GPU: Optional, for accelerated inference can reduce latency upto 60%

Configuration Tips

  • Modify silence duration for natural conversation flow
  • Use smaller Whisper models for faster STT processing
  • Enable GPU acceleration if available

🤝 Contributing

We welcome contributions from the community! Here's how you can help:

Ways to Contribute

  • 🐛 Bug Reports: Submit issues with detailed reproduction steps
  • 💡 Feature Requests: Suggest new capabilities and improvements
  • 📝 Documentation: Improve guides, tutorials, and API docs
  • 🔧 Code Contributions: Submit pull requests with enhancements

Development Setup

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Commit changes: git commit -m 'Add amazing feature'
  4. Push to branch: git push origin feature/amazing-feature
  5. Open a Pull Request

📄 License

This project is licensed under the MIT License

🙏 Acknowledgments

Special thanks to the amazing open-source communities:

📞 Support & Contact


📞 Website

  • VocRT: https://vocrt.vercel.app

⭐ If VocRT helps your projects, please consider giving it a star!


Built with ❤️ for the open-source community

Model info

onnx region:us
↓ 13 ♥ 5

Created: 2025-01-28

Updated: 2025-06-03

View on Hugging Face

Files (183)

.DS_Store
.env
.gitattributes
.gitignore
README.md
__pycache__/chat_database.cpython-310.pyc
__pycache__/istftnet.cpython-310.pyc
__pycache__/kokoro.cpython-310.pyc
__pycache__/models.cpython-310.pyc
__pycache__/plbert.cpython-310.pyc
__pycache__/text_to_speech_pb2.cpython-310.pyc
__pycache__/text_to_speech_pb2_grpc.cpython-310.pyc
app.py
app2.py
app_old.py
backend/.DS_Store
backend/app.js
backend/controller/chat.js
backend/controller/file.js
backend/controller/prompt.js
backend/handle-realtime-tts/cleangRPCconnections.js
backend/handle-realtime-tts/makegRPCconnection.js
backend/handle-realtime-tts/sttModelSocket.js
backend/handle-realtime-tts/sttModelSocket_whisper.js
backend/handle-realtime-tts/text_to_speech.proto
backend/handle-realtime-tts/text_to_speech_whisper.proto
backend/package-lock.json
backend/package.json
backend/providers/updateChathistory.js
backend/routes/chat.routes.js
backend/routes/prompt.routes.js
backend/routes/rag.routes.js
backend/utils/session.js
chat_database.py
chat_history.pkl
config.json
demo/HEARME.txt
demo/HEARME.wav
demo/TTS-Spaces-Arena-25-Dec-2024.png
demo/af_sky.txt
demo/af_sky.wav
demo/restoring-sky.md
embeddings.py
fastAPI.py
faster-whiper.py
fp16/halve.py
fp16/kokoro-v0_19-half.pth
frontend/.DS_Store
frontend/.env
frontend/bun.lockb
frontend/components.json
frontend/eslint.config.js
frontend/index.html
frontend/package-lock.json
frontend/package.json
frontend/postcss.config.js
frontend/public/favicon.ico
frontend/public/placeholder.svg
frontend/public/robots.txt
frontend/public/vocrt-512x512.png
frontend/public/vocrt.png
frontend/src/App.css
frontend/src/App.tsx
frontend/src/api/apiClient.ts
frontend/src/api/authApi.ts
frontend/src/assets/mic-animation.json
frontend/src/components/ChatInterface.tsx
frontend/src/components/ChatSidebar.tsx
frontend/src/components/ControlPanel.tsx
frontend/src/components/Footer.tsx
frontend/src/components/LottieMicAnimation.tsx
frontend/src/components/Messages.tsx
frontend/src/components/VoiceChat.tsx
frontend/src/components/VoiceVisualizer.tsx
frontend/src/components/ui/accordion.tsx
frontend/src/components/ui/alert-dialog.tsx
frontend/src/components/ui/alert.tsx
frontend/src/components/ui/aspect-ratio.tsx
frontend/src/components/ui/avatar.tsx
frontend/src/components/ui/badge.tsx
frontend/src/components/ui/breadcrumb.tsx
frontend/src/components/ui/button.tsx
frontend/src/components/ui/calendar.tsx
frontend/src/components/ui/card.tsx
frontend/src/components/ui/carousel.tsx
frontend/src/components/ui/chart.tsx
frontend/src/components/ui/checkbox.tsx
frontend/src/components/ui/collapsible.tsx
frontend/src/components/ui/command.tsx
frontend/src/components/ui/context-menu.tsx
frontend/src/components/ui/dialog.tsx
frontend/src/components/ui/drawer.tsx
frontend/src/components/ui/dropdown-menu.tsx
frontend/src/components/ui/form.tsx
frontend/src/components/ui/hover-card.tsx
frontend/src/components/ui/input-otp.tsx
frontend/src/components/ui/input.tsx
frontend/src/components/ui/label.tsx
frontend/src/components/ui/menubar.tsx
frontend/src/components/ui/navigation-menu.tsx
frontend/src/components/ui/pagination.tsx
frontend/src/components/ui/popover.tsx
frontend/src/components/ui/progress.tsx
frontend/src/components/ui/radio-group.tsx
frontend/src/components/ui/resizable.tsx
frontend/src/components/ui/scroll-area.tsx
frontend/src/components/ui/select.tsx
frontend/src/components/ui/separator.tsx
frontend/src/components/ui/sheet.tsx
frontend/src/components/ui/sidebar.tsx
frontend/src/components/ui/skeleton.tsx
frontend/src/components/ui/slider.tsx
frontend/src/components/ui/sonner.tsx
frontend/src/components/ui/switch.tsx
frontend/src/components/ui/table.tsx
frontend/src/components/ui/tabs.tsx
frontend/src/components/ui/textarea.tsx
frontend/src/components/ui/toast.tsx
frontend/src/components/ui/toaster.tsx
frontend/src/components/ui/toggle-group.tsx
frontend/src/components/ui/toggle.tsx
frontend/src/components/ui/tooltip.tsx
frontend/src/components/ui/use-toast.ts
frontend/src/hooks/FetchData.tsx
frontend/src/hooks/use-mobile.tsx
frontend/src/hooks/use-toast.ts
frontend/src/index.css
frontend/src/lib/utils.ts
frontend/src/main.tsx
frontend/src/pages/Index.tsx
frontend/src/pages/Landing.tsx
frontend/src/pages/NotFound.tsx
frontend/src/redux/hooks.ts
frontend/src/redux/slices/authSlice.ts
frontend/src/redux/slices/chatSlice.ts
frontend/src/redux/slices/chatsSlice.ts
frontend/src/redux/slices/sessionSlice.ts
frontend/src/redux/slices/settingsSlice.ts
frontend/src/redux/slices/themeSlice.ts
frontend/src/redux/store.ts
frontend/src/vite-env.d.ts
frontend/src/worklets/pcm-worklet.js
frontend/tailwind.config.ts
frontend/tsconfig.app.json
frontend/tsconfig.json
frontend/tsconfig.node.json
frontend/vite.config.ts
generated/text_to_speech_pb2.py
generated/text_to_speech_pb2_grpc.py
image-3.png
image.png
istftnet.py
kokoro-v0_19.onnx ONNX
kokoro-v0_19.pth
kokoro.py
models.py
output.wav
output2.wav
plbert.py
prompts.py
protos/text_to_speech.proto
providers/audio_provider.py
providers/chunk_provider.py
providers/filler_words.py
providers/llm_provider.py
providers/ppt_and_docx_helper.py
qdrent.py
rag_database.pkl
rag_database.py
requirements.txt
text_to_speech_pb2.py
text_to_speech_pb2_grpc.py
voices/af.pt
voices/af_bella.pt
voices/af_nicole.pt
voices/af_sarah.pt
voices/af_sky.pt
voices/am_adam.pt
voices/am_michael.pt
voices/bf_emma.pt
voices/bf_isabella.pt
voices/bm_george.pt
voices/bm_lewis.pt

Related models