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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file overtalk-0.0.2.tar.gz.
File metadata
- Download URL: overtalk-0.0.2.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.0.1 pkginfo/1.7.1 requests/2.25.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a2d8eb89d66300b29e7e9bea008d3a6f9dc8095b64af47055d132cb76d368c1
|
|
| MD5 |
f699edd92c3007011b88ec578141fb8f
|
|
| BLAKE2b-256 |
fed1812c9bbf4812ee82ff93cea7892257c5a948692d91f3b6a43bd0cb4e46a0
|
File details
Details for the file overtalk-0.0.2-py3-none-any.whl.
File metadata
- Download URL: overtalk-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.0.1 pkginfo/1.7.1 requests/2.25.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24ad8a64ae52e328798cf8ecfcf55808fbdf421b93f389a7ae057d53de608444
|
|
| MD5 |
bdd1bcca177df9a83407f5cd050d3c0f
|
|
| BLAKE2b-256 |
23ca0d7c756a9433b1c71e89054b539e9c114b1097f4497aee8bc8efe523c749
|