Skip to main content

audawispr

Quality PyPI version Python 3.11+

Split audio files into high-quality sentence-based learning materials.

Features

  • Transcription — Local speech-to-text via faster-whisper; no API keys required.
  • Segmentation — Splits transcriptions into sentence-level segments using punctuation, pauses, and duration bounds.
  • Enrichment — French IPA transcription (optional). Translation scaffolding is in place but not yet implemented.
  • Clipping — Extracts audio snippets for each segment using FFmpeg (bundled via static-ffmpeg).
  • Export — Outputs Anki-compatible CSV or native .apkg packages with embedded audio.
  • One-shot CLI — Runs the full pipeline with a single command.

Requirements

  • Python 3.11+
  • FFmpeg is bundled via the static-ffmpeg dependency — no separate installation is needed. Run audawispr doctor to verify availability.
  • uv is only required for local development (see Setup).

Setup

Install audawispr from PyPI:

pip install audawispr

Or with uv:

uv pip install audawispr

After installing, run audawispr directly. Use uv run audawispr only when working in a cloned repository.

For local development, install runtime and development dependencies:

uv sync --dev

Quickstart

Turn an audio file into an Anki deck with one command:

audawispr lesson.mp3 --output deck.apkg --language fr --ipa

Or use the Python API:

from pathlib import Path
from audawispr import Pipeline

Pipeline(
    output=Path("deck.apkg"),
    language="fr",
    ipa=True,
).run(Path("lesson.mp3"))

The one-shot command runs transcription, segmentation, enrichment, clipping, and export in sequence.

Usage

This section and Quickstart use the bare audawispr command. For development, prefix with uv run.

Show the CLI help:

audawispr --help

Show the installed package version:

audawispr --version

Check local runtime readiness:

audawispr doctor

audawispr doctor reports the package version, Python version, and whether FFmpeg and FFprobe are available from AUDAWISPR_FFMPEG, AUDAWISPR_FFPROBE, PATH, or the static-ffmpeg fallback.

Transcribe audio locally into a transcript manifest:

audawispr transcribe lesson.mp3 --output out/transcript.json --language fr

Validate an existing transcript manifest:

audawispr validate out/transcript.json

Segment a transcript manifest and write an inspection TSV:

audawispr segment out/transcript.json --output out/segments.json

Enrich a segmented French manifest with IPA:

audawispr enrich out/segments.json --ipa --output out/enriched.json

transcribe defaults to French, the small faster-whisper model, automatic device selection, int8 compute, VAD enabled, and required word timestamps. The first real transcription may download model files, but no API key is required. Tests and CI use fakes and do not download models.

segment preserves the transcript manifest schema and rebuilds only the segment list. It splits on sentence punctuation, pauses, and duration bounds. By default, it writes out/segments.tsv next to the JSON output; use --inspection-tsv path/to/review.tsv to choose a different TSV path.

enrich preserves timestamps, words, and source metadata while adding optional study fields. IPA (--ipa) is available for French. Translation is not yet implemented; pass --translate none (the default) to skip it. The pipeline works with any language faster-whisper supports — IPA is the only French-specific feature.

Clip audio snippets from a segmented manifest:

audawispr clip out/enriched.json --output out/clipped.json --output-dir out/media

clip reads a segmented or enriched manifest, extracts each segment's audio from the source file using FFmpeg, and writes the clipped manifest with audio_file paths. By default it reuses existing snippets; use --force to re-clip. Padding (--padding-before-ms, --padding-after-ms), format (--format), and bitrate (--bitrate) are configurable.

Export a clipped manifest for Anki import:

audawispr export out/clipped.json --format anki-csv --output out/anki-csv

export reads a clipped manifest, copies audio snippets, and writes out/anki-csv/cards.csv with columns Sentence, Audio, IPA, Translation, SourceFile, TimestampRange, and SegmentId. Audio references use Anki's [sound:...] syntax.

Manual import in Anki Desktop: File → Import → select cards.csv, set "Fields separated by: Comma", and copy the media/ folder contents into your Anki collection.media folder.

Export as a native Anki package (.apkg) with embedded audio:

audawispr export out/clipped.json --output deck.apkg --deck-name "My French Deck"

When the output path ends in .apkg, the apkg format is inferred automatically. Use --deck-name to set the deck name; the default is audawispr::{language} (e.g. audawispr::fr). The resulting .apkg file can be opened directly in Anki Desktop via File → Import.

Development Checks

uv run pytest
uv run ruff check .
uv run ruff format --check .
uv run ty check src tests

Release files for audawispr 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for audawispr 0.1.4
File Size Uploaded
audawispr-0.1.4.tar.gz 150.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for audawispr 0.1.4
File Interpreter ABI Platform
audawispr-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 187.2 kB

Release files / audawispr-0.1.4.tar.gz

Download URL audawispr-0.1.4.tar.gz
Size 150.1 kB
Tags Source
SHA-256 checksum
How to use checksums
98b662271ebba3c7b1da17877a1cb5b8988ea9cab1cf492aa2e06a12b99257a6
BLAKE2b-256 checksum
How to use checksums
06bd1b80ce145dfe66c215f18d8840ff8fd3a42501f7f8dcd0fe3e894491d745
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 11, 2026.

Transparency log

Release files / audawispr-0.1.4-py3-none-any.whl

Download URL audawispr-0.1.4-py3-none-any.whl
Size 37.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ab312d934c32e64609eaa7b11cc57f63fda150ab0d2d230d033e1f426cc4d088
BLAKE2b-256 checksum
How to use checksums
52cf48c74c66a613922662180afe2f863e3cf878b142e5f85d6b1da06f151d5a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 11, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page