This function reads multiple files from the folder. The first argument is the path, the second argument is the type of files to read.

read_from_folder(path, type = "textgrid")

Arguments

path

to a folder with multiple sound files.

type

should be one of the following: "duration", "audacity", "eaf", "exb", "flextext", "formant", "intensity", "picth", "srt", "textgrid"

Author

George Moroz <agricolamz@gmail.com>

Examples


read_from_folder(system.file("extdata", package = "phonfieldwork"), "eaf")
#>    tier id content       tier_name tier_type time_start time_end   source
#> 9     1  1               intervals     praat      0.000    0.012 test.eaf
#> 10    2  1         empty_intervals     praat      0.000    0.012 test.eaf
#> 11    1  2       t       intervals     praat      0.012    0.248 test.eaf
#> 12    2  2       C empty_intervals     praat      0.012    0.248 test.eaf
#> 1     1  3       e       intervals     praat      0.248    0.396 test.eaf
#> 2     2  3       V empty_intervals     praat      0.248    0.396 test.eaf
#> 3     1  4       s       intervals     praat      0.396    0.512 test.eaf
#> 4     2  4       C empty_intervals     praat      0.396    0.512 test.eaf
#> 5     1  5       t       intervals     praat      0.512    0.652 test.eaf
#> 6     2  5       C empty_intervals     praat      0.512    0.652 test.eaf
#> 7     1  6               intervals     praat      0.652  300.000 test.eaf
#> 8     2  6         empty_intervals     praat      0.652  300.000 test.eaf