๐ฎ Khala Engine - Apply psionic audio effects to voice recordings using SoX and FFmpeg. Mimics the StarCraft Protoss voice style: deep, resonant, and telepathic.
- Removes the original human voice entirely.
- Processes the signal into a deep, reversed-reverb "shadow" entity.
- Results in a distant, massive, and telepathic sound signature.
This repository contains two implementations:
- Python Version - Original implementation using Python subprocess
- Node.js Version - JavaScript implementation using Node.js child_process
Use the provided Makefile for easy setup and usage:
# Install all dependencies
make install
# Run basic tests
make test
# Process audio (requires demo_input.mp3)
make demo
# Clean temporary files
make cleanBoth implementations require ffmpeg and sox (Sound eXchange).
# macOS with Homebrew
brew install ffmpeg sox
# Ubuntu/Debian
sudo apt install ffmpeg sox
# Windows (using Chocolatey)
choco install ffmpeg soxcd python
pip install -r requirements.txtcd nodejs
npm installRun the script on any audio file:
cd python
python3 protoss_fx.py <path_to_audio_file>Example:
cd python
python3 protoss_fx.py ../recordings/my_voice.mp3Run the script on any audio file:
cd nodejs
node protoss_fx.js <path_to_audio_file>Or using npm script:
cd nodejs
npm start <path_to_audio_file>Example:
cd nodejs
node protoss_fx.js ../recordings/my_voice.mp3Files are saved as *_psionic.mp3 in the source directory for both implementations.
The current architecture prioritizes a massive, distinctive spatial presence.
- Shadow Generation: Pitch shift (-2 semitones) + Time stretch (0.9x).
- Void Layer: Reverse -> Dense Reverb -> Reverse (creates "pre-verb" suction).
- Mastering: Original voice is discarded. Bass boosted (+5dB), Subsonics cut (<100Hz).
This tool is designed to be used as a post-processing step for TTS generation. When generating voice content to mimic "Selendis" or other Protoss personas:
- Generate: Create raw speech using ElevenLabs.
- Process: Pass the output file immediately through the Protoss effect processor.
- Result: Use the resulting
_psionic.mp3file as the final asset.
Each implementation folder contains a SKILL.md file for OpenClaw integration:
- Python:
python/SKILL.md - Node.js:
nodejs/SKILL.md
protoss-voice/
โโโ README.md # This file
โโโ LICENSE # MIT License
โโโ .gitignore # Git ignore rules
โโโ python/ # Python implementation
โ โโโ SKILL.md # OpenClaw skill definition
โ โโโ protoss_fx.py # Main Python script
โ โโโ requirements.txt # Python dependencies
โโโ nodejs/ # Node.js implementation
โโโ SKILL.md # OpenClaw skill definition
โโโ package.json # Node.js package config
โโโ protoss_fx.js # Main Node.js script
We welcome contributions! Please see our Contributing Guide for detailed information on:
- Development setup
- Code style guidelines
- Testing procedures
- Pull request process
MIT License - see LICENSE file for details.
Diego Ghersi - Creator and maintainer of the Protoss Voice Effect Generator.
Feel free to submit issues and pull requests!