# BirdHear — Full Technical & AI Agent Reference (`llms-full.txt`) > **BirdHear** (`https://birdhear.com`) is a real-time in-browser AI bioacoustic bird sound identifier, live 48 kHz spectrogram analyzer, regional & seasonal species plausibility filter, and unattended WAV clip recorder. Created by **Putervision** (`https://putervision.com`) and paired with **BirdNoises** (`https://birdnoises.com`). --- ## 1. Application Overview & Architecture - **Production URL**: `https://birdhear.com/` - **Sibling Application**: `https://birdnoises.com/` (supports deep-linking via `https://birdnoises.com/?species=Genus_species`) - **Publisher**: Putervision (`https://putervision.com`) - **Contact**: `contact@birdhear.com` / `contact@birdnoises.com` - **Runtime**: 100% client-side Progressive Web App (PWA) with offline Service Worker caching (`ngsw.json`), WebGL/CPU Web Worker acoustic inference, Web Audio API (`48,000 Hz` `AudioWorklet`), and IndexedDB storage (`birdhear_vault_db`). --- ## 2. Public Data Endpoints (Static JSON & Audio) AI agents and HTTP clients can fetch the following static resources directly without authentication (`Access-Control-Allow-Origin: *`): 1. **`GET /models/birdnet-v2.4/labels.json`** - **Content-Type**: `application/json` - **Description**: Array of `6,522` strings (`6,511` bird species + `11` non-bird environmental classes) formatted as `"Scientific Name_Common Name"` (e.g., `"Turdus migratorius_American Robin"`, `"Gavia immer_Common Loon"`). 2. **`GET /data/bioregions.json`** - **Content-Type**: `application/json` - **Description**: Curated birding bioregions and global hotspots with `id`, `name`, `lat`, `lon`, and `bbox` (`[minLat, minLon, maxLat, maxLon]`). 3. **`GET /data/gazetteer.json`** - **Content-Type**: `application/json` - **Description**: Offline geographic gazetteer covering countries, US states, and Canadian provinces with `id`, `name`, `type`, `lat`, `lon`, and `bbox`. 4. **`GET /audio/sample.wav`** - **Content-Type**: `audio/wav` - **Description**: Reference `48,000 Hz` mono WAV wildlife recording used by the built-in **Try Sample Audio** feature. 5. **`GET /openapi.json`** - **Content-Type**: `application/json` - **Description**: OpenAPI 3.1.0 specification describing all static endpoints and schemas. 6. **`GET /.well-known/agent.json` (or `GET /agent.json`)** - **Content-Type**: `application/json` - **Description**: Machine-readable AI Agent Card describing capabilities, skills, DOM selectors, and the `window.birdhearAgent` JavaScript bridge. --- ## 3. Programmatic Browser Agent API (`window.birdhearAgent`) When inspecting or automating BirdHear in a browser environment (Playwright, Puppeteer, Selenium, Chrome Extension, WebMCP, or Computer Use), use `window.birdhearAgent`: ### Methods ```ts interface BirdHearAgentBridge { /** Returns application metadata, version, engine status, and available agent methods */ getAppInfo(): { name: 'BirdHear'; url: 'https://birdhear.com'; publisher: 'Putervision'; publisherUrl: 'https://putervision.com'; siblingUrl: 'https://birdnoises.com'; contactEmails: ['contact@birdhear.com', 'contact@birdnoises.com']; engineStatus: 'uninitialized' | 'loading' | 'ready' | 'error'; totalBirdSpecies: number; activeTab: 'live' | 'vault' | 'species' | 'guide'; methods: string[]; }; /** Returns live monitoring status and counters */ getStatus(): { engineStatus: string; backend: string; isListening: boolean; isPlayingSample: boolean; isPredicting: boolean; elapsedSeconds: number; liveDetectionCount: number; suppressedDetectionCount: number; vaultClipCount: number; uniqueSpeciesCaptured: number; plausibleSpeciesCount: number; region: { mode: string; placeLabel: string; lat: number; lon: number; week: number; }; }; /** Plays and classifies the bundled /audio/sample.wav recording (works without a microphone) */ runDemoSample(): Promise; /** Starts live microphone monitoring */ startMicrophone(): Promise; /** Stops active microphone or sample monitoring */ stopMicrophone(): void; /** Returns current live detections (passed and regionally suppressed) */ getLiveDetections(): { passed: Array<{ commonName: string; scientificName: string; confidence: number; geoScore: number | null; birdType: string; tier: 'high' | 'medium' | 'low'; }>; suppressed: Array<{ commonName: string; scientificName: string; confidence: number; geoScore: number | null; outOfRange: boolean; }>; }; /** Returns all captured 3.0s WAV clips metadata from the IndexedDB Clip Vault */ getVaultClips(): Array<{ id: string; commonName: string; scientificName: string; confidence: number; occurrenceCount: number; firstHeardAt: number; lastHeardAt: number; peakFreqHz: number; starred: boolean; outOfRange: boolean; birdNoisesUrl: string; }>; /** Returns the aggregated unique species leaderboard */ getSpeciesRollup(): Array<{ commonName: string; scientificName: string; birdType: string; totalOccurrences: number; clipCount: number; maxConfidence: number; avgConfidence: number; birdNoisesUrl: string; }>; /** Returns expected local area species for the active region and week */ getLocalAreaSpecies(limit?: number): Array<{ commonName: string; scientificName: string; geoScore: number; birdType: string; }>; /** Switches the active workspace tab */ selectTab(tab: 'live' | 'vault' | 'species' | 'guide'): void; /** Sets the geographic filter by coordinates */ setCoordinates(lat: number, lon: number, label?: string): void; /** Builds a deep-link URL into BirdNoises for a given species */ getBirdNoisesLink(scientificName?: string): string; } ``` --- ## 4. Semantic DOM Selectors (`data-agent-action`) For visual/DOM browser agents that click elements directly: - `[data-agent-action="toggle-mic"]` — Start or stop live microphone capture - `[data-agent-action="try-sample"]` — Play & classify bundled reference bird audio - `[data-agent-action="upload-audio"]` — Upload an audio file (`.wav`, `.mp3`, `.ogg`, `.flac`) - `[data-agent-action="open-settings"]` — Toggle acoustic & audio device settings drawer - `[data-agent-action="install-pwa"]` — Trigger PWA install flow or instructions modal - `[data-agent-action="tab-live"]` — Switch to Live Monitor tab - `[data-agent-action="tab-vault"]` — Switch to Clip Vault timeline tab - `[data-agent-action="tab-species"]` — Switch to Species Detected rollup tab - `[data-agent-action="tab-guide"]` — Switch to Local Area Guide tab