Path: blob/main/files/en-us/web/api/audiodata/samplerate/index.md
6538 views
------{{APIRef("WebCodecs API")}}{{SeeCompatTable}}
The sampleRate read-only property of the {{domxref("AudioData")}} interface returns the sample rate in Hz.
Value
A decimal value.
Examples
The below example prints the value of sampleRate to the console.
Specifications
{{Specifications}}
Browser compatibility
{{Compat}}