code-HFD / src /psi /runtime /__init__.py
Tinghong-Ye22's picture
Add files using upload-large-folder tool
06f9561 verified
Raw History Blame Contribute Delete
1.11 kB
"""Optional streaming speech/runtime components for formal HFD.
The action trainer and renderer do not import this package by default. The
runtime is deliberately dependency-light at import time so the existing
audio-to-motion DLC entry point remains unchanged when speech is disabled.
"""
from .speech import (
BoundedSpeechQueue,
PCMClockPackets,
SpeechChunk,
SpeechGenerationContext,
SpeechResultGate,
SpeechRuntimeConfig,
)
from .qa_private_kv import QAPrivateKVConfig, validate_qa_checkpoint
# The native implementation is optional because formal action-only jobs do
# not need FlashAttention/Talker imports at startup. Keep these names lazy so
# a CPU-only config check remains available on a login node.
def load_native_streaming_speech():
from . import native_streaming_speech
return native_streaming_speech
__all__ = [
"BoundedSpeechQueue",
"PCMClockPackets",
"SpeechChunk",
"SpeechGenerationContext",
"SpeechResultGate",
"SpeechRuntimeConfig",
"QAPrivateKVConfig",
"validate_qa_checkpoint",
"load_native_streaming_speech",
]