naivestud/auricle
소개
Streaming ASR, audio captioning and speech QA over a whisper-style encoder with pluggable LLM backends
디자인 및 미디어What you can do
- Whisper-style encoder — log-mel spectrogram, conv frontend, pre-norm transformer, CTC head. Sized by a small EncoderConfig.
- Streaming ASR — feed audio in any block size; overlapping chunks are decoded and merged into a growing transcript.
- Audio captioning — transcript + acoustic statistics into an LLM backend.
- Speech QA — ask a question about spoken content.
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 0
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalauricle
Streaming speech understanding toolkit: ASR, audio captioning and speech question answering on top of a whisper-style audio encoder with pluggable LLM backends.
auricle implements the architecture and tooling — a from-scratch
whisper-style encoder, chunked streaming, caption/QA pipelines, an evaluation
suite and a CLI. Models are randomly initialised by default; point
load_checkpoint at trained weights to get real transcripts.
Features
- Whisper-style encoder — log-mel spectrogram, conv frontend, pre-norm
transformer, CTC head. Sized by a small
EncoderConfig. - Streaming ASR — feed audio in any block size; overlapping chunks are decoded and merged into a growing transcript.
- Audio captioning — transcript + acoustic statistics into an LLM backend.
- Speech QA — ask a question about spoken content.
- Pluggable LLM backends —
echo(deterministic), OpenAI-compatible HTTP, optional HuggingFace. Register your own with a decorator. - Evaluation suite — WER/CER, JSONL manifests, an aggregate report.
- CLI —
auricle transcribe | stream | caption | ask | eval.
Quickstart
pip install -e ".[dev]"
# offline transcription (tiny random model)
auricle transcribe tests/fixtures/tone_1s.wav
# streaming
auricle stream tests/fixtures/sweep_2s.wav --chunk-seconds 1 --overlap-seconds 0.25
# caption + QA with the deterministic echo backend
auricle caption tests/fixtures/tone_1s.wav --backend echo
auricle ask tests/fixtures/tone_1s.wav --question "what is this?"
# evaluate against a manifest
auricle eval manifest.jsonl --root data/ --out report.json
Python:
from auricle import AuricleModel, transcribe, StreamingASR
model = AuricleModel.tiny()
print(transcribe(model, "audio.wav"))
Documentation
A note on models
auricle ships architecture and tooling, not pretrained weights. Out of the
box, AuricleModel.tiny() is randomly initialised, so transcripts are
nonsense — the pipelines, streaming, and evaluation are still fully
functional and tested. Load your own trained checkpoint with
load_checkpoint to get real results.
Development
pip install -e ".[dev]"
pre-commit install
pytest
ruff check . && ruff format --check .
License
MIT
관련 프로젝트 살펴보기
불러오는 중…