Chapter 142: getSilentParts()
Core Idea
<YouTube minutes={2} href="https://www. youtube.
Key Concepts
- Example
- Arguments
- source
- noiseThresholdInDecibels?
- minDurationInSeconds?
- logLevel?
- binariesDirectory?<AvailableFrom v="4.0.120" />
- Return Value
Code Examples
const {silentParts, durationInSeconds} = await getSilentParts({
src: '/Users/john/Documents/bunny.mp4',
noiseThresholdInDecibels: -20,
minDurationInSeconds: 1,
});
console.log(silentParts); // [{startInSeconds: 0, endInSeconds: 1.5}]
- What it demonstrates: Usage pattern for getSilentParts() from the official docs.
Key Takeaways
- Understand example when working with getSilentParts().
- Understand arguments when working with getSilentParts().
- Understand source when working with getSilentParts().
- Understand noisethresholdindecibels? when working with getSilentParts().
- Understand mindurationinseconds? when working with getSilentParts().
Connects To
- Chromium Flags: related page in the Rendering & SSR section.
- Compare ssr: related page in the Rendering & SSR section.
- Dataset Render: related page in the Rendering & SSR section.