Metadata-Version: 2.5
Name: speechtrace
Version: 0.1.0
Summary: Transcribe audio and video files with Speechtrace: punctuation, word timestamps and speaker labels. A command-line tool and an MCP server for AI assistants.
Project-URL: Homepage, https://speechtraceai.com
Project-URL: Documentation, https://speechtraceai.com/ai-assistants
Project-URL: Instructions for AI assistants, https://speechtraceai.com/llms.txt
License-Expression: MIT
License-File: LICENSE
Keywords: ai-assistant,audio,mcp,speech-to-text,subtitles,transcription
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Multimedia :: Sound/Audio :: Speech
Requires-Python: >=3.10
Requires-Dist: mcp<3,>=2.3
Requires-Dist: requests<3,>=2.31
Description-Content-Type: text/markdown

# speechtrace

Transcribe audio and video files with [Speechtrace](https://speechtraceai.com): English transcripts with
punctuation, word timestamps and speaker labels, as plain text, SRT, WebVTT or JSON. New accounts get free hours,
no card needed.

It's a command-line tool, and an MCP server for AI assistants. Use it yourself, or tell your assistant:

> Use speechtraceai.com to transcribe the audio files in ~/Recordings. Instructions for AI assistants:
> https://speechtraceai.com/llms.txt

## Quick start

With [uv](https://docs.astral.sh/uv/) installed, nothing else to install:

```bash
uvx speechtrace login --email you@example.com   # we email you a 6-digit code
uvx speechtrace login --code 123456              # ...or `login --wait` after clicking Approve in the email
uvx speechtrace transcribe ~/Recordings          # transcripts go to ~/Recordings/transcripts
```

Without uv: `pipx run speechtrace …`, or `pip install speechtrace` and then `speechtrace …`.

## Commands

| Command | What it does |
|---|---|
| `login --email E` | Start signing in (or signing up): we email a code and an Approve link |
| `login --code C` / `login --wait` | Finish with the code, or once you've clicked Approve |
| `transcribe PATHS…` | Transcribe files or folders. Safe to stop and run again: finished files are skipped |
| `balance` | Audio hours left, and the price |
| `buy USD` / `buy --wait` | A Stripe link to buy hours; `--wait` returns once they've arrived |
| `logout` | Revoke this computer's key and forget it |
| `mcp` | Run as an MCP server over stdio |

`transcribe` options: `--out DIR`, `--formats txt,srt,vtt,json`, `--no-speakers`, `--parallel N`, and
`--no-wait` (send everything and return; run again to collect).

Every command takes `--json` (one JSON object on stdout) and `--api URL`. Exit codes: 0 done, 1 error or some
files failed, 2 bad arguments, 3 not signed in, 4 out of audio hours, 5 still waiting.

The API key is saved in your user config folder (`~/.config/speechtrace/config.json`, readable only by you).
`SPEECHTRACE_API_KEY` overrides it; `SPEECHTRACE_CONFIG_DIR` moves it.

## As an MCP server

Tools: `sign_in_start`, `sign_in_finish`, `transcribe`, `account`, `buy_credit`, `sign_out`.

- **Claude Code:** `claude mcp add --scope user speechtrace -- uvx speechtrace@latest mcp`
- **Claude Desktop or Cursor** (their MCP config file):
  ```json
  {"mcpServers": {"speechtrace": {"command": "uvx", "args": ["speechtrace@latest", "mcp"]}}}
  ```
  If Claude Desktop can't find `uvx`, use its full path (`which uvx`).
- **Codex:** `codex mcp add speechtrace -- uvx speechtrace@latest mcp`

## Safety

- Signing in needs the code or the Approve button from your own inbox. Approving also asks for the 2-digit
  number your assistant shows, so nobody else's program can sign in as you.
- Only you can pay: buying hours gives you a link to Stripe's checkout page. Your assistant never sees card
  details.
- See and revoke keys on your [dashboard](https://speechtraceai.com/app).

Using Speechtrace means you agree to its [terms](https://speechtraceai.com/terms) and
[privacy policy](https://speechtraceai.com/privacy). The tool is open source (MIT).
