divime_wordcount: run the DiViMe word count estimator

Description Usage Arguments Details Value

View source: R/divime_wordcount.R

Description

run the DiViMe word count estimator

Usage

1
2
3
divime_wordcount(audio_loc, divime_loc, speech_annos = "opensmile",
  vmstart = TRUE, vmshutdown = TRUE, messages = TRUE,
  overwrite = FALSE, ...)

Arguments

audio_loc

character, path to the audio files

divime_loc

character, path to the DiViMe directory with running VM

speech_annos

character, what kind of speech detection is available, see details

vmstart

logical, perform a check whether the VM is running and if not start it up (by default TRUE). Turning this off, will speed up the function a little bit, but requires that you are sure that the VM is indeed running in divime_loc.

vmshutdown

logical, should the VM be shut down after the operations are done (by default TRUE)

messages

logical, should the file names of each processed file be printed

overwrite

logical, should output files be overwritten if they already exist (default is FALSE)

...

further arguments for copy_audio, see details

Details

speech_annos needs to be one of the following: "noisemes", "opensmile", "tocombo", "yunitator_old" or "yunitator_english". The first three can be obtained from divime_sad and the latter two from divime_talkertype.

In case you choose speech_annos = "yunitator_english" you might not get results unless you append your source audio file with some silence. This can be done inside the function here, and requires you setting two additional arguments to divime_wordcount: appendsilence = 5 adds 5 seconds of silence, and pathtosox= requires the location of sox. See copy_audio and set_binaries for more details.

Value

a data.frame with the locations of the created rttm files and some diagnostics


gobbios/avutils documentation built on Feb. 19, 2020, 9:44 a.m.