Skip to main content

Computes duration of overtalk in a stereo WAV file.

Project description

overtalk

This module computes total overtalk time in seconds in a stereo WAV file, which occurs when both channels carry audio event. In addition, it also calculates total silence time, when none of the channels contain audio event and total talk time for both channels, when audio event was detected. It can also accept two mono WAV files. Consult https://auditok.readthedocs.io for supported keyword arguments. This is meant to analyze audio files of phone conversations, one channel carrying the audio of caller and the other of the callee.

example

>>> from overtalk import Overtalk
>>> overtalk = Overtalk(
        energy_threshold=50,
        analysis_window=0.1,
        min_dur=0.2,
        max_dur=10,
        max_silence=0.2
    )
>>> overtalk.load("sample.wav")
>>> print(overtalk.overtalk)
3.25

Requirements

  • Python 3.x
  • Auditok

License

MIT, see: LICENSE.txt

Author

Szabolcs Szokoly sszokoly@pm.me

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

overtalk-0.0.2.tar.gz (4.2 kB view hashes)

Uploaded Source

Built Distribution

overtalk-0.0.2-py3-none-any.whl (4.3 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