match_parameters: Select superassp DSP function parameters based on metadata

View source: R/reindeeR_signalextensions.R

match_parametersR Documentation

Select superassp DSP function parameters based on metadata

Description

This function takes an Emu database handle and a function defined in superassp or a named package, and outputs a tibble::tibble containing function paramers to use for each bundle. The function parameters are derived from the database of age and gender specific settings obtained from in the literature based Gender and Age metadata information set for the bundle.

Usage

match_parameters(
  emuDBhandle,
  onTheFlyFunctionName,
  onTheFlyParams = NULL,
  metadata.defaults = list(Gender = NA, Age = 35),
  recompute = FALSE,
  package = "superassp"
)

Arguments

emuDBhandle

The Emu database handle.

onTheFlyFunctionName

The name of the digital speech processing function

onTheFlyParams

If default parameters are given, they are applied to all bundles / files, overwriting parameters set based on metadata.

metadata.defaults

Default values for metadata. Usually used for setting Age and Gender for bundles missing that information.

recompute

If TRUE the Age and Gender specific DSP settings will be recomputed from the database. Please see get_metadataParameters for more information.

package

Value

A tibble::tibble with one row per bundle / session and with extra columns containing parameters to apply.

Examples

retuire(superassp)
reindeer:::create_ae_db(verbose = TRUE) -> emuDBhandle
reindeer:::add_dummy_metadata(emuDBhandle)
 mp <- match_parameters(emuDBhandle,
 onTheFlyFunctionName = "forest",onTheFlyParams = list(nominalF1=200),metadata.defaults = list(Age=35,Gender=NA)))
print(mp)


humlab-speech/reindeer documentation built on May 21, 2023, 4:43 p.m.