KayPENTAX Disordered Voice Database Reader module
Project description
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
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
File details
Details for the file kpdvdb-0.6.2.tar.gz
.
File metadata
- Download URL: kpdvdb-0.6.2.tar.gz
- Upload date:
- Size: 15.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 654b1fe32184d118802457567734b9c3a1e43e405e1fa4b03b77ed6ec2cead36 |
|
MD5 | 60c954e81d51a94d7f7f3fae9ba3570c |
|
BLAKE2b-256 | e8b9d3e556f91eae99ff96d02b52bdcd910ea599661877d1522901987531622a |
File details
Details for the file kpdvdb-0.6.2-py3-none-any.whl
.
File metadata
- Download URL: kpdvdb-0.6.2-py3-none-any.whl
- Upload date:
- Size: 14.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f002b86f9e8ba9f6cac30b60c7740ab7e5b0a0366e2c8d5c722021833db4dead |
|
MD5 | 135bcdab73f4dd9ceba4138e0409efc0 |
|
BLAKE2b-256 | 4ba1aad551fff9acc79564985d0dfdaebdf143bdc4136c1d7d89f9e3ad378f4b |