Skip to main content
Use device.calculateAudioFingerprint() to generate a Chromaprint fingerprint from a recorded audio file and compare it against a known reference. Chromaprint supports fuzzy matching — small differences in volume or encoding don’t affect the result, making it resilient to minor variations in playback. See the iOS Device Reference for the full API.
Store your reference audio file in team storage and reference it via process.env.TEAM_STORAGE_DIR. See Upload files for instructions. stopSpeakerRecording() automatically calculates a fingerprint — you only need to call calculateAudioFingerprint() separately for the reference file.

Examples

Compare recorded audio against a reference

When to use

  • Your app plays audio and you need to verify the correct track or sound effect played.
  • Your app uses text-to-speech and you need to validate the output matches expected speech.
  • Your app plays audio prompts and you need to confirm they haven’t changed after an update.
  • Your app has audio-dependent features and functional assertions aren’t sufficient.

Similarity thresholds

Full sample test

Last modified on May 29, 2026