BxAudio
Star
A BoxLang module · pure JVM

Make a kick from code. Master it. Make it speak.

Synthesize instruments and drums, arrange them on a beat grid, master to a loudness target, speak text with open license voices, score a video and play sound in a game. No Python. Nothing native to install.

$install-bx-module bx-audio
  • 68 functions
  • EBU R128 mastering
  • 11 open voices
  • 15 pieces made from code
theme.bxs
// The hero motif: rising fourths, then a dotted turn
motif = [ [ 0, 69, 4 ], [ 4, 74, 6 ], [ 10, 76, 2 ], [ 12, 78, 4 ] ];
for( n in motif ){
    note = leadNote( n[ 2 ], n[ 3 ] );
    audioAdd( timeline=lead, sound=note, at=n[ 1 ] * step );
}
bass = audioFilter(
    audioOsc( "saw", audioFreq( 38 ), 0.3 ), "lowpass", 900, 2.4 );
mix = audioMix( [ drums, bass, pads, arp, lead, harp ] );
mix = audioMaster( audio=mix, target="streaming" );  // -14 LUFS
audioSave( mix, "theme.mp3" );
Press play for the BxAudio theme, made by examples/15-theme-14 LUFS
Press play

Every one of these was written, not recorded.

Fifteen complete pieces rendered by the module from a few dozen lines each. Nothing plays until you press a button.

Everything on the JVM

One module. The whole audio pipeline.

Try it in your browser

Turn the knobs. Hear the idea.

A quick preview of four building blocks, played by your browser. The module renders the real thing offline on the JVM, so it sounds the same on every machine.

BoxLang

					
Want the real module? Clone it and run every feature.
Voices and licenses

Voices with the paperwork done.

We read the license of every voice in the collection and of the data it was trained on. The ones offered are CC0, Public Domain or Apache-2.0. The rest are listed with the reason they are not.

177voices reviewed
11offered
166left out, with reasons
VoiceLicenseStatus
en_US joeCC0Offered
en_US bryceCC0Offered
en_US kristinPublic DomainOffered
en_GB (dictionary)GPL dataNot offered
Non-commercial setCC BY-NCNot offered
Part of the BoxLang ecosystem

Built for BoxLang, with BoxLang.

Consulting and support

Need audio in production? Talk to the people who build BoxLang.

Ortus Solutions offers professional support, architecture reviews and custom development for BoxLang, including audio pipelines, narration and video workflows.

Priority supportAnswers from the team that wrote the runtime.
Custom developmentVoices, pipelines and integrations built to your brief.
Training and reviewGet your team productive and your design checked.
Two minutes to your first sound

Install it. Run one line. Hear it.

Install the module and render your first beat from a script.