Diagnostic : vumètre micro dans l'interface et logs serveur des segments/transcriptions

https://claude.ai/code/session_01YHMp3EKzr4s6o8w1ygxuUe
This commit is contained in:
Claude committed 2026-06-12 11:10:47 +00:00
1 parent 480a380dde
commit b32119d5c0
4 files changed
+31

No files matched your search

+4
View File
@@ -126,11 +126,15 @@ async def ws_transcribe(ws: WebSocket):
seg = await queue.get()
if seg is None:
return
print(f"[réunion {meeting_id}] segment {seg.t0:.1f}s → {seg.t1:.1f}s "
f"({len(seg.pcm) / 2 / SAMPLE_RATE:.1f}s d'audio), transcription...", flush=True)
try:
text = await transcribe(seg.pcm)
except Exception as exc:
print(f"[réunion {meeting_id}] ERREUR ASR : {exc}", flush=True)
await ws.send_json({"type": "error", "message": f"Transcription échouée : {exc}"})
continue
print(f"[réunion {meeting_id}] texte : {text[:80]!r}", flush=True)
if not text:
continue
await db.execute(