Metadata-Version: 2.1
Name: conversations
Version: 0.12.0
Project-URL: Documentation, https://github.com/rob-luke/conversations#readme
Project-URL: Issues, https://github.com/rob-luke/conversations/issues
Project-URL: Source, https://github.com/rob-luke/conversations
Author-email: Robert Luke <code@robertluke.net>
License-File: LICENSE.txt
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.10
Description-Content-Type: text/markdown

# Conversations

[![PyPI - Version](https://img.shields.io/pypi/v/conversations.svg)](https://pypi.org/project/conversations)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/conversations.svg)](https://pypi.org/project/conversations)


Rich analysis of conversations.

## Installation

```console
pip install conversations
```


## Usage

```python
from conversations import report
from conversations.transcribe import whisper
from conversations.diarise import simple


audio_file = '/path/to/audio.mp4'

transcript = whisper.process(audio_file=audio_file, model_name="tiny.en")
diarisation = simple.process(audio_file=audio_file, num_speakers=2)
html_report = report.generate(transcript=transcript, audio_file=audio_file, diarisation=diarisation)

with open('conversation.html', 'w') as f:
    f.write(html_report.render())
```



