How to Suppress Verbose Output in Ecasound

When running Ecasound in scripts or automated audio processing pipelines, the dynamic terminal output and detailed diagnostic messaging can quickly clutter logs and consume unnecessary system resources. This article outlines the specific command-line options available in Ecasound to suppress verbose terminal reporting, hide real-time processing statistics, and control diagnostic logging levels for a completely silent, headless execution.

The Quiet Mode Option: -q

The primary command-line option to suppress verbose terminal output in Ecasound is -q.

By default, Ecasound continuously prints dynamic session status updates to the terminal while processing audio. This dynamic status includes elapsed time, current processing position, peak audio levels, and real-time CPU usage. Adding the -q flag disables this real-time stream:

ecasound -q -i input.wav -o output.wav

When -q is enabled, Ecasound suppresses dynamic engine status reporting while still allowing critical error messages to display if a failure occurs.

Controlling Debug Verbosity: -d

Ecasound includes a debugging and diagnostic subsystem governed by the -d option. If your configuration or wrapper script has debug flags enabled (such as -d, -dd, or -ddd), you can suppress them by specifying debug level 0 or omitting -d entirely:

ecasound -d:0 -q -i input.wav -o output.wav

The -d:level argument sets the verbosity bitmask. Setting it to 0 guarantees that internal debug messages, subsystem notices, and setup tracing are silenced.

Non-Interactive Batch Mode: -B:batch

If Ecasound is invoked in an automated environment, interactive prompts can interfere with execution. Pairing -q with -B:batch ensures the engine executes without waiting for keyboard interaction or printing interactive terminal prompts:

ecasound -B:batch -q -i input.wav -o output.wav

Complete Redirection for Shell Automation

For complete suppression of all output (including initialization banners and standard error messages) in cron jobs or background tasks, combine the quiet flag with standard shell redirection:

ecasound -B:batch -q -i input.wav -o output.wav > /dev/null 2>&1

Using -q remains the recommended built-in method to keep terminal logs clean while preserving essential exit status codes for error handling.