Skip to main content

KayPENTAX Disordered Voice Database Reader module

Project description

PyPI PyPI - Status PyPI - Python Version GitHub

This Python module provides functions to interact with KayPENTAX Disordered Voice Database

This module DOES NOT provide the database itself. KayPENTAX Disordered Voice Database is a (discontinued) commercial product, an addon option to KayPENTAX’s Computerized Speech Lab (CSL).

For faster access to the data, copying the database files from the CD-ROM to a local hard drive is highly recommended.

Install

pip install kpdvdb

Use

from kpdvdb import KPDVDB

# to initialize (must call this once in every Python session)
kpdvdb = KPDVDB('<path to CDROM drive or root directory of the database>')

# to list all the data fields
print(kpdvdb.get_fields())

# to list categorical fields' unique values
print(kpdvdb.get_sexes()) # genders
print(kpdvdb.get_locations()) # pathology sites
print(kpdvdb.get_natlangs()) # native languages
print(kpdvdb.get_origins()) # races
print(kpdvdb.get_diagnoses()) # diagnoses

# to get a copy of the full database
df = kpdvdb.query(include_diagnoses=True)

# to get age, gender, diagnoses, and MDVP measures of non-smoking
# subjects with polyp or paralysis, F0 between 100 and 300 Hz
df = kpdvdb.query(["AGE","SEX","DIAGNOSES","MDVP"],
                  DIAGNOSES=["vocal fold polyp","paralysis"],
                  Fo=[100,300],
                  SMOKE=False)

# to get the list of AH NSP files of normal subjects
nspfiles = kpdvdb.get_files('ah',NORM=True)

# to iterate over 'rainbow passage' acoustic data of female pathological subjects
for fs, x, info in kpdvdb.iter_data('rainbow',
                                    auxdata_fields=["AGE","SEX"],
                                    NORM=False, SEX="F"):
  # run the acoustic data through your analysis function, get measurements
  params = my_analysis_function(fs, x)

  # log the measurements along with the age and gender info
  my_logger.log_outcome(*info, *params)

NOTE

Because the database is not public, this module cannot be tested for various platforms via GitHub Action. If you encounter any issues, please post it on GitHub.

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

kpdvdb-0.6.3.tar.gz (15.6 kB view details)

Uploaded Source

Built Distribution

kpdvdb-0.6.3-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

Details for the file kpdvdb-0.6.3.tar.gz.

File metadata

  • Download URL: kpdvdb-0.6.3.tar.gz
  • Upload date:
  • Size: 15.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.22

File hashes

Hashes for kpdvdb-0.6.3.tar.gz
Algorithm Hash digest
SHA256 54bdb97a94c3ff1ecc8089f720d54020695c976ea73c0644c2e09395f9121bc2
MD5 13a5f859ece6802faa141f79fc4e2654
BLAKE2b-256 22d4adcd831ec5c10ca4a67498a109bca4be74dff39b6d6e2846b5505640aeeb

See more details on using hashes here.

File details

Details for the file kpdvdb-0.6.3-py3-none-any.whl.

File metadata

  • Download URL: kpdvdb-0.6.3-py3-none-any.whl
  • Upload date:
  • Size: 14.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.22

File hashes

Hashes for kpdvdb-0.6.3-py3-none-any.whl
Algorithm Hash digest
SHA256 58d5ff609df0497f597d18d1986a732816f72791b5e63478f6fa90b271285f36
MD5 73e958b2bb439b05376ad3daf67f278a
BLAKE2b-256 b33c4a1086db00b4eef7460411a8783c466c16cf33b79aadc546ea128d9ded35

See more details on using hashes here.

Supported by

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