# WhisperChain **Repository Path**: ocisly/WhisperChain ## Basic Information - **Project Name**: WhisperChain - **Description**: 让语音秒变正式文档,真正实现"开口即成章"。 主要是能自动优化语言表达,去掉口头禅,让内容更加流畅、正式,非常适用于会议记录、写作辅助、语音笔记整理等场景。 核心功能 - 实时语音转文字 - 自动润色文本 - 自动复制到剪贴板 - 全局快捷键录音 - 简洁的网页界面 - **Primary Language**: Unknown - **License**: BSD-3-Clause - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-03-04 - **Last Updated**: 2025-03-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Whisper Chain

Whisper Chain Logo

## Overview Typing is boring, let's use voice to speed up your workflow. This project combines: - Real-time speech recognition using Whisper.cpp - Transcription cleanup using LangChain - Global hotkey support for voice control - Automatic clipboard integration for the cleaned transcription ## Requirements - Python 3.8+ - OpenAI API Key - For MacOS: - ffmpeg (for audio processing) - portaudio (for audio capture) ## Installation 1. Install system dependencies (MacOS): ```bash # Install ffmpeg and portaudio using Homebrew brew install ffmpeg portaudio ``` 2. Install the project: ```bash pip install whisperchain ``` ## Configuration WhisperChain will look for configuration in the following locations: 1. Environment variables 2. .env file in the current directory 3. ~/.whisperchain/.env file On first run, if no configuration is found, you will be prompted to enter your OpenAI API key. The key will be saved in `~/.whisperchain/.env` for future use. You can also manually set your OpenAI API key in any of these ways: ```bash # Option 1: Environment variable export OPENAI_API_KEY=your-api-key-here # Option 2: Create .env file in current directory echo "OPENAI_API_KEY=your-api-key-here" > .env # Option 3: Create global config mkdir -p ~/.whisperchain echo "OPENAI_API_KEY=your-api-key-here" > ~/.whisperchain/.env ``` ## Usage 1. Start the application: ```bash # Run with default settings whisperchain # Run with custom configuration whisperchain --config config.json # Override specific settings whisperchain --port 8080 --hotkey "++t" --model "large" --debug ``` 3. Use the global hotkey (`++r` by default. `+