cf-voice/cf_voice/__init__.py
pyr0ball 35fc0a088c feat: initial cf-voice stub — VoiceFrame API, mock IO, context classifier
- VoiceFrame dataclass: label, confidence, speaker_id, shift_magnitude, timestamp
- MockVoiceIO: async generator of synthetic frames on a timer (CF_VOICE_MOCK=1)
- ContextClassifier: passthrough stub wrapping VoiceIO; _enrich() hook for real classifiers
- make_io() factory: mock mode auto-detected from env, raises NotImplementedError for real audio
- cf-voice-demo CLI entry point for quick smoke-testing
- 12 tests passing; editable install via pip install -e ../cf-voice
2026-04-06 16:03:07 -07:00

17 lines
444 B
Python

"""
cf-voice: CircuitForge voice annotation pipeline.
Quick start (mock mode, no GPU required):
from cf_voice.context import ContextClassifier
classifier = ContextClassifier.mock()
async for frame in classifier.stream():
print(frame.label, frame.confidence)
Set CF_VOICE_MOCK=1 in the environment to activate mock mode globally.
"""
from cf_voice.models import VoiceFrame
__version__ = "0.1.0"
__all__ = ["VoiceFrame"]