Voice Foundation Pathological Voice Quality Database Reader module
Project description
This Python module provides functions to retrieve data and information easily from Voice Foundation’s Pathological Voice Quality Database.
This module currently does not retrieve the database itself on its own. User must download and extract the files first from https://prod-dcd-datasets-cache-zipfiles.s3.eu-west-1.amazonaws.com/9dz247gnyb-2.zip
Install
pip install pvqd
Use
from pvqd import PVQD
# to initialize (must call this once in every Python session)
pvqd = PVQD('<path to the root directory of the extracted database>')
# to get a copy of the full database with averaged CAPE-V scores
df = pvqd.query(include_cape_v=True)
# to get age, gender, and mean GRBAS grade scores
df = pvqd.query(["Age", "Gender"], include_grbas='grade')
# to get a dataframe of WAV files and start and ending timestamps of all /a/ segment
df = pvqd.get_files('/a/')
# to iterate over '/a/' acoustic data of female participants along with
# age and mean GRBAS scores
for id, fs, x, auxdata in pvqd.iter_data('/a/',
auxdata_fields=["Age"],
include_grbas=True,
Gender="Female"):
# run the acoustic data through your analysis function, get measurements
params = my_analysis_function(fs, x)
# log the measurements along with the age and GRBAS info
my_logger.log_outcome(id, *auxdata, *params)
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
pvqd-0.1.0.dev1.tar.gz
(14.4 kB
view hashes)
Built Distribution
pvqd-0.1.0.dev1-py3-none-any.whl
(13.8 kB
view hashes)
Close
Hashes for pvqd-0.1.0.dev1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d91d0d4f9edeb039b7c68809dfdbd7397b92700eacb8a48285b747843bc34a5c |
|
MD5 | 5a14f20a33b76d2ca5615a01b02d9cf7 |
|
BLAKE2b-256 | 37feb4c189b5098f40fe24d7dff94c3ab5a1d6b5dc1aef5792b9eafef55b23b5 |