feat(t2-live): archi audio Voie A + Bugs 4/5/6 + indicateur de prise de parole (Sprint 6e)
- Voie A WAV : AudioContext unique au rate natif, tap AudioWorklet sur mixGain, uplink rate-aware 16k, alignement par horloge unique (fin offset/resample/concat). Anti-echo candidat. Cycle start=ws.onopen / stop=Terminer / cancel=aucun WAV. - Bug 4 : 'Voir le rapport' route vers le rapport (navigatingAwayRef). - Bug 5 : 'Annuler' (cancelDialogue) - arret sans evaluation, sans WAV, sans production. - Bug 6 : 'Nouvelle simulation' route selon le type via champ tache propage (Report). - Indicateur de prise de parole : state machine USER_SPEAKING/USER_SILENT (RMS + hysteresis). - Cleanup : retrait instrumentation [BISECT] ; ref VAD renomme lastAiChunkTsRef. - Removed : code mort mixTracksToInt16, resample16kTo24k + tests.
This commit is contained in:
parent
9bf95f5c05
commit
72795e924e
16 changed files with 848 additions and 257 deletions
|
|
@ -36,6 +36,7 @@ export function getReport(id: string): Promise<Report> {
|
|||
return {
|
||||
...state.rapport,
|
||||
simulation_id: state.simulation_id,
|
||||
tache: state.tache,
|
||||
erreurs_codes: state.rapport.erreurs_codes as Report['erreurs_codes'],
|
||||
exercices: state.exercices as Report['exercices'],
|
||||
exercices_status: state.exercices_status,
|
||||
|
|
|
|||
|
|
@ -13,6 +13,8 @@
|
|||
* SEC-05 : textes IA rendus via react-markdown, jamais dangerouslySetInnerHTML.
|
||||
*/
|
||||
|
||||
import type { Tache } from '@/entities/production/types'
|
||||
|
||||
/** Codes taxonomie d'erreurs — valeurs exhaustives dans `TAXONOMIE_ERREURS.md` v1.0. */
|
||||
export type CritereCode =
|
||||
| 'adequation_tache'
|
||||
|
|
@ -101,6 +103,12 @@ export type NclcCible = 9 | 10
|
|||
*/
|
||||
export interface Report {
|
||||
simulation_id: string
|
||||
/**
|
||||
* Tâche d'origine (propagée depuis `SimulationState`). Permet de router le
|
||||
* retour « Nouvelle simulation » vers la bonne sélection (EO vs EE) sans
|
||||
* plomberie de query param. Optionnel : absent des payloads `POST /corrections/*`.
|
||||
*/
|
||||
tache?: Tache
|
||||
score: number // /20
|
||||
nclc: number // NCLC atteint — ex. 8
|
||||
nclc_cible: NclcCible
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue