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 from Github:

pip install git+https://github.com/Swiftner/tui_writer.git

Or from conda:

conda install -c Swiftner tui_writer

Or from PyPI:

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.0.tar.gz (22.8 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.0-py3-none-any.whl (21.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tui_writer-0.1.0.tar.gz
  • Upload date:
  • Size: 22.8 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.0.tar.gz
Algorithm Hash digest
SHA256 0b94e6ac7cc4057d04cf0d797d487a42822bebd8490018ae816e4d835de66490
MD5 3b3b4275f8dc7dc5523cd2bfb0088e34
BLAKE2b-256 659032626f18ff29ffebada0720ddfc7fa55c6f1d34e31ca40fd349568069232

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tui_writer-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 21.6 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 06dab866fb4fcaabd09c39a4a6bd7b96e6b4e9528355a8be35e7c0a84b4e5149
MD5 ff2d568c676722a51175d1e0e2cfb3b5
BLAKE2b-256 08ca176151dbd70753bfcfa4fe8ad4027996fb0db02489d3729953153ca17ad7

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