Skip to main content

音效

你可以使用 <Audio> 标签为你的 Remotion 视频添加音效。

🌐 You can add sound effects to your Remotion video using the <Audio> tag.

使用 @remotion/sfx

🌐 Using @remotion/sfx

[@remotion/sfx](/docs/sfx) 软件包提供了一系列可直接使用的音效:

🌐 The @remotion/sfx package provides a collection of ready-to-use sound effects:

MyComp.tsx
import {whoosh, whip} from '@remotion/sfx'; import {Audio, Sequence} from 'remotion'; const MyVideo = () => { return ( <> <Sequence from={0} durationInFrames={30}> <Audio src={whip} /> </Sequence> <Sequence from={30} durationInFrames={30}> <Audio src={whoosh} /> </Sequence> </> ); };

查看可用声音的完整列表

🌐 See the full list of available sounds.

直接使用 CDN

🌐 Using the CDN directly

你也可以直接使用 remotion.media 的 CDN URL,而无需安装该软件包:

🌐 You can also use the remotion.media CDN URLs directly without installing the package:

MyComp.tsx
import {Audio} from 'remotion'; const MyVideo = () => { return <Audio src="https://remotion.media/whoosh.wav" />; };

寻找更多音效

🌐 Finding more sound effects

以下网站是获取免费音效的良好资源:

🌐 The following sites are good resources for free sound effects:

  • freesound.org — 大型社区驱动的库,拥有许多CC0许可的音效
  • kenney.nl — 高质量游戏音频资源,全部为CC0
  • soundcn.xyz — 精选的 UI 和交互声音集合
  • ElevenLabs — 通过描述来生成音效

贡献

🌐 Contributing

想添加新的音效吗?请参阅贡献指南

🌐 Want to add a new sound effect? See the contributing guide.

另请参阅

🌐 See also