feat(stt): add SenseAudio STT provider#9380
Open
Fl0rencess720 wants to merge 2 commits into
Open
Conversation
- Add SenseAudio as a new OpenAI-compatible STT provider - Uses openai SDK with SENSEAUDIO_BASE_URL as base_url - Supports SENSEAUDIO_API_KEY env var and stt.senseaudio config section - Default model: senseaudio-asr-1.5-260319 - Includes SENSEAUDIO_MODELS set for auto-correction - Adds auto-detect fallback after mistral in provider chain
7 tasks
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.
Why
Hermes already had a flexible multi-provider speech-to-text pipeline, but it did not yet support SenseAudio as an STT backend.
This branch adds SenseAudio as an additional provider within the existing
transcription_tools.pydispatcher so it can participate in the same provider selection, config, and fallback flow as the current local, Groq, OpenAI, and Mistral implementations.Summary
1) Add SenseAudio as a first-class STT provider
tools/transcription_tools.pywith a newsenseaudioprovider pathDEFAULT_SENSEAUDIO_STT_MODELSENSEAUDIO_BASE_URLSENSEAUDIO_MODELS2) Wire SenseAudio into provider selection
_get_provider()so an explicitly configuredstt.provider: senseaudiois respectedopenaipackage must be installedSENSEAUDIO_API_KEYmust be set3) Add provider-specific transcription implementation
_transcribe_senseaudio(file_path, model_name)4) Keep the existing STT architecture and UX consistent
transcribe_audio()using the same dispatcher pattern as the other providersSafety and Regression Notes
Files Changed
Updated:
tools/transcription_tools.pyTest Evidence
Automated tests
Ran the existing STT tool test suite against the branch:
tests/tools/test_transcription_tools.pyResult:
71 passed in 13.38sManual smoke tests