Skip to contents

birdnet_predict() runs a loaded model. What it predicts depends on the model:

Usage

birdnet_predict(model, ...)

Arguments

model

A BirdNET model object, see birdnet_load().

...

Arguments for the model-specific method.

Value

An S3 prediction object; convert it with as.data.frame() or save it with birdnet_write().

Examples

if (FALSE) { # \dontrun{
model <- birdnet_load()
audio_file <- system.file("extdata", "soundscape.mp3", package = "birdnetR")
predictions <- birdnet_predict(model, files = audio_file)
as.data.frame(predictions)

geo <- birdnet_load(type = "geo")
as.data.frame(birdnet_predict(geo, latitude = 50.83, longitude = 12.92, week = 18L))
} # }