Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

assemblyai-transcribe

Small CLI for uploading local audio file(s) to AssemblyAI and saving the transcript(s).

The code is compatible with Python 2.7 and Python 3.x.

Installation

Install from PyPI:

pip install assemblyai-transcribe

After installation, run it as assemblyai_transcribe.

Usage

Transcribe a single file:

assemblyai_transcribe ./example.mp3 --api-key YOUR_API_KEY -o transcript.txt

Transcribe multiple files:

assemblyai_transcribe ./ep1.mp3 ./ep2.mp3 ./ep3.mp3 --api-key YOUR_API_KEY
# Saves: ep1.mp3.txt, ep2.mp3.txt, ep3.mp3.txt

Transcribe multiple files into a directory (auto-created if it doesn't exist):

assemblyai_transcribe ./ep1.mp3 ./ep2.mp3 --api-key YOUR_API_KEY -o transcripts/
# Saves: transcripts/ep1.txt, transcripts/ep2.txt

Examples:

assemblyai_transcribe ./example.mp3 --api-key YOUR_API_KEY -o transcript.txt
assemblyai_transcribe ./example.mp3 --api-key YOUR_API_KEY --eu -o transcript.txt
assemblyai_transcribe ./example.mp3 --api-key YOUR_API_KEY --model universal-3-pro -o transcript.txt
assemblyai_transcribe ./example.mp3 --api-key YOUR_API_KEY --model universal-3-pro --model universal-2 -o transcript.txt
assemblyai_transcribe ./example.mp3 --api-key YOUR_API_KEY --no-language-detection -o transcript.txt
assemblyai_transcribe ./example.mp3 --api-key YOUR_API_KEY --no-speaker-labels -o transcript.txt

Arguments:

  • audio_files: one or more paths to local audio files.
  • --api-key API_KEY: AssemblyAI API key.
  • --base-url BASE_URL: override the API base URL. Default: https://api.assemblyai.com
  • --eu: use the EU AssemblyAI endpoint.
  • --model MODEL: repeat to provide multiple speech models. Default models: universal-3-pro, universal-2
  • --no-speaker-labels: disable speaker diarization (enabled by default).
  • --no-language-detection: disable automatic language detection (enabled by default).
  • --poll-interval SECONDS: seconds between polling attempts. Default: 3.0
  • -o OUTPUT, --output OUTPUT: write transcript(s). With one input file, this is the output file path (default: AUDIO_FILE.txt). With multiple input files, this must be a directory; each transcript is saved as BASENAME.txt inside it.

Help:

assemblyai_transcribe --help

Contributing

Contributions are welcome! Please submit pull requests or open issues on the GitHub repository.

License

This project is licensed under the MIT License.

Release files for assemblyai-transcribe 0.1.0a5

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

Source distribution (sdist)

Source distribution for assemblyai-transcribe 0.1.0a5
File Size Uploaded
assemblyai_transcribe-0.1.0a5.tar.gz 6.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for assemblyai-transcribe 0.1.0a5
File Interpreter ABI Platform
assemblyai_transcribe-0.1.0a5-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 13.2 kB

Release files / assemblyai_transcribe-0.1.0a5.tar.gz

Download URL assemblyai_transcribe-0.1.0a5.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ad7684b7264408cde0fa433f7044571d43ea0d33e61ae19c95403bca1525dd7a
BLAKE2b-256 checksum
How to use checksums
dfb86234eda8f0c75f54e4c58ae40b532e4ebe0be60dd33a7b02fbd7baababe7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.13

Release files / assemblyai_transcribe-0.1.0a5-py2.py3-none-any.whl

Download URL assemblyai_transcribe-0.1.0a5-py2.py3-none-any.whl
Size 7.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
57e0970c2f87e20aecbd7c57d5a6969cb43e9d1d463d372da8630a7659815a89
BLAKE2b-256 checksum
How to use checksums
2ae44895b97612b3063870935569ddc280701a2ba969f96eb6d81b1869a6ea0d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.13
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