https://github.com/mr3rf1/glitchmic
a python script to make your microphone glitchy temporarily.
https://github.com/mr3rf1/glitchmic
connect disconnect glitch glitching microphone python
Last synced: 2 months ago
JSON representation
a python script to make your microphone glitchy temporarily.
- Host: GitHub
- URL: https://github.com/mr3rf1/glitchmic
- Owner: Mr3rf1
- Created: 2024-01-31T14:33:42.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-28T12:46:58.000Z (over 2 years ago)
- Last Synced: 2025-07-05T15:09:35.984Z (12 months ago)
- Topics: connect, disconnect, glitch, glitching, microphone, python
- Language: Python
- Homepage:
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GlitchMic
A Python script that temporarily makes your microphone glitchy by randomly muting and unmuting it at intervals.
▄████ ██▓ ██▓▄▄▄█████▓ ▄████▄ ██░ ██ ███▄ ▄███▓ ██▓ ▄████▄
██▒ ▀█▒▓██▒ ▓██▒▓ ██▒ ▓▒▒██▀ ▀█ ▓██░ ██▒ ▓██▒▀█▀ ██▒▓██▒▒██▀ ▀█
▒██░▄▄▄░▒██░ ▒██▒▒ ▓██░ ▒░▒▓█ ▄ ▒██▀▀██░ ▓██ ▓██░▒██▒▒▓█ ▄
░▓█ ██▓▒██░ ░██░░ ▓██▓ ░ ▒▓▓▄ ▄██▒░▓█ ░██ ▒██ ▒██ ░██░▒▓▓▄ ▄██▒
░▒▓███▀▒░██████▒░██░ ▒██▒ ░ ▒ ▓███▀ ░░▓█▒░██▓ ▒██▒ ░██▒░██░▒ ▓███▀ ░
░▒ ▒ ░ ▒░▓ ░░▓ ▒ ░░ ░ ░▒ ▒ ░ ▒ ░░▒░▒ ░ ▒░ ░ ░░▓ ░ ░▒ ▒ ░
░ ░ ░ ░ ▒ ░ ▒ ░ ░ ░ ▒ ▒ ░▒░ ░ ░ ░ ░ ▒ ░ ░ ▒
░ ░ ░ ░ ░ ▒ ░ ░ ░ ░ ░░ ░ ░ ░ ▒ ░░
░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░
░ ░
Glitched successfully
Glitched successfully
Glitched successfully
Glitched successfully
## Features
- Cross-platform support (Windows & Linux)
- Random glitch intervals for realistic effect
- Command-line options for volume control
- Automatic microphone restoration on exit
## Supported Operating Systems
- **Windows** - Uses Win32 API for microphone control
- **Linux** - Uses ALSA audio system
## Prerequisites
- Python 3.x
- Platform-specific audio libraries (see installation)
## Installation
### Windows
1. Download and install Python from [python.org](https://python.org)
2. Clone this repository:
```bash
git clone https://github.com/Mr3rf1/GlitchMic
cd GlitchMic
```
3. Install required dependencies:
```bash
pip install pywin32
```
### Linux (Ubuntu/Debian)
```bash
sudo apt update
sudo apt install python3 git python3-pip
git clone https://github.com/Mr3rf1/GlitchMic
cd GlitchMic
pip install pyalsaaudio
```
## Usage
### Basic Usage
```bash
python GlitchMic.py
```
### Command Line Options
**Windows only:**
- `python GlitchMic.py -u` or `python GlitchMic.py --up-volume` - Increase microphone volume
- `python GlitchMic.py -d` or `python GlitchMic.py --down-volume` - Decrease microphone volume
### How It Works
The script creates a "glitchy" microphone effect by:
1. Randomly muting/unmuting your microphone at intervals
2. **Windows**: Uses mute commands with random timing (1.7-3.0s off, 0.3-0.7s on)
3. **Linux**: Alternates volume between 0% and 100% with random timing (1.7-3.0s each)
### Stopping the Script
Press `Ctrl+C` to stop. The script will automatically restore your microphone to full volume.
## Safety Features
- Automatic microphone restoration on exit
- Volume boost on startup (Windows)
- Graceful handling of keyboard interrupts
## License
This project is open source. Feel free to contribute or modify as needed.
## Disclaimer
Use responsibly. This tool is intended for entertainment purposes and testing audio setups.