Small CLI for uploading local audio to AssemblyAI and printing transcripts.
Project description
assemblyai-transcribe
Small CLI for uploading a local audio file to AssemblyAI and printing the transcript.
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
Run the installed command directly:
assemblyai_transcribe ./example.mp3 --api-key YOUR_API_KEY
Examples:
assemblyai_transcribe ./example.mp3 --api-key YOUR_API_KEY
assemblyai_transcribe ./example.mp3 --api-key YOUR_API_KEY --eu
assemblyai_transcribe ./example.mp3 --api-key YOUR_API_KEY --model universal-3-pro
assemblyai_transcribe ./example.mp3 --api-key YOUR_API_KEY --model universal-3-pro --model universal-2
assemblyai_transcribe ./example.mp3 --api-key YOUR_API_KEY --language-detection
assemblyai_transcribe ./example.mp3 --api-key YOUR_API_KEY --speaker-labels
assemblyai_transcribe ./example.mp3 --api-key YOUR_API_KEY > transcript.txt
Arguments:
audio_file: path to the local audio file.--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--speaker-labels: enable speaker diarization and print utterances after the transcript.--language-detectionor--language_detection: enable automatic language detection.--poll-interval SECONDS: seconds between polling attempts. Default:3.0--timeout SECONDS: HTTPS timeout in seconds. Default:30.0
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.
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_transcribe-0.1.0a1.tar.gz.
File metadata
- Download URL: assemblyai_transcribe-0.1.0a1.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
36bd4963109c470f3f4fe11e9f7c4dc632fe12e99fcf0a00679a2ec063db59f8
|
|
| MD5 |
c0dfda0dd8027f19ff9291095cbf4941
|
|
| BLAKE2b-256 |
092bcfe983394cdb25e135558712287ef56a802682888007ac69657ab3bcd9c9
|
File details
Details for the file assemblyai_transcribe-0.1.0a1-py2.py3-none-any.whl.
File metadata
- Download URL: assemblyai_transcribe-0.1.0a1-py2.py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
330a600d491a6895fce79a4575c24d5b5df93efb6fc3fecde86d2d96907d8275
|
|
| MD5 |
e309ad6613055c1806d24d68d4ebe98a
|
|
| BLAKE2b-256 |
8674cb4065231b64f0473127407e5b397074a699a5fb04b9d50d4992880b05a2
|