Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/birdnetpi/audio/capture.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,10 @@ def _callback(
def start_capture(self) -> None:
"""Start the audio capture stream."""
try:
# sounddevice expects None for default device, not -1
device_id = self.config.audio_device_index
if device_id == -1:
device_id = None
channels = self.config.audio_channels
target_sample_rate = self.config.sample_rate # What BirdNET expects (48000)

Expand Down
Loading