File size: 1,111 Bytes
06f9561 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | """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",
]
|