AssemblyAI audio transcription wrapper with optional YouTube download.
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file assemblyai_transcriber-0.1.0.tar.gz.
File metadata
- Download URL: assemblyai_transcriber-0.1.0.tar.gz
- Upload date:
- Size: 18.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
94b5043c1619c5bb8dd9a181b5a31572d68fbd28b16f1ab0dfdb96626ac0bfab
|
|
| MD5 |
170504d474cd21eacea618d1bfeceb6c
|
|
| BLAKE2b-256 |
ab60f9b57ca55385cb542ba7d4bd0449f037f0b93a53412fc4ea6eba3353c1cf
|
Provenance
The following attestation bundles were made for assemblyai_transcriber-0.1.0.tar.gz:
Publisher:
release.yml on jerturowetz/assemblyai-transcriber
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
assemblyai_transcriber-0.1.0.tar.gz -
Subject digest:
94b5043c1619c5bb8dd9a181b5a31572d68fbd28b16f1ab0dfdb96626ac0bfab - Sigstore transparency entry: 1451748921
- Sigstore integration time:
-
Permalink:
jerturowetz/assemblyai-transcriber@1654c47410154d8f9cc67cf1c74707bdadfb4a71 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/jerturowetz
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@1654c47410154d8f9cc67cf1c74707bdadfb4a71 -
Trigger Event:
push
-
Statement type:
File details
Details for the file assemblyai_transcriber-0.1.0-py3-none-any.whl.
File metadata
- Download URL: assemblyai_transcriber-0.1.0-py3-none-any.whl
- Upload date:
- Size: 18.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7efe2a0c7a0d5f80204c0d790eaae0e5e62ac02d733f3e35ccb6751a8d87b1d6
|
|
| MD5 |
6dcf7267548bee6313319f6d53d601f5
|
|
| BLAKE2b-256 |
3dd3c6551a034ebdff8c3f62b6037fa2c71c4eb8155cffa1caaaac8b6ce1446c
|
Provenance
The following attestation bundles were made for assemblyai_transcriber-0.1.0-py3-none-any.whl:
Publisher:
release.yml on jerturowetz/assemblyai-transcriber
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
assemblyai_transcriber-0.1.0-py3-none-any.whl -
Subject digest:
7efe2a0c7a0d5f80204c0d790eaae0e5e62ac02d733f3e35ccb6751a8d87b1d6 - Sigstore transparency entry: 1451749022
- Sigstore integration time:
-
Permalink:
jerturowetz/assemblyai-transcriber@1654c47410154d8f9cc67cf1c74707bdadfb4a71 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/jerturowetz
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@1654c47410154d8f9cc67cf1c74707bdadfb4a71 -
Trigger Event:
push
-
Statement type: