feat: Add OpenAI API compatible STT provider#5268
Open
angelplusultra wants to merge 6 commits intomasterfrom
Open
feat: Add OpenAI API compatible STT provider#5268angelplusultra wants to merge 6 commits intomasterfrom
angelplusultra wants to merge 6 commits intomasterfrom
Conversation
codeCraft-Ritik
left a comment
There was a problem hiding this comment.
Nice work on this PR. The code is well-structured and easy to follow
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.
Pull Request Type
Relevant Issues
resolves #3812
Description
Adds a "Generic OpenAI Compatible" STT provider option, allowing users to use any OpenAI-compatible speech-to-text service (OpenAI Whisper, Groq, Deepgram, self-hosted faster-whisper, etc.) for voice-to-text transcription in the chat prompt input.
What changed:
POST /system/sttendpoint, which proxies the audio to the configured OpenAI-compatible transcription API (/audio/transcriptions)STOP_STT_EVENTto signal STT stop, making it provider-agnosticgetUserMedia. Unlike the native Web Speech API (which manages the mic internally and returns synchronously), the server provider must explicitly request the raw audio stream from the OS — this hardware initialization takes 1-3 seconds depending on the device and browser. The spinner provides visual feedback during this unavoidable delay so users know the app is responding.Visuals (if applicable)
Additional Information
whisper-1) and Groq (whisper-large-v3) successfullyaudio/webm(browser default) and sent through multer memory storage — no files written to diskDeveloper Validations
yarn lintfrom the root of the repo & committed changes