xenoveni-LethalMic icon

LethalMic

⚠️ UNDER DEVELOPMENT - NOT READY FOR USE ⚠️ LethalMic - Advanced audio processing for Lethal Company with dynamic range compression, noise reduction, echo suppression, adaptive equalization, and spatial audio enhancement. Press 'M' key to open the UI

Last updated 2 weeks ago
Total downloads 776
Total rating 2 
Categories Audio
Dependency string xenoveni-LethalMic-1.5.3
Dependants 2 other packages depend on this package

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2100 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2100
Rune580-LethalCompany_InputUtils-0.7.10 icon
Rune580-LethalCompany_InputUtils

API/Library for creating Unity InputActions with in-game re-binding support. Provides an alternative UI that allows for supporting mods to have in-game re-bindable keybinds.

Preferred version: 0.7.10

README

🎤 LethalMic - Advanced Audio Processing for Lethal Company

⚠️ UNDER DEVELOPMENT - NOT READY FOR USE ⚠️
This mod is currently in active development. Features may be incomplete or unstable. Please do not download or use this mod until it is officially released.

🎯 QUICK START: Press the M key in-game to open the LethalMic control panel and adjust your audio settings.

🎯 Overview

LethalMic is a high-performance audio processing mod for Lethal Company that revolutionizes in-game voice communication. Built on industry-standard technologies and optimized for gaming, it delivers crystal-clear voice quality while maintaining minimal latency and resource usage.

🛠️ Technology Stack

Core Technologies

  • WebRTC Audio Pipeline: Leveraging the same technology used by Discord and Google Meet for professional-grade voice processing
  • Unity Input System: Modern input handling with full keyboard/mouse/gamepad support
  • BepInEx Framework: Robust plugin architecture for seamless game integration
  • Harmony Patching: Non-invasive code modification for maximum compatibility

Audio Processing Pipeline

  1. Noise Suppression

    • Spectral subtraction algorithm for background noise removal
    • Adaptive threshold detection for optimal noise reduction
    • Real-time processing with <20ms latency
  2. Voice Enhancement

    • Dynamic range compression for consistent volume levels
    • Adaptive equalization for voice clarity
    • Spatial audio enhancement for better 3D positioning
  3. Echo Control

    • Cross-correlation based echo detection
    • Adaptive echo cancellation
    • Loop prevention system

💡 Key Features

Real-time Processing

  • Low Latency: <20ms processing delay
  • CPU Efficient: 1-5% CPU usage
  • Memory Optimized: ~50MB RAM footprint

Voice Enhancement

  • Noise Gate: Intelligent voice activity detection
  • Compression: Dynamic range control
  • Equalization: Voice frequency enhancement
  • Spatial Audio: Improved 3D positioning

User Experience

  • Intuitive UI: Modern, responsive interface
  • Preset System: Save and load audio configurations
  • Performance Monitoring: Real-time resource usage display
  • Keyboard Shortcuts: Quick access to common functions

🔧 Technical Implementation

Audio Processing Pipeline

graph LR
    A[Input] --> B[Noise Gate]
    B --> C[Noise Reduction]
    C --> D[Echo Cancellation]
    D --> E[Compression]
    E --> F[Equalization]
    F --> G[Output]

Performance Optimization

  • Parallel Processing: Multi-threaded audio pipeline
  • SIMD Instructions: Optimized for modern CPUs
  • Memory Pooling: Reduced garbage collection
  • Lazy Loading: On-demand resource allocation

🚀 Development Status

Completed Features

  • ✅ Core audio processing pipeline
  • ✅ Noise reduction system
  • ✅ Voice activity detection
  • ✅ Audio loop prevention
  • ✅ Basic UI implementation
  • ✅ Configuration system

In Progress

  • 🔄 Advanced machine learning voice enhancement
  • 🔄 Real-time audio visualization
  • 🔄 Performance optimization
  • 🔄 Preset management system

📦 Installation

Prerequisites

  • Lethal Company (Steam)
  • BepInEx 5.4.x
  • .NET Framework 4.7.2 or newer

Installation Methods

  1. r2modman (Recommended)

    • Search for "LethalMic" in the mod browser
    • Click install and enable in your profile
  2. Manual Installation

    • Download the latest release
    • Extract to BepInEx/plugins/LethalMic
    • Launch the game

📦 Dependencies

LethalMic requires the following mods to function correctly:

These dependencies are automatically handled by r2modman/Thunderstore, but if you install manually, ensure both are present in your BepInEx/plugins folder.

Technical Note: When specifying InputUtils as a dependency for Thunderstore/r2modman, use the string: Rune580-LethalCompany_InputUtils-0.7.10 (with underscores, not dots).

⚙️ Configuration

Key Settings

{
  "Audio Processing": {
    "Enable Dynamic Range Compression": true,
    "Compression Threshold": -20.0,
    "Compression Ratio": 4.0,
    "Enable Noise Reduction": true,
    "Noise Reduction Strength": 0.7
  },
  "Voice Detection": {
    "Enable Voice Activity Detection": true,
    "VAD Threshold": -30.0,
    "Minimum Voice Frequency": 85.0,
    "Maximum Voice Frequency": 255.0
  }
}

🧪 Testing & Quality Assurance

Performance Metrics

  • Latency: <20ms
  • CPU Usage: 1-5%
  • Memory Usage: ~50MB
  • Compatibility: Windows 10/11

Testing Methodology

  • Automated unit tests
  • Performance benchmarking
  • Memory leak detection
  • Cross-platform compatibility testing

🤝 Contributing

We welcome contributions! Please see our Contributing Guidelines for details.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

💬 Support


This mod is not affiliated with or endorsed by Zeekerss or the Lethal Company development team.