Configuration

The module settings, environment variables and Java properties.

On this page

Module settings

In boxlang.json, under modules.bxaudio.settings:

{
  "modules": {
    "bxaudio": {
      "settings": {
        "home": "",
        "autoInstall": true,
        "ffmpeg": "",
        "ai": {
          "enabled": true,
          "allowedPaths": [],
          "outputDir": ""
        }
      }
    }
  }
}
SettingDefaultDoes
home""Where the speech engine, the voices and FFmpeg are downloaded to. Empty means ~/.bxaudio
autoInstalltrueMay the module download the speech engine, a voice or FFmpeg when you first use something that needs it. false makes it fail with a message that says what to install
ffmpeg""Path to an FFmpeg you want it to use (the program, or its folder). Empty finds it from the variable, the home or the PATH

AI tool settings

The ai setting configures the tools offered to the BoxLang AI module, see AI agent tools.

SettingDefaultDoes
ai.enabledtrueRegister the audio tools in the bx-ai tool registry when bx-ai is installed. false registers nothing
ai.allowedPaths[]Folders the tools may read from and write to. Empty means the system temp folder and the working directory
ai.outputDir""Where results go when the agent names no output path. Empty means bx-audio-ai in the system temp folder. It is always an allowed folder

Set allowedPaths to the folders an agent should work in, for example [ "/data/recordings" ]. Once it is set the temp folder and working directory are no longer allowed, add them back if the agent needs them.

Environment variables

VariableDoes
BX_AUDIO_HOMEThe same as home. The setting wins over the variable
BX_AUDIO_FFMPEGThe same as ffmpeg
BX_AUDIO_DEBUG1 makes the command line print a stack trace instead of a one line message

Java system properties

-Dbxaudio.home=/path is the same as BX_AUDIO_HOME, for hosts where you control the JVM arguments but not the environment.

Order of precedence for the home folder

  1. The module setting home
  2. The bxaudio.home system property
  3. The BX_AUDIO_HOME variable
  4. ~/.bxaudio

What lives in the home

See Storage: engine/, voices/, ffmpeg/ and cache/.

Where FFmpeg is looked for

  1. The ffmpeg setting
  2. BX_AUDIO_FFMPEG
  3. <home>/ffmpeg/<version>/
  4. The PATH

A configured path that does not work is an error, not a silent fall back to another FFmpeg.

Edit this page Download Markdown Last updated Nov 26, 2026, 11:36:03 AM Report an issue