Skip to main content

Voice Foundation Pathological Voice Quality Database Reader module

Project description

PyPI PyPI - Status PyPI - Python Version GitHub

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


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.dev5.tar.gz (29.4 kB view details)

Uploaded Source

Built Distribution

pvqd-0.1.0.dev5-py3-none-any.whl (27.0 kB view details)

Uploaded Python 3

File details

Details for the file pvqd-0.1.0.dev5.tar.gz.

File metadata

  • Download URL: pvqd-0.1.0.dev5.tar.gz
  • Upload date:
  • Size: 29.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for pvqd-0.1.0.dev5.tar.gz
Algorithm Hash digest
SHA256 2edf6f7027af8fdb364668c1fc8519ed0a169d4944cdd97d4df887e47f4aa14e
MD5 ab1f5d1ab83cc77211517888998c1fc5
BLAKE2b-256 8521638e9effc9ab40c24b40632116eb4ed754b8453b892bfb6a020783fd87a0

See more details on using hashes here.

File details

Details for the file pvqd-0.1.0.dev5-py3-none-any.whl.

File metadata

  • Download URL: pvqd-0.1.0.dev5-py3-none-any.whl
  • Upload date:
  • Size: 27.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for pvqd-0.1.0.dev5-py3-none-any.whl
Algorithm Hash digest
SHA256 770b7e139932d5308fafaaab990fe84a7af6497a2661e46f52268fc08b706255
MD5 41940f2ad84ba0ebe75ac23c23afdcb8
BLAKE2b-256 636cbe47bf4ce9ec13ca161a979ebc3851e11f77581fcfd1bc22cc3f684a7eba

See more details on using hashes here.

Supported by

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