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
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
assembly_ai_plus-0.0.2.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for assembly_ai_plus-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3aae346210e24412d799a93dcfc82ed71eb32fc3e81b27a4204813acca461a55 |
|
MD5 | b69c93d60dd4f660b4684e19f918b862 |
|
BLAKE2b-256 | 0eac31b1e50606e60f4c30c2c59ef902be81cefc232a120703241861411a4238 |