Sound

On this page

← OneUpRender

Music, voice-over and sound effects. Music can dip while someone speaks, and the whole mix is evened out to a steady loudness.

Every Timeline names its language version in v. The newest is 1.33. A Timeline that uses something newer than its v is refused when you save it, with a detail that names the version it needs.

Words such as segment, Timeline, Preview and final are defined in the glossary.

Music that dips while words are spoken #

Lowers a music track wherever the words of a caption track are spoken, so speech inside your clips stays clear.

Key: audio.ducking_speech · Available · Goes in the Timeline's audio list · Needs "v": "1.13" or newer

SettingTypeDefaultWhat it does
ducking.againsttextrequiredThe id of a caption track, or "captions" for every caption track.

Example:

JSON
{
  "captions": [
    {
      "id": "speech",
      "source": { "$annotation": "<transcript id>" },
      "range": { "from": 0, "to": 6000 },
      "language": "en"
    }
  ],
  "audio": [
    {
      "id": "music",
      "source": { "$asset": "<music id>" },
      "role": "music",
      "range": { "from": 0, "to": 6000 },
      "ducking": { "against": "speech", "amount_db": -12 }
    }
  ]
}

Music and voice tracks #

Plays a sound file under the video: music, a voice-over or a long effect. A voice-over is leveled first so a quiet and a loud recording sound alike, and the whole mix is evened out.

Key: audio.track · Available · Goes in the Timeline's audio list · Needs "v": "1.1" or newer

SettingTypeDefaultWhat it does
idtextrequiredA name for the track.
source.$assetid of your filerequiredThe sound file: an upload or an asset.
roleone of music, voiceover, sfxrequiredWhat the sound is.
rangeobject, 0 ≤ from < torequiredWhen it plays: from and to, in milliseconds of the video, inside its length.
trimobject—Where in the file to start, from in milliseconds.
gainnumber, -60–12 dB0Louder or quieter, in decibels.
looptrue or falsefalseRepeats the file to fill the range.
fade_inwhole number, ≥ 0 ms0Fades in at the start, in milliseconds.
fade_outwhole number, ≥ 0 ms0Fades out at the end, in milliseconds.

Example:

JSON
{
  "audio": [
    {
      "id": "music",
      "source": { "$asset": "<music id>" },
      "role": "music",
      "range": { "from": 0, "to": 6000 },
      "gain": -8,
      "loop": true,
      "fade_in": 500,
      "fade_out": 1000
    }
  ]
}

How loud the video is #

Every video is brought to the standard loudness for social video (-14 LUFS). Natural, the default, keeps the peaks of music with strong peaks clean, so such music may sound a little quieter. Louder always reaches the standard loudness and presses those peaks harder.

Key: output.loudness · Available · Goes in the Timeline's audio list · Needs "v": "1.28" or newer

SettingTypeDefaultWhat it does
output.loudnesstext"natural""natural" (the default) or "louder".

Example:

JSON
{
  "output": {
    "aspect": "9:16",
    "resolution": 1080,
    "fps": 30,
    "container": "mp4",
    "loudness": "louder"
  }
}

Music that dips under a voice #

Lowers one track wherever another plays, such as music under a voice-over, with a smooth dip and recovery.

Key: audio.ducking · Available · Goes in the Timeline's audio list · Needs "v": "1.1" or newer

SettingTypeDefaultWhat it does
ducking.againsttextrequiredThe id of the track to make room for.
ducking.amount_dbnumber, -36–0 dB-12How far it dips, in decibels.
ducking.attackwhole number, ≥ 0 ms20How fast it dips, in milliseconds.
ducking.releasewhole number, ≥ 0 ms250How fast it comes back, in milliseconds.

Example:

JSON
{
  "audio": [
    {
      "id": "voice",
      "source": { "$asset": "<voice id>" },
      "role": "voiceover",
      "range": { "from": 0, "to": 6000 }
    },
    {
      "id": "music",
      "source": { "$asset": "<music id>" },
      "role": "music",
      "range": { "from": 0, "to": 6000 },
      "ducking": {
        "against": "voice",
        "amount_db": -12,
        "attack": 20,
        "release": 250
      }
    }
  ]
}

Sound effects #

Plays a short sound at one moment, such as a whoosh on a transition or a hit on a word: from the OneUpAI stock library or one of your own files.

Key: sfx · Available · Goes in the Timeline's sfx list · Needs "v": "1.1" or newer

SettingTypeDefaultWhat it does
atwhole number, ≥ 0 msrequiredWhen it plays, in milliseconds of the video, before its end.
source.$stockone of whoosh, impact, pop, click, riser, stinger, ding, ping, cash, shutter, typing, scratch, glitch, boing, applause, drumroll, beep, buzzer, crickets, heartbeat, sparkle, sweep, textpop, bass, chime, tension, bell—A stock sound from the OneUpAI library (each made by OneUpAI, some with its own AI), or use source.$asset for your own.
gainnumber, -60–12 dB0Louder or quieter, in decibels.

Example:

JSON
{ "sfx": [{ "at": 2800, "source": { "$stock": "whoosh" }, "gain": -6 }] }