assembly-ai-plus
Simple Library for transcribing and understanding audio and video files using AssemblyAI.
Read more about AssemblyAI 👉 Docs
Install
pip install assembly-ai-plus
How it works
sequenceDiagram
participant User
User->>submit_audio_for_transcription: Audio URL or Local file path and include other intelligence features
submit_audio_for_transcription-->>User: transcription_id
User->>get_transcription_results: transcription_id, all_details=True/False
get_transcription_results-->>User: Full Transcription Results
How to use
This Library provides a
AssemblyAI
class using which you can submit audio files for transcribing and
understanding.
from assembly_ai_plus.assemblyai import AssemblyAI
First create the assembly_ai instance by providing the AssemblyAI API KEY, which you can get it for free from here
assembly_ai = AssemblyAI(api_key='YOURKEY')
Submit the audio url for transcription
res = assembly_ai.submit_audio_for_transcription(audio_url="https://bit.ly/3yxKEIY")
res.get('id') # This id is used to extract the actual text from the audio files.
'rsh0hzmusy-024f-472e-937b-e86223eaf7c9'
Sumbit Local Audio file for transcription
res = assembly_ai.submit_audio_for_transcription(local_audio_file_path='your_file_path')
res.get('id')
'rsh0n4g7nv-f022-409b-b97b-9a138261a0d7'
Getting the Transcription Result
full_details = assembly_ai.get_transcription_results('rs3c8julbq-177d-4071-ab6f-d7c7a9bb6dbb')
print(full_details['text'])
You know, demons on TV like that. And and for people to expose themselves to being rejected on TV or, you know, humili humiliated by Fear Factor or, you know.
We can check out other details like sentiment analysis from
full_details
Metadata
Release files for assembly-ai-plus 0.0.11
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 |
|---|---|---|---|---|
| assembly-ai-plus-0.0.11.tar.gz | 9.5 kB | Without provenance | Details for assembly-ai-plus-0.0.11.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| assembly_ai_plus-0.0.11-py3-none-any.whl | Python 3 | none | any | Details for assembly_ai_plus-0.0.11-py3-none-any.whl |
Total release size: 20.5 kB
Release files / assembly-ai-plus-0.0.11.tar.gz
| Download URL | assembly-ai-plus-0.0.11.tar.gz |
|---|---|
| Size | 9.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9627052eb9836a6eed9d5120e2b1d3fc900771b7d5e0a32238d38ac6a40c8942
|
|
BLAKE2b-256 checksum How to use checksums |
e359a81f4385aee11cc6c5541ed0aec8319c9eaabb40a5f54a777b07283166df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.4
|
Release files / assembly_ai_plus-0.0.11-py3-none-any.whl
| Download URL | assembly_ai_plus-0.0.11-py3-none-any.whl |
|---|---|
| Size | 11.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1f9487a15deb9874b0ada0d820a12951223d5168b2032879bce1b5978ea44c16
|
|
BLAKE2b-256 checksum How to use checksums |
590bde3d8b2e34efe99742c537b92dce4b173946556471ec290201ca26d64b1c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.4
|
Security for assembly-ai-plus 0.0.11
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.