# Local speech transcription: language, privacy and measurement ## 1. Establish the failure and the processing stage Ask whether the user sent audio or deliberately typed the displayed text when that is ambiguous. A quoted English message can be a bad transcription of Turkish speech; do not treat it as a reliable translation or invent the intended request. Inspect only the active profile's non-secret STT fields: enabled, provider, global language, local language, model, device, compute type and idle-unload policy. Inspect dependencies using Hermes's actual Python runtime rather than an unrelated system interpreter. Check faster-whisper and FFmpeg availability, but call this readiness, not successful transcription. Retrieve the current official Voice & TTS page through the Hermes documentation index. Do not guess a `/features/voice` URL or assume a remembered schema is current. ## 2. Correct language and provider within the approved scope For Turkish speech with local-only transcription, the verified configuration shape is: ```sh hermes config set stt.language tr hermes config set stt.local.language tr hermes config set stt.provider local ``` Use the selected profile's CLI context when not operating on default. A request to correct language alone is not permission to change unrelated models/providers. Setting the local override as well as the global language prevents an existing provider-specific English override from winning. Use automatic language detection instead when the user wants multilingual input; do not silently force every speaker to Turkish. Read the saved fields back. If the config CLI warns that a key is unrecognized, do not repeat the write with force and declare success. Inspect the installed consumer: a validator can lag a key the runtime supports. The relevant runtime helpers, when present, are: ```python from tools.transcription_tools import ( _load_stt_config, _get_provider, _resolve_stt_language, ) cfg = _load_stt_config() print(_get_provider(cfg)) print(_resolve_stt_language('local', cfg)) ``` Run this with the Hermes runtime and repository import path. These are internal helpers: confirm their signatures in the installed version before use. Check explicit-provider failure behavior to establish that local failure will not silently select a cloud service. Do not claim a live gateway adopted a change solely from a fresh helper process; the next real message provides the decisive evidence. Restart only if needed and authorized. ## 3. Exercise the actual message path Have the user send a short Turkish voice message. If the original audio is still accessible through the supported attachment path, reuse it rather than requiring another recording. Do not enumerate unrelated recordings or personal backups. Read narrowly scoped recent transcription log rows. Verify the exact recording's backend, model, language and successful transcript, then confirm the user recognizes the returned words. A successful Turkish example does not prove the model is accurate on names, noise or technical vocabulary. A message echoed from the incoming transcript proves text handling, not that the assistant independently listened to the audio. For an exact-repeat test, output only the transcript as received. For a semantic task, flag materially garbled words instead of silently repairing them. ## 4. Explain cost and privacy by stage Describe the pipeline separately: 1. Messaging service transports the audio to the Mac. 2. Local speech model turns it into text without a cloud STT API charge. 3. The configured conversational model processes that text and produces a response; cloud inference still consumes tokens/quota. Say 'no cloud transcription tokens/charge', not 'no tokens were used anywhere'. Whisper's internal decoding is not a billable cloud API call. Local STT does not imply that the transcript, Telegram transport or subsequent reasoning stays offline. Model download traffic is distinct from sending audio to an external transcription provider. ## 5. Measure resource use without false attribution - Inspect the actual device and precision in load logs. On the observed Apple Silicon path, faster-whisper selected CPU/int8; do not advertise Metal acceleration from the host architecture alone. - Measure cached weight-file size directly, clearly excluding tokenizer/config/cache overhead. Disk size is not RAM usage. - Compute transcription intervals from matching processing-start and completion timestamps. Label warm versus cold loading and exclude network/download/response time unless separately timed. - Use `memory_pressure -Q` and `sysctl vm.swapusage` for current pressure. Gateway RSS includes the whole bot; isolated model RAM needs a controlled before/after or separate-process measurement. - Inspect idle-unload policy before claiming memory is released. Do not change it merely to make a benchmark look better. - Compare a larger multilingual model on the same authorized sample only when requested; report recognition quality alongside latency and memory, without promising that larger always solves the error.