# Micme safe example configuration # Copy this file to .env, then run /micme conf inside pi to adjust it for your machine. # Shell environment variables override values from .env. # Shortcut used by the extension. macOS displays alt as Option. # Some terminals insert a printable character for Option+M instead of sending Alt+M. MICME_SHORTCUT=alt+m MICME_PRINTABLE_SHORTCUTS=ยง # Transcription behavior. # clip = stable default: record first, then transcribe when stopped. # stream = experimental live preview using whisper-stream. MICME_TRANSCRIPTION_MODE=clip MICME_AUTO_SUBMIT=0 MICME_LANGUAGE=en MICME_TRANSCRIBE_TIMEOUT_MS=120000 # Privacy/debugging. # By default Micme removes temp audio after successful transcription. MICME_KEEP_AUDIO=0 MICME_VALIDATE_AUDIO=1 MICME_MIN_MAX_VOLUME_DB=-50 # Recorder selection. # Leave these unset until /micme devices shows the right value for your OS. # macOS avfoundation examples: # MICME_AUDIO_DEVICE=0 # MICME_AVFOUNDATION_INPUT=:0 # Linux PulseAudio example: # MICME_PULSE_SOURCE=default # Windows DirectShow example: # MICME_DSHOW_AUDIO_DEVICE=default # Recording/preprocessing. Micme records a raw WAV, then prepares a 16 kHz WAV for Whisper. MICME_RECORD_SAMPLE_RATE=48000 MICME_TRANSCRIBE_SAMPLE_RATE=16000 MICME_PROCESS_AUDIO=1 MICME_AUDIO_FILTER=highpass=f=80,lowpass=f=7600 # Recording meter tuning. Defaults should be fine for most microphones. MICME_METER_GAIN=1 MICME_METER_FLOOR_DB=55 MICME_METER_RANGE_DB=35 # Recommended backend: whisper.cpp. Install it separately, then either leave the binary unset # so Micme searches PATH, or set MICME_WHISPER_CPP_BIN to an explicit local path. MICME_AUTO_DOWNLOAD_MODEL=1 MICME_DEFAULT_WHISPER_CPP_MODEL=small.en MICME_MODEL_DIR=$HOME/.cache/whisper.cpp # MICME_WHISPER_CPP_BIN=whisper-cli # MICME_WHISPER_STREAM_BIN=whisper-stream # MICME_WHISPER_CPP_MODEL=$HOME/.cache/whisper.cpp/ggml-small.en.bin # Python openai-whisper fallback. Used only when whisper.cpp is not configured/found. MICME_WHISPER_MODEL=base.en MICME_WHISPER_DEVICE=cpu MICME_WHISPER_FP16=False # Experimental streaming profile. /micme conf can apply a low-latency profile automatically. MICME_STREAM_CAPTURE=-1 MICME_STREAM_WORDS_PER_CHUNK=5 MICME_STREAM_STEP_MS=500 MICME_STREAM_LENGTH_MS=3000 MICME_STREAM_KEEP_MS=300 MICME_STREAM_MAX_TOKENS=32 MICME_STREAM_KEEP_CONTEXT=1 MICME_STREAM_FINALIZE_WITH_CLIP=0 MICME_STREAM_VAD_THRESHOLD=0.35 MICME_STREAM_DIAGNOSTICS=0 # Advanced custom hooks. Placeholders are shell-quoted unless the Raw suffix is used: # {audio}, {audioRaw}, {tempDir}, {tempDirRaw}, {transcript}, {transcriptRaw} # Raw placeholders bypass shell quoting; use them only when you fully control the command. # MICME_RECORD_COMMAND=ffmpeg -hide_banner -loglevel error -f avfoundation -i :0 -ac 1 -ar 16000 -y {audio} # MICME_TRANSCRIBE_COMMAND=whisper-cli -m /path/to/model.bin -f {audio} -otxt -of {tempDirRaw}/out -nt -np && cat {tempDirRaw}/out.txt