voice/__init__.py

cheetahclaws · cheetahclaws/voice/__init__.py · python · Apache-2.0
voice

Backward-compatibility shim. Real implementation: modular/voice/ 'from voice import X' and 'from voice.stt import Y' still work.

# Source: https://github.com/SAIL-Research-Lab/cheetahclaws | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
# Provided via justclaw.it.com; keep this notice with the code.
"""
Backward-compatibility shim.
Real implementation: modular/voice/

'from voice import X' and 'from voice.stt import Y' still work.
"""
import importlib as _il
import sys as _sys

# Import the real package — triggers its own __init__
_real = _il.import_module("cheetahclaws.modular.voice")

# Re-export everything from the real package
from cheetahclaws.modular.voice import *  # noqa: F401, F403

# Register submodules so 'from voice.X import Y' works
for _sub in ["recorder", "stt", "keyterms", "cmd"]:
    try:
        _m = _il.import_module(f"cheetahclaws.modular.voice.{_sub}

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

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

Get a free API key