No description
Find a file
2026-03-21 18:18:56 +03:00
.gitignore updates 2026-03-21 18:18:56 +03:00
README.md updates 2026-03-21 18:18:56 +03:00
requirements.txt updates 2026-03-21 18:18:56 +03:00
speechgptTkinter.py updates 2026-03-21 18:18:56 +03:00
speechifyTkinter.py updates 2026-03-21 18:18:56 +03:00

Text-to-Speech / Speech Transcription Apps

Sample Python projects that use the OpenAI Speech-to-Text API (gpt-4o-transcribe) to transcribe microphone audio in real time.

Apps

File Description
speechgpt.py Console-based transcription — writes output to a text file
speechgptTkinter.py Desktop GUI (Tkinter) with microphone selector, start/stop buttons, and live transcript

Setup

1. Install Python

Make sure Python 3.10+ is installed. You can download it from python.org.

python -m venv venv

# Windows
venv\Scripts\activate

# macOS / Linux
source venv/bin/activate

3. Install dependencies

pip install -r requirements.txt

4. Configure your OpenAI API key

Create a .env file in the project root

OPENAI_API_KEY=sk-proj-your-key-here

Get your API key from platform.openai.com/api-keys.

Important: The .env file is git-ignored so your key stays out of version control.

5. Run

# Local version
python speechifyTkinter.py

# ChatGPT Transcribe version
python speechgptTkinter.py