feat/azure-asr-support#175
Conversation
wyuc
left a comment
There was a problem hiding this comment.
Settings page crashes when Azure STT is selected — asrProvider.models is undefined.
Add models: [] and defaultModelId: '' to the azure-asr config in constants.ts. Other providers without model selection (like browser-native) declare these explicitly.
i have fixd the bug, @wyuc |
|
Hey @ismailariyan, fix looks right, settings page no longer crashes (verified locally). Branch is behind |
254c4a3 to
b23e430
Compare
98b275d to
47f65b4
Compare
|
@wyuc I have rebased it on main and resolved the merge conflicts. |
wyuc
left a comment
There was a problem hiding this comment.
LGTM. Fix is correct, crash-on-Azure-STT verified locally as fixed, CI green post-rebase. Thanks for the contribution and the patience through the long delay.
Summary
Add Azure STT (Speech-to-Text) support using Azure's Fast Transcription REST API. This is a minimal, non-breaking addition that follows the existing ASR provider pattern.
Changes
azure-asrtoASRProviderIdunion typetranscribeAzureASR()function for Fast Transcription APIazure-asrto default ASR configASR_AZUREenv mappingASR_AZURE_API_KEYandASR_AZURE_BASE_URLType of Change
Verification
Steps to reproduce / test
ASR_AZURE_API_KEYandASR_AZURE_BASE_URLin.env(e.g.,https://eastus2.stt.speech.microsoft.comorhttps://eastus2.api.cognitive.microsoft.com)What you personally verified
.stt.speech.microsoft.comformat auto-converts to new.api.cognitive.microsoft.comformat)Evidence
Checklist
pnpm check && pnpm lint && npx tsc --noEmit)