mlverse / torchaudio

R interface to torchaudio
https://mlverse.github.io/torchaudio/
Other
27 stars 6 forks source link

Importing .wav #40

Closed GitHubGeniusOverlord closed 2 years ago

GitHubGeniusOverlord commented 2 years ago

library(torchaudio) file <- "myfile.wav" transform_to_tensor(tuneR_loader(file))

Leads to immediate abortion of the R session. R-Version: 4.1.2 tuneR 1.3.3.1 torchaudio 0.2.0

I tested with the basic readWave() function from tuneR. It seems, the crash is actually produced by the transform_to_tensor() - function. To reproduce: file <- "myfile.wav" readWave(file) %>% transform_to_tensor()

GitHubGeniusOverlord commented 2 years ago

Reinstallation of R and all packages fixed the issue.