T-one потоковый риалтайм /api/v1/asr/ws-stream + автодетект протокола#9
Open
Guhaaa wants to merge 46 commits into
Open
T-one потоковый риалтайм /api/v1/asr/ws-stream + автодетект протокола#9Guhaaa wants to merge 46 commits into
Guhaaa wants to merge 46 commits into
Conversation
Co-authored-by: aider (ollama/kimi-k2.6:latest-cloud) <aider@aider.chat>
Co-authored-by: aider (ollama/kimi-k2.6:latest-cloud) <aider@aider.chat>
Co-authored-by: aider (ollama/kimi-k2.6:latest-cloud) <aider@aider.chat>
… к единой структуре.
Новый потоковый эндпоинт на нативном T-one (tone.StreamingCTCPipeline), параллельно
офлайн-пути GigaAM:
- api/v1/endpoints/asr_ws_tone.py: WS /api/v1/asr/ws-stream, фразовые партиалы,
корректные времена по пакетам, потоковый ресемплинг к 8 кГц.
- Recognizer/tone_engine.py: ленивый синглтон + опц. GPU (STREAM_WITH_GPU), прогрев в lifespan.
- utils/tone_stream.py: нарезка кадров 2400/int32, синтез пословного result, StreamResampler.
- services/ws_protocol.py: автодетект протокола (legacy {config}/{eof} и новый {type}),
normalize_to_ws_message — вкручен в /ws и /api/v1/asr/ws (теперь оба принимают оба протокола).
- config.py: TONE_* и STREAM_WITH_GPU настройки.
- main.py: предзагрузка+прогрев T-one в lifespan (готов сразу после старта).
- requirements.txt: доб. забытые апстримом sqlalchemy/aiosqlite/greenlet/email-validator.
- Docker/Dockerfile.local + .dockerignore: локальная сборка новой архитектуры (CPU/CUDA).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Новый потоковый эндпоинт на нативном T-one (tone.StreamingCTCPipeline), параллельно офлайн-пути GigaAM: