Skip to main content

Small CLI for uploading local audio to AssemblyAI and printing or saving transcripts.

Project description

assemblyai-transcribe

Small CLI for uploading a local audio file to AssemblyAI and saving 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 -o transcript.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 --language-detection -o transcript.txt
assemblyai_transcribe ./example.mp3 --api-key YOUR_API_KEY --speaker-labels -o 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-detection or --language_detection: enable automatic language detection.
  • --poll-interval SECONDS: seconds between polling attempts. Default: 3.0
  • -o OUTPUT, --output OUTPUT: required. Write the transcript to a file.
  • --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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

assemblyai_transcribe-0.1.0a2.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

assemblyai_transcribe-0.1.0a2-py2.py3-none-any.whl (6.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file assemblyai_transcribe-0.1.0a2.tar.gz.

File metadata

  • Download URL: assemblyai_transcribe-0.1.0a2.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for assemblyai_transcribe-0.1.0a2.tar.gz
Algorithm Hash digest
SHA256 7392f8a2fe530f89d957a7682d4979af719d69d612b655516505a017799afaae
MD5 6e269edfd9e2a9113e37b62e87f88c7f
BLAKE2b-256 1591a673c3f0f4cedc0e4860c87adcd4528cce10c1d752bc1d9f2e9f576aa514

See more details on using hashes here.

File details

Details for the file assemblyai_transcribe-0.1.0a2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for assemblyai_transcribe-0.1.0a2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d18f066a4dcc2332b20c6fcdea5d9e4fd9ea870085af1a9c8479d28de11fd5a1
MD5 e219378e319af52db3a965e39fc31e57
BLAKE2b-256 75d3fbda5ca6f05606e2c5d1043d5275ea9187ff40e3a37a22a827d2667f534a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page