AudioData: thuộc tính sampleRate

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Note: This feature is available in Dedicated Web Workers.

Thuộc tính chỉ đọc sampleRate của giao diện AudioData trả về tốc độ lấy mẫu theo Hz.

Giá trị

Một giá trị thập phân.

Ví dụ

Ví dụ dưới đây in giá trị của sampleRate ra console.

js
console.log(audioData.sampleRate);

Thông số kỹ thuật

Specification
WebCodecs
# dom-audiodata-samplerate

Khả năng tương thích với trình duyệt