How homebrewltd/ichigo works
Ichigo is a developer-facing speech inference package. Its implemented workflow accepts audio through Python batch transcription or the FastAPI service, preprocesses and chunks it, encodes speech as representations, quantizes them, and decodes text; API routes also expose speech-to-representation and representation-to-text separately. The graph includes the reusable model layers and README-documented experimental LLM and forthcoming TTS capabilities. LLM/TTS implementation and some transcriber internals were not sampled, so their runtime links are omitted.
Main entry points: transcriber.py Batch transcriber · asr.py FastAPI service · quantizer.py Speech quantizer · __init__.py Python API
Components 14
User interfaces
- Python API
ichigo/asr/__init__.py - FastAPI service
api/asr.py
ASR workflow
- Batch transcriber
ichigo/asr/transcriber.py - Audio preparation
ichigo/asr/transcriber.py - Transcript output
- Speech tokens
Model architecture
- Speech encoder
ichigo/asr/arch/s2r.py - Speech quantizer
ichigo/asr/arch/quantizer.py - Text decoder
ichigo/asr/arch/r2t.py - Attention layers
ichigo/asr/arch/layers.py
Other capabilities
- Experimental speech LLM
ichigo/llm - Planned TTS
ichigo/tts
Other components
- Developer
- Audio input
Connections 16
- Developer → Python API: calls
README.md - Developer → FastAPI service: uploads audio
README.md - Audio input → Batch transcriber: processes
README.md - Python API → Batch transcriber: delegates to
ichigo/asr/__init__.py - FastAPI service → Batch transcriber: loads model
api/asr.py - Batch transcriber → Audio preparation: preprocesses
ichigo/asr/transcriber.py - Batch transcriber → Speech encoder: uses
ichigo/asr/transcriber.py - Batch transcriber → Speech quantizer: uses
ichigo/asr/transcriber.py - Batch transcriber → Text decoder: uses
ichigo/asr/transcriber.py - FastAPI service → Speech encoder: encodes audio
api/asr.py - FastAPI service → Speech quantizer: quantizes representations
api/asr.py - FastAPI service → Text decoder: decodes representations
api/asr.py - Speech quantizer → Attention layers: uses
ichigo/asr/arch/quantizer.py - Batch transcriber → Transcript output: writes transcript
README.md - FastAPI service → Transcript output: returns text
api/asr.py - FastAPI service → Speech tokens: returns tokens
api/asr.py