I’ve recently completed an extensive survey using AudioMoths and now have hundreds of one-minute recordings with confirmed presence of my target species, spread across a large geographic area. I’d like to upload these to iNaturalist.
Each .mp3 file includes the correct date, time, and GPS data. The problem is that iNaturalist doesn’t seem to read ID3 metadata from audio files—it only pulls EXIF data from images.
Has anyone found a good workflow for this? My current workaround is to create a blank image for each recording and embed the EXIF data there, so I don’t have to manually enter metadata hundreds of times.
This does work, but I still have to manually pair each recording with its corresponding image during upload, which is pretty time-consuming.
I considered bulk uploading via CSV and then attaching the recordings afterward, but that actually seems even slower.
“Just like its namesake the moth, AudioMoth can listen at audible frequencies, well into ultrasonic frequencies”
So the device is NAMED after a moth, rather than being a device that IDs moths based on sound. I guess some moths produce ultrasonic clicks to deter bat predation, by jamming their sonar (echolocation), and some moths produce ultrasonic courtship songs, but not all moths do this.
Hi kevtolan. Thanks for the reply, but this does not really solve the issue. I already have all the mp3 recordings and metadata in a csv. The issue is when I use the uploader, it strips the metadata from the recording, so I need to manually add the date, time and coords.
you’d probably have to use the API(s) to handle this.
the oldest API provides a route for folks to upload sounds (and associate them with a specific observation ID) via POST https://www.inaturalist.org/observation_sounds. this appears to be what the observation page in the website uses to add additional sounds to observations.
the beta-ish v2 API also provides a route to upload sounds (and associate them with a specific observation UUID) via POST https://api.inaturalst.org/v2/sounds or (associating them with a specific observation ID) via POST https://api.inaturalst.org/v2/observation_sounds.
it’s also possible to handle the entire upload process using the API. @jtklein wrote an example in a Juptyter Notebook that uses pyinaturalist to upload observations and photos. you could adapt that to upload observations and sounds instead.