Skip to main content

A TUI that you run to transcribe and edit text. It's like a companion that dictates for you, engaging in a dialogue to collaboratively update a block of text rather than performing a direct transcription.

Project description

Getting Started

What is TUI Writer?

TUI Writer is a terminal-based application that combines real-time speech transcription with AI-powered editing. Unlike traditional transcription tools that simply convert speech to text, TUI Writer acts as an intelligent companion that understands natural language editing commands.

Core Workflow:
1. Speak into your microphone
2. See your words transcribed in real-time
3. Make edits by speaking naturally: “change that to…” or “delete the last sentence”
4. The AI automatically detects and applies your edits
5. Copy the final transcript to your clipboard

For developers new to nbdev, the following sections explain the development workflow.

Install TUI Writer in Development Mode

For development and contributions, install the package in editable mode:

# Clone the repository
git clone https://github.com/Swiftner/tui_writer.git
cd tui_writer

# Install in development mode
pip install -e .

# Make changes under nbs/ directory
# The notebooks in nbs/ are the source of truth

# After making changes, regenerate the Python modules
nbdev_prepare

The nbdev_prepare command: - Exports code from notebooks to Python modules - Runs tests - Updates documentation - Cleans notebook outputs

Usage

Installation

Installation Options

Install TUI Writer using pip:

pip install tui_writer

Or using uv:

uv pip install tui_writer

Prerequisites

TUI Writer requires:
- Python 3.9 or higher
- A working microphone
- API key for at least one LLM provider (OpenAI, Anthropic, or Google)

First Run Setup

After installation, launch the application:

tui_writer

On first run, you will need to:
1. Press a to open AI settings
2. Select your preferred provider (OpenAI, Anthropic, or Google)
3. Choose a model
4. Enter your API key
5. Press Apply

The configuration is saved to ~/.config/tui_writer/tui_writer.conf and persists across sessions.

Basic Usage

Once configured:
- Press SPACE to start recording
- Speak naturally - your words appear in real-time
- Say edit commands like “change that to…” and they are applied automatically
- Press SPACE to stop recording
- Press C to copy the transcript to clipboard
- Press Q to quit

For detailed documentation on all features, press ? in the application to view the help screen.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tui_writer-0.1.1.tar.gz (22.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tui_writer-0.1.1-py3-none-any.whl (21.8 kB view details)

Uploaded Python 3

File details

Details for the file tui_writer-0.1.1.tar.gz.

File metadata

  • Download URL: tui_writer-0.1.1.tar.gz
  • Upload date:
  • Size: 22.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.18

File hashes

Hashes for tui_writer-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3eb2563aa40ebeabe13767654f09901566030956fa725a18b804541cdcf78b25
MD5 cdc0e62d1b7a3fafd4faec1556e7ea4b
BLAKE2b-256 2e41be1f56bf26550320574aacde2e7c52abc7980b11ff2cf42c1f48310a3934

See more details on using hashes here.

File details

Details for the file tui_writer-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: tui_writer-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 21.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.18

File hashes

Hashes for tui_writer-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 49ec25c93c561f5c98c945923e0cc72f66f0183958e5a9b169f11d55b8047524
MD5 9208ea2cc303ed43e94a2e9aec9b47a0
BLAKE2b-256 7d27147e84ac0ef562b31462d479d4a6afadcf0ba6b66c268f37aaeffc426cef

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page