**DEPRECATED:** This S3 function is deprecated. Use the R6 interface instead:
Sound$new(file_path)
Examples
tmp <- tempfile(fileext = ".wav")
Sound$create_tone(frequency = 440, duration = 0.2)$save(tmp)
# Old S3 approach (DEPRECATED)
sound <- read_sound(tmp)
#> Warning: read_sound() is deprecated and will be removed in v6.0.0. Use Sound$new(file_path) instead. For channel extraction, use sound$extract_channel(channel).
# New R6 approach (RECOMMENDED)
sound <- Sound$new(tmp)
unlink(tmp)