Questions tagged [r]

Questions related to the R programming language r-project.org

Filter by
Sorted by
Tagged with
3 votes
2 answers
62 views

How to convert stereo audio files to mono?

I have multiple stereo .wav recordings which I want to convert into mono files for further analysis. Is there a way in RavenPro/R/Audacity to batch convert them to mono sound files (channel 1 or ...
indobatrachus's user avatar
1 vote
2 answers
29 views

Difference TFSD from seewave and scikit-maad

I noticed a difference in output when computing the TFSD using the seewave R package and the scikit-maad implementation in python. Is there any justification and is it possible to get the same result ...
Antoine Bernabeu's user avatar
2 votes
1 answer
80 views

Is it possible to calculate the SPL of a sound from a wav audio file?

I recorded a frog's call at a distance of 1 m, with a Tascam DR40x recorder and its internal microphone. I want to know if there is a way to calculate what is the SPL in dB of that call or/and the ...
Carlos A. Flores's user avatar
2 votes
2 answers
36 views

Can't reconcile amplitude from getRMS (soundgen) with output of meanspec (seewave) in R

I want to calculate the sound pressure level (in dB) of a wave and then display the mean power spectrum. The issue I face is that the SPL value I get from getRMS() is very different from the mean ...
Tom Quigley's user avatar
5 votes
2 answers
136 views

How to convert relative db to db SPL knowing microphone specifications?

Similarly to this discussion (Is it common to have a negative-positive dB range in underwater spectrograms?), I used the 'seewave' R package to plot the below spectrograms. I limited the coloured ...
Andrea's user avatar
  • 53
2 votes
2 answers
56 views

dynaSpec R package is creating an MP4 file with only audio and no video

I am trying to visualize a short recording of an insect, using a WAV file, using the scrolling_spectro command in the R package ...
leafhooper's user avatar
3 votes
2 answers
76 views

How to extrapolate time (as hour) per each recording (.wav file) identified in BirdNET?

I deployed some passive acoustic devices to record bird song, and I am using birdNET for the first time. I downloaded the Windows version of the app, set the parameters I preferred and, after running ...
Parus major's user avatar
2 votes
1 answer
94 views

How to preserve amplitude scale from original .wav audio file to output .wav file in seewave and tuneR packages after filtering

I am currently working on a project where I would like to read in an audio file, apply a butterworth filter, and then export the filtered audio file while preserving the scale of the amplitude from ...
Danielle Fradet's user avatar
2 votes
1 answer
77 views

Error using lts() from R package seewave

I am dealing with an unusual error in trying to create long-term spectral averages with the lts() function from R package seewave. I have a 1 h long time series made up of audio files of 5 minutes ...
Mario Rollo's user avatar
3 votes
1 answer
75 views

How to decode .dat files obtained from SonoTrack?

Disclaimer: I have advanced knowledge of Python, R, and Matlab, so we can skip the basics (such as how to load a file into a programing environment). The quest is to somehow decode data from .dat ...
Dan's user avatar
  • 53
3 votes
1 answer
50 views

Acoustic Complexity Index total is the same for every file

I'm calculating Acoustic Complexity Index (ACI) for each 30 minute audio file. However each file total is always the same. "30.179" for max freq set at 500 Hz, "34.86996" for max ...
Anna R's user avatar
  • 31
5 votes
1 answer
65 views

Extracting Click trains (from the click train module) in R

I am processing some data collected with a towed array, where we aimed to detect a species of porpoise in Peru. After setting up the click detector, I am trying now to add the click train detector ...
Ruth's user avatar
  • 51
3 votes
2 answers
55 views

PSD calculation using seewave

I'm trying to calculate a mean PSD value from each .wav file inside a folder with many sound files. I'm using seewave to calculate this but having trouble finding a nice result for my further ...
Martin's user avatar
  • 31
6 votes
2 answers
79 views

Editing av_spectrogram_video R

I'm trying out producing some spectrogram videos in R for presentations and sharing through av_spectrogram_video (from the av package), but would like to crop the spectrogram to zoom in on lower ...
Maryann's user avatar
  • 61
5 votes
2 answers
59 views

What method is typically used to compare whole song bouts between 3 subspecies?

I used Raven Pro and obtained 7 song parameters from the whole song selection tables. The objective is to see whether variation exists between the 3 subspecies. There's a common song motif/bout ...
ana-alcantara's user avatar
3 votes
2 answers
129 views

Spectrograms with ggplot2?

My question is related to this one I'm looking for a way of plotting beautiful spectrograms that would be compatible with ggplot2 in R, so that I can add some lines, points, annotations, or control ...
lframond's user avatar
  • 1,024
5 votes
0 answers
46 views

how to describe temporal patterns of anthropogenic noise pollution - ama(), Ht(), and ...?

I'm looking into the effects of anthropogenic noise pollution from various sources on birds' behaviors. Human-induced sounds have different temporal patterns - broadly, from continuous to sparse in ...
Yael Lehnardt's user avatar
5 votes
1 answer
123 views

Is it common to have a negative-positive dB range in underwater spectrograms?

I am using the "seewave" R package to plot spectrograms in R. Since my recordings were taken underwater, I specified as reference value 1 μPa. Here is my code: ...
Morgane's user avatar
  • 457
10 votes
1 answer
73 views

What statistical method should I use to see whether a birdsong changed in the span of ~20 years

For my current research, I am trying to analyze a birdsong located on two islands. For ~20 years, it was considered as one species but two years ago they were split and considered as two. I wanted to ...
ana-alcantara's user avatar
6 votes
1 answer
206 views

How to make a spectrogram in R

I have a a wave file and I need to make a spectrogram in R. I also need to be able to look at a specific time of the whole recording in the spectrogram. Anybody knows how to?
Julia's user avatar
  • 61
5 votes
3 answers
154 views

How to automatically ignore sections of sound files - crop wav files before processing or manipulate database after?

I am processing a large amount of SoundTrap data in PAMGuard. In some cases, the calibration tones were enabled during data collection, meaning they appear at the beginning of each sound file, and ...
Morgane's user avatar
  • 457
12 votes
1 answer
183 views

Preferred R code settings/packages for publication-level spectrograms

I need to include spectrograms in a manuscript and was wondering what peoples' preferred R packages/code settings/etc. were for high-quality spectrogram plots? I know there are a bunch of options in ...
Carly Batist's user avatar
  • 3,370
7 votes
0 answers
101 views

Error using split_acoustic_data() in R package ohun

INITIAL POST: One of my first times here. I am trying to use a function called split_acoustic_data() in ohun, an R package for processing bioacoustic data. The process involves use of a class of ...
ksh530's user avatar
  • 171
9 votes
2 answers
84 views

Fuzzy clustering code for vocal repertoire analysis/classification?

I study a lemur species that has pretty graded calls, and it can be difficult to objectively draw the line between what is and is not a different call type. I've seen some recent work looking at fuzzy ...
Carly Batist's user avatar
  • 3,370
9 votes
4 answers
162 views

How to calculate 10 dB duration in R

I'm working with dolphins echolocation clicks and I'm trying to get the duration of each click. One criteria used for the duration is to get the points where the signal declines 10dB to both sides ...
Constanza Ordoñez's user avatar
5 votes
1 answer
104 views

Uncalibrated results and non-recognition of timestamp with Meta function of PAMGuide in R

I need to calculate calibrated soundscape metrics for 2 months continuous recordings made with SoundTraps HF600, so I thougth about using PAMGuide (Merchant et al. 2015). I've tried using the Meta ...
LaraLopes's user avatar
11 votes
4 answers
306 views

Alternative to tuneR::readWave function in R?

tuneR's readWave function is good and works pretty quickly for loading audio recordings into R. But I was wondering if there are ...
EcologyTom's user avatar
36 votes
8 answers
4k views

MATLAB versus Python versus R - what are the advantages and disadvanatges for bioacoustics? [closed]

MATLAB, Python and R are commonly used in bioacoustics. Whilst all three languages are excellent choices, it is difficult to ask entrants into bioacoustics to learn all three. I have tried to put ...
user avatar
10 votes
1 answer
84 views

How do you amplify all sounds in a directory in R?

I am preparing short sound clips to upload to a citizen science data analysis project, and realize that the sound levels are all too low for users to hear properly. I'm familiar with the tuneR and ...
ASimonis's user avatar
  • 1,888
17 votes
4 answers
180 views

Convolutional Neural Network (CNN) where to start?

I am finally getting into signal identification and would like to test Convolutional Neural Network (CNN). I am working in R and willing to do Python. What packages are you using in those two ...
Amandine Gasc's user avatar
  • 1,512
9 votes
1 answer
92 views

Calculate noise exceedance levels - passive acoustic monitoring

I am trying to describe the acoustic environment at a nature reserve based on continuous passive acoustic monitoring. I am using calibrated SM4 (Wildlife acoustics). KaleidoscopePro does provide batch ...
Yael Lehnardt's user avatar
24 votes
12 answers
729 views

What is an easy way to split .wav files using R or Matlab?

I have some very long .wav files that are taking a long time to process. There are only short sections within this longer file that I'm interested in analysing. Is there an efficient way to split ...
EmmaL's user avatar
  • 737
1 vote
1 answer
94 views

How to shift timestamps in multiple sequential file names (wav files, from bioacoustic monitoring) using R

I deployed passive acoustic recorders to detect animal calls but on one of my devices the date & time settings got messed up and reverted to the default (Jan 1, 2000). And then the device recorded ...
Carly Batist's user avatar
  • 3,370