Ed Baker ARCS

I am an interdisciplinary researcher investigating how technology can be used to monitor biodiversity, in particular using bioacoustic and ecoacoustic approaches.

GitHub Profile

Latest publications

Good practice guidelines for long-term ecoacoustic monitoring in the UK

Google Scholar

Talks

11/2023 - Garden Science workshop

10/2023 - IBAC 2023

09/2023 - RSPB/Kelvingrove Museum

05/2023 - British Naturalists' Association

011/2022 - Artifical Intelligence for Natural Sciences

All talks

Notes

Prophalangopsis obscura

Linux audio recipes

All notes

Some thoughts on:

Linux audio recipes

Tools

sox: Sound Exchange

ffmpeg

Mix stero to mono

ffmpeg -i stero.wav -ac 1 mono.wav

Change sample rate of wav file

ffmpeg -i high.wav -ar 44100 low.wav

Change bit depth of wav file

ffmpeg -i high.wav -c:a pcm_s16le low.wav

Concatenating files

Concatenating large numbers of files

This uses sox to concatenate any matching wave files in a directory.

Note that the wav file format is limited to 4GB due to a 32-bit header.

if test -f temp.wav; then
  rm temp.wav
fi

if test -f out.wav; then
  rm out.wav
fi
                                                                                                                         
ls *.wav | sort -n | while read l;
do     
   echo "$l"                                                                                                                                                          
   if [ ! -f temp.wav ]                                                                                                                                         
   then                                                                                                                                                       
      cp $l temp.wav                                                                                                                                            
   else                                                                                                                                                       
      sox temp.wav $l out.wav
      rm temp.wav                                                                                                                                
      cp out.wav temp.wav                                                                                                                                       
   fi
done