AudioData: sampleRate property

فهرست فصل‌ها دانلود آرشیوناشر

MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونه‌کد

{{APIRef("WebCodecs API")}}{{AvailableInWorkers("window_and_dedicated")}}

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.

js
console.log(audioData.sampleRate);

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}