Skip to main content

PyScreech - Audio Performance Library

Project description

CI PyPI Status Badge PyPI - Python Version License: MIT Docs Code style: black DOI

Overview

PyScreech is a toolbox for calculating useful performance metrics associated with audio recordings such as Speech Transmission Index for Public Address Systems (STIPA), Short-Time Objective Intelligibility (STOI), and Word Error Rate (WER).

Getting Started

The easiest way to get started is to install the most recent package from PyPI using:

pip install pyscreech

The PyPI distribution does not come with the StipaV5_CEA.wav file, so that file needs to be obtained to perform STIPA evaluations. If you are installing from the repo (see below), the file is located in the resources directory.

If you would like to install from a local version of the repo, you can use:

pip install .

If you intend to develop on the code, its often useful to do:

pip install -e ."[developer]"

Usage

Example command line usage:

Testing

Try to run

python -m pyscreech.cli STIPA resources/StipaV5_CEA.wav 

Or if you need to point to the StipaV5_CEA.wav explicitly, use

python -m pyscreech.cli STIPA resources/StipaV5_CEA.wav -r path/to/StipaV5_CEA.wav

A STIPA score of 1.0 should be obtained when you compare the reference to itself.

To test a STOI score, run

python -m pyscreech.cli STOI <recording_filename> -r <reference_filename>

To test a WER, run

python -m pyscreech.cli WER <recording_filename> -r <reference_filename>

For more command line options, type

python -m pyscreech.cli -h

All files are expected to be audio files. Any audio file that is readable by the SoundFile module is accepted.

FAQs

Contributing

Pyscreech is an open source project and as such we welcome contributions! Please reach out to seth.s.henshaw@leidos.com if you need help getting started.

Acknowledgment

This material is based upon work supported by the Defense Advanced Research Projects Agency (DARPA) under Contract No. HR001120C0114. Any opinions, findings and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the Defense Advanced Research Projects Agency (DARPA).

pyscreech

Set of Tools to calculate performance characteristics of audio recordings

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

pyscreech-1.0.0.tar.gz (37.0 MB view details)

Uploaded Source

Built Distribution

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

pyscreech-1.0.0-py3-none-any.whl (22.9 kB view details)

Uploaded Python 3

File details

Details for the file pyscreech-1.0.0.tar.gz.

File metadata

  • Download URL: pyscreech-1.0.0.tar.gz
  • Upload date:
  • Size: 37.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for pyscreech-1.0.0.tar.gz
Algorithm Hash digest
SHA256 e02763b7c258880c2bc110321dd65dd944fd143ff65b7bb990cb14be2d35ba1e
MD5 84c55be9bd9c309249317b3ee6d2e791
BLAKE2b-256 fedd33317d4b2e063a86abbb20fa1a92f7a48903e0b579c299e0166e6a1a8373

See more details on using hashes here.

File details

Details for the file pyscreech-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pyscreech-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 22.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for pyscreech-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 902c1a142895d0252345685a81479a4399c0f72f00a49e65124311fb5f238617
MD5 c2f1e6c9b90a0d63875af8b7c4474ce6
BLAKE2b-256 5c69d0b94edba81e440706d10420cebf1bdfda652f299eec37f46af915d67742

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