VoicePilot is a production-ready, enterprise-grade pipeline that converts healthcare audio recordings into structured claim data. Built with security, scalability, and maintainability in mind, it features comprehensive error handling, robust logging, and modular architecture.
python main.py - Complete audio processing workflowpython app.py - Send extracted claims to external APIsmake help - View all available development commandsVoicePilot/
βββ π Entry Points
β βββ app.py # API integration service
β βββ main.py # End-to-end pipeline orchestrator
β βββ Makefile # Development commands
β
βββ βοΈ Configuration
β βββ config_manager/
β β βββ config_pipeline.yaml # Pipeline configuration
β β βββ config_logging.yaml # Logging settings
β βββ env.example # Environment variables template
β βββ pyproject.toml # Project metadata & tool configs
β
βββ π§ Core Processing
β βββ scripts/
β β βββ audio_file_process/
β β β βββ audio_cleaner.py # Audio preprocessing
β β β βββ speech_to_text.py # Whisper transcription
β β β βββ claim_extractor.py # AI claim extraction
β β β βββ pipeline.py # Orchestration & metrics
β β β βββ blob_storage_handler.py # Cloud storage
β β βββ API_Handler/
β β β βββ api_handler.py # API communication
β β β βββ api_server.py # REST API server
β β βββ DB/
β β β βββ insert_audiofile.py # Database operations
β β βββ dashboards/
β β βββ dashboard.py # Streamlit analytics
β β
βββ π οΈ Utilities & Infrastructure
β βββ utils/
β β βββ config_loader.py # Configuration management
β β βββ logging_utils.py # Structured logging
β β βββ constants.py # Application constants
β β βββ validators.py # Data validation
β β βββ exceptions.py # Custom exceptions
β β βββ analytics.py # Metrics & reporting
β β βββ pipeline_util.py # Pipeline utilities
β β βββ until_master.py # Helper functions
β β
βββ π§ͺ Testing & Quality
β βββ tests/ # Comprehensive test suite
β βββ conftest.py # Pytest configuration
β βββ pytest.ini # Test settings
β βββ .gitignore # Version control exclusions
β
βββ π Data & Logs
β βββ local_data_source/ # Processing directories
β βββ logs/ # Rotating daily logs
β βββ metrics/ # Performance metrics
β
βββ π³ Deployment
β βββ Dockerfile # Container configuration
β βββ requirements.txt # Python dependencies
β βββ run_pipeline.sh # Setup script
β
βββ π Documentation
βββ README.md # This comprehensive guide
config_manager/config_pipeline.yaml)config_manager/config_logging.yaml)VOICLAIM_LOG_LEVELβ οΈ Security Note: All sensitive data is now managed via environment variables. Copy
env.exampleto.envand configure your values.
# API Configuration
POST_PROCESS_URL=https://your-api-endpoint.com/process
CONTENT_TYPE=application/json
DEPLOYMENT_KEY=your-deployment-key
X_VA_SENDERAGENT_ID=your-sender-agent-id
# Database (if using SQL Server)
DB_PROD_HOST=your-db-host
DB_PROD_DATABASE=your-database
DB_PROD_USER=your-username
DB_PROD_PASSWORD=your-password
# Logging
VOICLAIM_LOG_LEVEL=INFO # DEBUG, INFO, WARNING, ERROR, CRITICAL
# API Timeout
API_TIMEOUT_SEC=30
# Processing
MAX_WORKERS=2
# Clone and setup
git clone <repository-url>
cd VoicePilot
./run_pipeline.sh # Automated setup script
# Create virtual environment
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
# Install dependencies
pip install --upgrade pip
pip install -r requirements.txt
# Setup environment
cp env.example .env
# Edit .env with your configuration
# View all available commands
make help
# Install dependencies
make install
# Run tests
make test
# Code quality checks
make lint
make format
make security
π End-to-End Pipeline
python main.py \
--max-workers 2 \
--day 1 \
--dry-run # Skip API calls for testing
π‘ API Integration Only
python app.py \
--base_folder local_data_source/extracted_claims/ \
--test_file local_data_source/extracted_claims/sample.json
π³ Docker Deployment
# Build image
make docker-build
# Run container
make docker-run
π local_data_source/
βββ raw_audio/ # Input audio files
βββ processing/ # In-flight processing
βββ cleaned_audio/ # Preprocessed audio
βββ transcripts/ # Speech-to-text output
βββ extracted_claims/ # AI-extracted JSON claims
βββ processed/ # Completed artifacts
βββ failed/ # Error diagnostics
βββ success/ # Success receipts
metrics/ directory# Run all tests
make test
# Run with coverage
make test-coverage
# Run specific test categories
pytest tests/ -m unit
pytest tests/ -m integration
# Format code
make format
# Lint code
make lint
# Security scan
make security
# Type checking
make type-check
# Clone repository
git clone <repository-url>
cd VoicePilot
# Setup development environment
make install-dev
# Run pre-commit checks
make pre-commit
This project is licensed under the MIT License - see the LICENSE file for details.
5 commits
Python
98.7%
Shell
1.3%
VoicePilot is a production-ready, enterprise-grade pipeline that converts healthcare audio recordings into structured claim data. Built with security, scalability, and maintainability in mind, it features comprehensive error handling, robust logging, and modular architecture.
python main.py - Complete audio processing workflowpython app.py - Send extracted claims to external APIsmake help - View all available development commandsVoicePilot/
βββ π Entry Points
β βββ app.py # API integration service
β βββ main.py # End-to-end pipeline orchestrator
β βββ Makefile # Development commands
β
βββ βοΈ Configuration
β βββ config_manager/
β β βββ config_pipeline.yaml # Pipeline configuration
β β βββ config_logging.yaml # Logging settings
β βββ env.example # Environment variables template
β βββ pyproject.toml # Project metadata & tool configs
β
βββ π§ Core Processing
β βββ scripts/
β β βββ audio_file_process/
β β β βββ audio_cleaner.py # Audio preprocessing
β β β βββ speech_to_text.py # Whisper transcription
β β β βββ claim_extractor.py # AI claim extraction
β β β βββ pipeline.py # Orchestration & metrics
β β β βββ blob_storage_handler.py # Cloud storage
β β βββ API_Handler/
β β β βββ api_handler.py # API communication
β β β βββ api_server.py # REST API server
β β βββ DB/
β β β βββ insert_audiofile.py # Database operations
β β βββ dashboards/
β β βββ dashboard.py # Streamlit analytics
β β
βββ π οΈ Utilities & Infrastructure
β βββ utils/
β β βββ config_loader.py # Configuration management
β β βββ logging_utils.py # Structured logging
β β βββ constants.py # Application constants
β β βββ validators.py # Data validation
β β βββ exceptions.py # Custom exceptions
β β βββ analytics.py # Metrics & reporting
β β βββ pipeline_util.py # Pipeline utilities
β β βββ until_master.py # Helper functions
β β
βββ π§ͺ Testing & Quality
β βββ tests/ # Comprehensive test suite
β βββ conftest.py # Pytest configuration
β βββ pytest.ini # Test settings
β βββ .gitignore # Version control exclusions
β
βββ π Data & Logs
β βββ local_data_source/ # Processing directories
β βββ logs/ # Rotating daily logs
β βββ metrics/ # Performance metrics
β
βββ π³ Deployment
β βββ Dockerfile # Container configuration
β βββ requirements.txt # Python dependencies
β βββ run_pipeline.sh # Setup script
β
βββ π Documentation
βββ README.md # This comprehensive guide
config_manager/config_pipeline.yaml)config_manager/config_logging.yaml)VOICLAIM_LOG_LEVELβ οΈ Security Note: All sensitive data is now managed via environment variables. Copy
env.exampleto.envand configure your values.
# API Configuration
POST_PROCESS_URL=https://your-api-endpoint.com/process
CONTENT_TYPE=application/json
DEPLOYMENT_KEY=your-deployment-key
X_VA_SENDERAGENT_ID=your-sender-agent-id
# Database (if using SQL Server)
DB_PROD_HOST=your-db-host
DB_PROD_DATABASE=your-database
DB_PROD_USER=your-username
DB_PROD_PASSWORD=your-password
# Logging
VOICLAIM_LOG_LEVEL=INFO # DEBUG, INFO, WARNING, ERROR, CRITICAL
# API Timeout
API_TIMEOUT_SEC=30
# Processing
MAX_WORKERS=2
# Clone and setup
git clone <repository-url>
cd VoicePilot
./run_pipeline.sh # Automated setup script
# Create virtual environment
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
# Install dependencies
pip install --upgrade pip
pip install -r requirements.txt
# Setup environment
cp env.example .env
# Edit .env with your configuration
# View all available commands
make help
# Install dependencies
make install
# Run tests
make test
# Code quality checks
make lint
make format
make security
π End-to-End Pipeline
python main.py \
--max-workers 2 \
--day 1 \
--dry-run # Skip API calls for testing
π‘ API Integration Only
python app.py \
--base_folder local_data_source/extracted_claims/ \
--test_file local_data_source/extracted_claims/sample.json
π³ Docker Deployment
# Build image
make docker-build
# Run container
make docker-run
π local_data_source/
βββ raw_audio/ # Input audio files
βββ processing/ # In-flight processing
βββ cleaned_audio/ # Preprocessed audio
βββ transcripts/ # Speech-to-text output
βββ extracted_claims/ # AI-extracted JSON claims
βββ processed/ # Completed artifacts
βββ failed/ # Error diagnostics
βββ success/ # Success receipts
metrics/ directory# Run all tests
make test
# Run with coverage
make test-coverage
# Run specific test categories
pytest tests/ -m unit
pytest tests/ -m integration
# Format code
make format
# Lint code
make lint
# Security scan
make security
# Type checking
make type-check
# Clone repository
git clone <repository-url>
cd VoicePilot
# Setup development environment
make install-dev
# Run pre-commit checks
make pre-commit
This project is licensed under the MIT License - see the LICENSE file for details.
5 commits
Python
98.7%
Shell
1.3%