LocalParakeetClient (dictation/local_runner.py)

DeepCode · core/dictation/local_runner.py · python · MIT
voice, Voice / Speech

Synchronous local speech-to-text client using parakeet-mlx CLI.

# Source: https://github.com/HKUDS/DeepCode | License: MIT | Copyright 2025 ✨Data Intelligence Lab@HKU✨
# Provided via justclaw.it.com; keep this notice with the code.
"""Local speech-to-text runner backed by the ``parakeet-mlx`` command line.

``dictation.endpoint = "local"`` transcribes without any HTTP server: the clip
is written to a private temporary directory and handed to ``parakeet-mlx``
(``pip install parakeet-mlx``), which writes a JSON transcript next to it. The
CLI is located on every call, so installing it does not require a restart, and
the child gets a minimal environment rather than the harness's provider keys.
"""

from __future__ import annotations

import json
import os
import shutil
import subprocess
import tempfile
from pathlib import Path

from core.dictation.client i

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key