SoundContent
Drop in a voice-over or a beat, play it, run it through effects, or turn the words into timed captions.
A SoundContent points at a sound file (WAV, OGG, MP3, FLAC and more); the file stays on disk. Play, Stop, Pause and Resume it from a script, or tick Playing in Properties; Volume, PlaybackSpeed, Looped and TimePosition shape it. Wired into audio nodes, it plays through them. Dropped on a video it becomes a sound clip. Right-click it and choose Transcribe to make Captions. Anything but WAV needs ffmpeg.
Properties
Playback
| Name | Type | Default | Description |
|---|---|---|---|
| Looped | boolean | false | |
| PlaybackSpeed | number | 1 0.01 to 10 | |
| Playing | boolean | false | Starts and stops the sound; ticking it in Properties plays it. |
| TimePosition | number | 0 0 to 1e+06 | The playing position: editing it seeks, and while the sound plays it is written back. |
| Volume | number | 0.5 0 to 10 |
File
| Path | string | The path to its sound file: wav, ogg, mp3 and more. | |
| TimeLength | number |
Audio
| Audio | audio | Properties window only | The sound's audio socket, output only, for wiring it into audio nodes. |
Methods
| Name | Arguments | Returns | Description |
|---|---|---|---|
| Pause | () | () | |
| Play | () | () | Plays the sound from its TimePosition. |
| Resume | () | () | |
| Stop | () | () | Stops the sound and sets its position back to 0. |
