Skip to main content

AssemblyAI Python SDK.

Project description

AssemblyAI Python SDK

assembly_ai_plus is a Python SDK for Assembly AI. You can read more about Assembly AI here: https://www.assemblyai.com/docs/

Installation

pip install assembly-ai-plus

Usage

Here is the example to extract text from audio file 👇

import assembly_ai
assembly_ai.api_key = YOUR_ASSEMBLY_AI_KEY
response = assembly_ai.submit_url_for_transcription(audio_url='https://bit.ly/3yxKEIY', 
                                                    sentiment_analysis=True)

Output

print(f'Full Transcribe: {all_results.get("text")} \n\n')
print('Sentiment Analysis Details: ', all_results.get('sentiment_analysis_results'))

Full Transcribe: 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. 


Sentiment Analysis Details:  [{'text': 'You know, demons on TV like that.', 'start': 387, 'end': 2347, 'sentiment': 'NEGATIVE', 'confidence': 0.5303722620010376, 'speaker': None}, {'text': 'And and for people to expose themselves to being rejected on TV or, you know, humili humiliated by Fear Factor or, you know.', 'start': 2380, 'end': 11625, 'sentiment': 'NEGATIVE', 'confidence': 0.8029202222824097, 'speaker': None}]

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

assembly_ai_plus-0.0.2.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

assembly_ai_plus-0.0.2-py3-none-any.whl (4.7 kB view hashes)

Uploaded Python 3

Supported by

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