A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.mozilla.org/en-US/docs/Web/API/AudioData/sampleRate below:

AudioData: sampleRate property - Web APIs

MDN Web Docs
  1. Web
  2. Web APIs
  3. AudioData
  4. sampleRate

Filter sidebar

In this article
  1. WebCodecs API
  2. AudioData
  3. Constructor
    1. AudioData()
  4. Instance properties
    1. duration
    2. format
    3. numberOfChannels
    4. numberOfFrames
    5. sampleRate
    6. timestamp
  5. Instance methods
    1. allocationSize()
    2. clone()
    3. close()
    4. copyTo()
  6. Related pages for WebCodecs API
    1. AudioDecoder
    2. AudioEncoder
    3. EncodedAudioChunk
    4. EncodedVideoChunk
    5. ImageDecoder
    6. ImageTrack
    7. ImageTrackList
    8. VideoColorSpace
    9. VideoDecoder
    10. VideoEncoder
    11. VideoFrame
In this article AudioData: sampleRate property

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.

The sampleRate read-only property of the 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 Specification WebCodecs
# dom-audiodata-samplerate
Browser compatibility Help improve MDN Was this page helpful to you? Learn how to contribute

.

This page was last modified on Sep 11, 2024 by MDN contributors.

View this page on GitHub

•

Report a problem with this content

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4