- Python 3.6+
- AssemblyAI API Key
- Install SDK
pip install assemblyai
After running the script, you should see results like this printed in the terminal ex:
Speaker A spoke for 60.45% of the time.
Speaker B spoke for 39.55% of the time.
For sentiment analysis the output will look like below in the terminal ex:
The overall sentiment for Speaker A was positive.
The overall sentiment for Speaker B was neutral.
A file named utterances.txt file will be generated and contain contain formatted speaker-labeled text like:
Speaker A: "Hello what is your name?"
Speaker B: "Hi, my name is Jordy."