Skip to Content
PandaScript
Processor

Configuration

Processor config.json: pool flags, server, transcription, audio, processing, recordings, response, CORS, LLM profanity, report_buffer, console.

Config file: config.json in the processor directory. Override path with CONFIG_PATH. Start from config.example.json.

Pool / multi-tenant (optional)

Top-level keys for hosted pool deployments (most self-hosted servers leave pool_server false):

KeyTypicalDescription
pool_serverfalseWhen true, processor runs in pool mode (see internal deployment docs).
pool_server_audit_loglogs/pooled_server_audit.jsonlAudit log path when pooling.
pool_server_transcripts_dirlogs/pool_transcripts_by_licenseTranscript storage root when pooling.

Server (always review)

KeyExampleDescription
host"0.0.0.0"Bind address.
port28472HTTP + WebSocket port. Plugin processor_websocket_url must match (ws:// / wss://).
server_key"YourSecret16CharsMin"Shared secret with the plugin in CUSTOM mode. 16–256 alphanumeric. Empty = accept any key (not recommended). PUBLIC pool processors use a fixed pool key on their side.

Transcription

KeyTypicalDescription
model"Systran/faster-whisper-base"Hugging Face model ID (see Hugging Face models).
language"auto""auto" or a fixed code (e.g. "en").
device"cpu""cpu" or "cuda".
compute_type"int8"e.g. int8 on CPU.
timeout_seconds30Max time per job before drop.
cpu_threads2Worker threads.
beam_size5Decoding beam width. Use 1 for lower latency (slightly less accurate).
vad_filtertrueWhisper internal VAD filter.
use_memory_inputfalseTranscribe from in-memory WAV (skips temp files when true).
huggingface_token""Optional hf_… token for faster / higher-limit model downloads.

Audio

KeyDefaultDescription
min_audio_length_ms50Shorter chunks skipped.
max_audio_length_ms30000Max clip length.
sample_rate16000Expected sample rate.
channels1Mono.

Processing queue

KeyDefaultDescription
queue_max_size500Waiting jobs; when full, new work is dropped. Monitor processing_queue_size via GET /stats.
worker_count4Parallel queue workers. Lower it on small CPU-only hosts, raise it on busy multi-core hosts.
stt_concurrency4Most transcriptions running at the same time. Defaults to worker_count.

Performance and latency

Typical tuning for busier servers:

"transcription": {
  "beam_size": 1,
  "use_memory_input": true
},
"processing": {
  "worker_count": 2
}

Pair with plugin audio_capture settings (Configuration). Flagged responses can include processing_time_ms, stt_time_ms, and moderation_time_ms.

Recordings

KeyExampleDescription
save_mode"none"none, all, or flagged.
save_path"recordings/"WAV + metadata directory.
retention_days7File retention.

Response to plugin

response – What goes back on flagged paths:

KeyDefaultDescription
include_audiofalseIf true, flagged responses can include base64 WAV for Discord include_audio on the plugin.

CORS

cors – Relevant for browser calls to HTTP endpoints (/health, /stats). The Minecraft plugin does not need CORS. Tighten allow_origins if you expose APIs to a known web origin.

LLM profanity (optional)

llm_profanity – Second-pass detection when word lists do not match.

KeyExampleDescription
enabledfalse
provider"ollama"openai, anthropic, ollama.
api_keyvariesProvider key or Ollama base URL.
model"llama2"Model id.
timeout_seconds15
confidence_threshold0.7
strictness"medium"strict, medium, lenient.
max_concurrent_requests3
fallback_on_errortrueIf LLM fails, fall back without blocking the pipeline.

Report buffer (optional)

report_buffer – On-disk evidence for the plugin’s GET /report/evidence HTTP API.

KeyTypicalDescription
enabledfalsetrue to persist under path.
path"report_buffer/"Root directory.
retention_seconds604800Time to keep entries (e.g. 7 days).
save_audiofalseAlso store audio when applicable.

If enabled is false, the evidence endpoint returns 404; the plugin still uses its local transcript buffer for books and the dashboard.

Plugin-side: Voice reports & transcript buffer.

Console

KeyDefaultDescription
log_transcriptsfalseVerbose transcript logging.
live_displaytruePeriodic status line updates.
Minimal self-hosted example
{
  "pool_server": false,
  "server": {
    "host": "0.0.0.0",
    "port": 28472,
    "server_key": "YourSharedSecretKey16CharsMin"
  },
  "transcription": {
    "model": "Systran/faster-whisper-base",
    "language": "auto",
    "device": "cpu",
    "compute_type": "int8",
    "timeout_seconds": 30,
    "cpu_threads": 2
  },
  "response": {
    "include_audio": false
  },
  "report_buffer": {
    "enabled": false,
    "path": "report_buffer/",
    "retention_seconds": 604800,
    "save_audio": false
  }
}

Match server_key to the plugin’s server_key in CUSTOM mode.

On this page