Skip to contents

Try to guess the ARU type from a file path

Usage

guess_ARU_type(path)

Arguments

path

Character. Path to wave file

Value

Tibble with columns 'manufacturer', 'model', and 'aru_type'

Examples


get_pattern("pattern_aru_type")
#>             barlt               SMM           SM(\\d)           S(\\d)A 
#>          "BAR-LT" "Song Meter Mini"  "Song Meter \\1"  "Song Meter \\1" 

guess_ARU_type("/path/to/barlt/file.wav")
#> # A tibble: 1 × 3
#>   manufacturer  model  aru_type
#>   <chr>         <chr>  <chr>   
#> 1 Frontier Labs BAR-LT BARLT   

guess_ARU_type("/path/to/sm/S4A2342.wav")
#> # A tibble: 1 × 3
#>   manufacturer       model        aru_type 
#>   <chr>              <chr>        <chr>    
#> 1 Wildlife Acoustics Song Meter 4 SongMeter