AssemblyAI Audio Transcriber
Reusable transcription utilities with optional YouTube audio download.
Requirements
- Python 3.10+
- AssemblyAI API key (
ASSEMBLYAI_API_KEY) - Optional:
yt-dlp(only needed for YouTube downloads)
Install
pip install -e .
With YouTube download support:
pip install -e ".[youtube]"
Quickstart (CLI)
export ASSEMBLYAI_API_KEY=your_key_here
assemblyai-transcriber --audio-path /path/to/audio.mp3
CLI Usage
Transcribe a local audio file:
assemblyai-transcriber --audio-path /path/to/audio.mp3
Transcribe a remote audio URL:
assemblyai-transcriber --audio-url https://example.com/audio.mp3
Download YouTube audio and transcribe it:
assemblyai-transcriber --youtube https://www.youtube.com/watch?v=VIDEO_ID
--youtube accepts full YouTube URLs or a raw video ID.
Library Usage
from pathlib import Path
from transcription_pipeline import transcribe_audio
text = transcribe_audio(audio_path=Path("/path/to/audio.mp3"))
print(text)
Transcribe from YouTube:
from transcription_pipeline import transcribe_audio
text = transcribe_audio(youtube="https://youtu.be/VIDEO_ID")
print(text)
Tests
Run tests:
pytest
Quality Checks
Install dev dependencies:
pip install -e ".[dev]"
Run lint and tests:
ruff check .
ruff format --check .
pytest
Pre-commit
pip install pre-commit
pre-commit install
Changelog
See CHANGELOG.md.
Versioning
See VERSIONING.md.
Releases
Tag releases as vX.Y.Z to trigger the GitHub Actions release workflow.
Metadata
Release files for assemblyai-transcriber 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| assemblyai_transcriber-0.1.0.tar.gz | 18.9 kB | With provenance | Details for assemblyai_transcriber-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| assemblyai_transcriber-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for assemblyai_transcriber-0.1.0-py3-none-any.whl |
Total release size: 37.2 kB
Release files / assemblyai_transcriber-0.1.0.tar.gz
| Download URL | assemblyai_transcriber-0.1.0.tar.gz |
|---|---|
| Size | 18.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
94b5043c1619c5bb8dd9a181b5a31572d68fbd28b16f1ab0dfdb96626ac0bfab
|
|
BLAKE2b-256 checksum How to use checksums |
ab60f9b57ca55385cb542ba7d4bd0449f037f0b93a53412fc4ea6eba3353c1cf
|
| 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 6, 2026.
Transparency logRelease files / assemblyai_transcriber-0.1.0-py3-none-any.whl
| Download URL | assemblyai_transcriber-0.1.0-py3-none-any.whl |
|---|---|
| Size | 18.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7efe2a0c7a0d5f80204c0d790eaae0e5e62ac02d733f3e35ccb6751a8d87b1d6
|
|
BLAKE2b-256 checksum How to use checksums |
3dd3c6551a034ebdff8c3f62b6037fa2c71c4eb8155cffa1caaaac8b6ce1446c
|
| 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 6, 2026.
Transparency logSecurity for assemblyai-transcriber 0.1.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for assemblyai_transcriber-0.1.0.tar.gz
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 6, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.