Skip to main content

Audio

Audio is sound with a duration, such as speech, music, or a recording. Use it on its own or connect it to a Node that accepts an audio reference or soundtrack.

For example, connect a six-second recording from Audio Input to Set Video Audio, alongside a four-second clip from Video Input. The result keeps the clip's pictures and uses the first four seconds of the recording as its soundtrack.

Get audio into a Graph​

SourceWhat it supplies
Audio InputA recording imported from a file.
Extract AudioA video's soundtrack, fitted to the video's duration. A silent video produces a recording of silence.
VoxCPM2Speech generated from text, with optional voice guidance or continuation.

Connect an Audio output to an Audio input. A Video output remains Video even when it contains a soundtrack; use Extract Audio to get a separate Audio value. Text from a String output needs a speech-generation Node before it becomes sound.

Import formats​

Studio prepares imported audio as Ogg Opus. An unedited file already in that format can keep its existing bytes. Other formats require conversion, and the browser must support reading their audio and preparing the result.

The file chooser's audio filter does not guarantee that every codec will work. If preparation fails, read the error and try a recording in a format your browser can decode. A file must contain a readable audio track.

Duration and size​

Audio must be at least 10 milliseconds long to use in a Run. Duration is measured from the recording and rounded upward to whole milliseconds for validation. Individual Nodes can require a narrower duration range or use only part of a recording.

The shared value-size limit applies to normalized audio data, not the compressed file's size. For size accounting, Studio uses 48,000 samples per second, two channels, and four bytes per sample. One minute therefore accounts for 23,040,000 bytes, about 22 MiB. This calculation is a processing-size measure, not a requirement that you export every input file with those settings.

A small compressed file can still exceed a processing limit. The receiving Node and the overall Graph can impose tighter limits than the individual value-size limit.

Match sound to video​

Set Video Audio replaces a video's soundtrack from its beginning. It trims a longer recording and adds silence after a shorter one. It does not loop, stretch, or mix the recording with the old soundtrack.

Other Nodes use Audio differently. For example, a voice reference guides generated speech rather than becoming its soundtrack. Check the receiving Node's reference for duration limits and how it uses the sound.