Answers.Body: <p>you can do that with the package warbleR. The code below saves a couple of sound files (for the sake of the example) and gives you the info you want in a data frame:</p>
  <blockquote>
  <p>library(warbleR)</p>
  <p>data(list = c(&quot;Phae.long1&quot;, &quot;Phae.long2&quot;))</p>
  <p>writeWave(Phae.long1, file.path(tempdir(), &quot;Phae.long1.wav&quot;))</p>
  <p>writeWave(Phae.long2, file.path(tempdir(), &quot;Phae.long2.wav&quot;))</p>
  <p>info_sound_files(path = tempdir())</p>
  </blockquote>
  <p>Cheers</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-10-02T19:17:54.503Z
Answers.LastActivityDate: 2023-10-02T19:17:54.503Z
Answers.UserDisplayName: Marcelo Araya-Salas
Body: <p>I would like to ask if I could retrieve information, such as sample rate, bit rate, length of file, and stereo/mono layout, from multiple .wav files at a time in R, from a file list for example? Most packages only allow me process single sound files. Thank you!</p>
  
Tags: <wav><sound><samplerate>
Title: Retrieving audio information of multiple wav files in r
ThreadText: # Retrieving audio information of multiple wav files in r
  
  (Asked by: username_0 on 2023-10-02)
  
  I would like to ask if I could retrieve information, such as sample rate, bit rate, length of file, and stereo/mono layout, from multiple .wav files at a time in R, from a file list for example? Most packages only allow me process single sound files. Thank you!
  
  **Tags:** wav, sound, samplerate
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2023-10-02. Score: 3
  
  you can do that with the package warbleR. The code below saves a couple of sound files (for the sake of the example) and gives you the info you want in a data frame:
  
  > library(warbleR)
  >
  > data(list = c("Phae.long1", "Phae.long2"))
  >
  > writeWave(Phae.long1, file.path(tempdir(), "Phae.long1.wav"))
  >
  > writeWave(Phae.long2, file.path(tempdir(), "Phae.long2.wav"))
  >
  > info\_sound\_files(path = tempdir())
  
  Cheers
  
  
  ---
  
  