-
Notifications
You must be signed in to change notification settings - Fork 261
S2t streaming #272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
S2t streaming #272
Conversation
Signed-off-by: jakmro <[email protected]>
Signed-off-by: jakmro <[email protected]>
Signed-off-by: jakmro <[email protected]>
Signed-off-by: jakmro <[email protected]>
Signed-off-by: jakmro <[email protected]>
Signed-off-by: jakmro <[email protected]>
Signed-off-by: jakmro <[email protected]>
Signed-off-by: jakmro <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR introduces streaming transcription functionality for real-time audio processing using the Whisper model. The implementation uses a confirmation mechanism based on fuzzy matching to progressively confirm transcribed text as new audio chunks are processed.
Key Changes
- New streaming transcription API with four functions: init, insert, process, finalize, and destroy
- Fuzzy matching algorithm using Levenshtein distance to confirm stable transcription results
- Comprehensive documentation with usage examples for the streaming API
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 10 comments.
| File | Description |
|---|---|
| cactus/ffi/cactus_ffi.h | Adds function declarations for the new streaming transcription API |
| cactus/ffi/cactus_stream_transcribe.cpp | Implements streaming transcription with audio buffering, fuzzy matching, and incremental confirmation logic |
| tests/test_engine.cpp | Adds test case for streaming transcription with chunked audio processing |
| docs/cactus_engine.md | Provides comprehensive documentation for all streaming API functions with examples and response formats |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: jakmro <[email protected]>
Signed-off-by: jakmro <[email protected]>
No description provided.