FNLB Devs

Developer Portal

CDN

User Sounds

User sounds are the audio clips users upload in the FNLB app, from My sounds in the account menu or from the soundboard on a bot page. Bots play them in Fortnite party voice, from the soundboard on a bot page or when joining a party (joinSound and memberJoinSound in category config). The app stores them on the CDN, one immutable URL per sound.

The URL

https://cdn.fnlb.net/user-sounds/{userId}/{soundId}.ogg

{userId} is the FNLB account id of the owner and {soundId} is the sound's id. Default sounds, which every user can play, live under default:

https://cdn.fnlb.net/user-sounds/default/{slug}.ogg

In category config and on the soundboard, a default sound is named default:{slug} and an uploaded sound by its id.

Uploading a sound

Sounds are uploaded from the sound picker (My sounds in the account menu, or the soundboard) when the voiceChat feature flag is enabled. Each user can keep 5 sounds, or 100 with VIP. The app accepts MP3, WAV, OGG, Opus, FLAC, M4A, AAC and WebM audio between 1 KB and 10 MB and up to 30 seconds long, then:

  • Takes the first audio track and drops any video or metadata.
  • Normalizes loudness, so quiet and loud uploads play at a similar volume.
  • Encodes it as Ogg Opus, 48 kHz stereo at 96 kbps.

Deleting a sound removes its file. Category configs that still name it skip it.

Immutability and caching

Every upload produces a new soundId, so a URL never changes content. Treat user sound URLs as immutable and cache them permanently. Default sound URLs can be replaced, so cache them for a day at most.

Example

const soundUrl = soundId.startsWith('default:')
  ? `https://cdn.fnlb.net/user-sounds/default/${soundId.slice('default:'.length)}.ogg`
  : `https://cdn.fnlb.net/user-sounds/${userId}/${soundId}.ogg`;

Next