mirror of
https://github.com/OpenSquawk/OpenSquawk
synced 2026-08-15 10:36:17 +08:00
bc23afc04056b190994ab374c6a88ff30638eeef
Detlef's original "Rückmeldungen sollten gesprochen werden können" request was about speaking *into* the readback rather than typing every field — this wires that up using the existing /api/atc/ptt Whisper endpoint. - Mic button in the readback control row records via MediaRecorder, posts base64 audio to /api/atc/ptt, then maps the transcription onto the lesson's input fields via normalized substring matching against each field's expected value plus alternatives. - Callsign-flagged fields additionally allow a sliding-window Levenshtein match because Whisper routinely garbles airline names. - The transcription is shown back to the user so they can verify what was heard before pressing Check. - The button is hidden when the Speaches speech server is configured but unreachable — a small "Speech server unavailable" hint takes its place. Browsers without MediaRecorder/getUserMedia never see it. - Recording state animates the button; transcription state shows a spinner. Stops cleanly on Reset and on component unmount. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Description
No description provided
Languages
TypeScript
67.3%
Vue
31.8%
CSS
0.6%
JavaScript
0.3%