Skip to main content

No project description provided

Project description

Conversations

PyPI - Version PyPI - Python Version Tests

Introducing "Conversations" - a Python package designed to explore the true potential of conversational analysis. With its ability to transcribe, diarise, and generate visually appealing HTML reports, "Conversation" empowers you to delve deeper into the intricacies of human communication. Recognizing that conversations are brimming with meaning conveyed not just through language, but also through key acoustic features like loudness, intonation, and speech rate, this package brings forth an indispensable tool for understanding and interpreting the wealth of information embedded in everyday exchanges. Conversations enables you to analyze and comprehend the complex world of human interaction.

Documentation

Comprehensive documentation including overview, api, and examples can be found here.

Installation

pip install conversations

Usage

from pathlib import Path
from conversations import Conversation

# Information about the conversation
audio_file = Path('/path/to/audio.mp4')
speaker_mapping={"0": "Alice", "1": "Bob", "2": "Sam"}

# Load the conversation
conversation = Conversation(recording=audio_file, speaker_mapping=speaker_mapping)

# Process the conversation
conversation.transcribe()
conversation.diarise()
conversation.save()

# Generate an interactive HTML report
html_report = conversation.report()
with open('conversation.html', 'w') as f:
    f.write(html_report.render())

# Generate an text file of the conversation
text_report = conversation.export_text()
with open('conversation.txt', 'w') as f:
    f.write(text_report)

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

conversations-0.22.0.tar.gz (13.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

conversations-0.22.0-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file conversations-0.22.0.tar.gz.

File metadata

  • Download URL: conversations-0.22.0.tar.gz
  • Upload date:
  • Size: 13.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/37.3 requests/2.28.2 requests-toolbelt/0.10.1 urllib3/1.26.15 tqdm/4.65.0 importlib-metadata/6.1.0 keyring/23.13.1 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.10

File hashes

Hashes for conversations-0.22.0.tar.gz
Algorithm Hash digest
SHA256 9b84cf2927cadc119228f68919fe5cd29738fad5ec9e4ba05d9646acf25fb881
MD5 1f12680078a7a0c606e45dcb8f2f3e36
BLAKE2b-256 146660898de45efd15b02172db1e479bd6c1be3074127e1e6ee336665a7e3f51

See more details on using hashes here.

File details

Details for the file conversations-0.22.0-py3-none-any.whl.

File metadata

  • Download URL: conversations-0.22.0-py3-none-any.whl
  • Upload date:
  • Size: 11.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/37.3 requests/2.28.2 requests-toolbelt/0.10.1 urllib3/1.26.15 tqdm/4.65.0 importlib-metadata/6.1.0 keyring/23.13.1 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.10

File hashes

Hashes for conversations-0.22.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8c48a7ed647745363364a468da678e3029f9a564e5e5eda781c0f3847c0a2428
MD5 3d9cd48314c8783cfa3d8d966e28d3bf
BLAKE2b-256 dad14bf8fca1c41ae8996f0dfddcae0e3393780e17a8de88dc8e406730806b39

See more details on using hashes here.

Supported by

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