M0: 기술 검증 - 구조 설계, STT 워커, 앱 코어, 게임 PC 진단
- docs/dev/ARCHITECTURE.md: 코어-워커-사이트 인터페이스 계약 - worker/: faster-whisper 한국어 STT, 음량 정규화, 4단계 잡음 판정, 사전 교정, GPU 감지·모델/CUDA 다운로드, 롤 채팅 OCR·r3dlog, 파인튜닝 파이프라인 (39 tests) - app/src/core: 디스코드 DAVE 음성 녹음(Ogg Opus), STT 대기열, 발로란트/롤 로컬 API 어댑터, 타임라인·기록 API, 사이트 중계, 7일 음성 삭제, 진단 - tools/gen-dictionary.mjs: 공식 게임 데이터 기반 기본 단어사전 (1993단어) - M0 결과: DAVE 연결 1.06s Ready, CPU tiny STT 3.6s→0.31s, 가짜 Riot 서버 통합 테스트 통과 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
58
app/test/fixtures/make-val-details.ts
vendored
Normal file
58
app/test/fixtures/make-val-details.ts
vendored
Normal file
@@ -0,0 +1,58 @@
|
||||
// 발로란트 match-details 형태의 합성 데이터 (pd.<shard>.a.pvp.net/match-details/v1/matches/{id} 응답 구조)
|
||||
export const SELF = 'self-puuid-0001';
|
||||
export const ASCENT = '/Game/Maps/Ascent/Ascent';
|
||||
const JETT = 'add6443a-41bd-e414-f6ad-e58d267f4e95';
|
||||
const SAGE = '569fdd95-4d10-43ab-ca70-79becc718b46';
|
||||
const REYNA = 'a3bfb853-43b2-7238-a4f1-ad90e9e46bcc';
|
||||
const VANDAL = '9c82e19d-4575-0200-1a81-3eacf00cf872';
|
||||
|
||||
export function makeValDetails(gameStart: number) {
|
||||
const players = [
|
||||
{ subject: SELF, gameName: '승한', tagLine: 'KR1', teamId: 'Blue', characterId: JETT, competitiveTier: 15, stats: { score: 4200, roundsPlayed: 3, kills: 3, deaths: 1, assists: 1 } },
|
||||
{ subject: 'ally-2', gameName: '민수', tagLine: 'KR1', teamId: 'Blue', characterId: SAGE, competitiveTier: 14, stats: { score: 1800, roundsPlayed: 3, kills: 1, deaths: 2, assists: 3 } },
|
||||
{ subject: 'enemy-1', gameName: '상대1', tagLine: '0000', teamId: 'Red', characterId: REYNA, competitiveTier: 15, stats: { score: 3000, roundsPlayed: 3, kills: 2, deaths: 3, assists: 0 } },
|
||||
];
|
||||
const kill = (gameTime: number, roundTime: number, killer: string, victim: string) => ({
|
||||
gameTime,
|
||||
roundTime,
|
||||
killer,
|
||||
victim,
|
||||
victimLocation: { x: 6500, y: -7000 },
|
||||
assistants: [],
|
||||
playerLocations: [],
|
||||
finishingDamage: { damageType: 'Weapon', damageItem: VANDAL.toUpperCase(), isSecondaryFireMode: false },
|
||||
});
|
||||
const roundResults = [
|
||||
{
|
||||
roundNum: 0,
|
||||
roundResult: 'Eliminated',
|
||||
winningTeam: 'Blue',
|
||||
playerStats: [
|
||||
{ subject: SELF, kills: [kill(60000, 25000, SELF, 'enemy-1')], economy: { spent: 800, remaining: 0, weapon: '', loadoutValue: 800 } },
|
||||
{ subject: 'enemy-1', kills: [kill(70000, 35000, 'enemy-1', 'ally-2')] },
|
||||
],
|
||||
},
|
||||
// 킬 없는 라운드 (시간 초과) → 보간
|
||||
{ roundNum: 1, roundResult: 'Round timer expired', winningTeam: 'Red', playerStats: [] },
|
||||
{
|
||||
roundNum: 2,
|
||||
roundResult: 'Bomb defused',
|
||||
winningTeam: 'Blue',
|
||||
plantRoundTime: 40000,
|
||||
defuseRoundTime: 80000,
|
||||
bombPlanter: 'enemy-1',
|
||||
bombDefuser: SELF,
|
||||
plantSite: 'B',
|
||||
playerStats: [{ subject: SELF, kills: [kill(330000, 20000, SELF, 'enemy-1'), kill(331000, 21000, SELF, 'enemy-1')] }],
|
||||
},
|
||||
];
|
||||
return {
|
||||
matchInfo: { matchId: 'm-0001', mapId: ASCENT, gameStartMillis: gameStart, gameLengthMillis: 420000, queueID: 'competitive', gameMode: '/Game/GameModes/Bomb/BombGameMode.BombGameMode_C', isCompleted: true },
|
||||
players,
|
||||
teams: [
|
||||
{ teamId: 'Blue', won: true, roundsWon: 2 },
|
||||
{ teamId: 'Red', won: false, roundsWon: 1 },
|
||||
],
|
||||
roundResults,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user