fix: STT consistency — web.py model param, error matching, local provider key
- web.py: pass stt_model from config like discord.py and run.py do - run.py: match new error messages (No STT provider / not set) - _transcribe_local: add missing "provider": "local" to return dict
This commit is contained in:
parent
41162e0aca
commit
e3126aeb40
3 changed files with 6 additions and 5 deletions
|
|
@ -444,8 +444,9 @@ class WebAdapter(BasePlatformAdapter):
|
|||
f.write(audio_bytes)
|
||||
|
||||
try:
|
||||
from tools.transcription_tools import transcribe_audio
|
||||
result = await asyncio.to_thread(transcribe_audio, tmp_path)
|
||||
from tools.transcription_tools import transcribe_audio, get_stt_model_from_config
|
||||
stt_model = get_stt_model_from_config()
|
||||
result = await asyncio.to_thread(transcribe_audio, tmp_path, model=stt_model)
|
||||
|
||||
if not result.get("success"):
|
||||
await self._send_to_session(session_id, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue