From b4f5d1ff1adad3bea4e1997eef18cb28f517f791 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=B3=B4=EA=B3=A4?= Date: Wed, 11 Feb 2026 20:13:01 +0900 Subject: [PATCH] =?UTF-8?q?fix:=ED=9A=8C=EC=9D=98=EB=A1=9D=20=ED=99=94?= =?UTF-8?q?=EC=9E=90=20=ED=85=8D=EC=8A=A4=ED=8A=B8=EC=97=90=EC=84=9C=20=5F?= =?UTF-8?q?=5F=20=EB=85=B8=EC=9D=B4=EC=A6=88=20=EB=AC=B8=EC=9E=90=20?= =?UTF-8?q?=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - GoogleCloudService: STT 결과에서 언더스코어만으로 구성된 단어 필터링 - 프론트엔드: 기존 저장된 데이터 표시 시에도 언더스코어 제거 Co-Authored-By: Claude Opus 4.6 --- app/Services/GoogleCloudService.php | 8 +++++++- resources/views/juil/meeting-minutes.blade.php | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app/Services/GoogleCloudService.php b/app/Services/GoogleCloudService.php index 960907b9..7dfa1357 100644 --- a/app/Services/GoogleCloudService.php +++ b/app/Services/GoogleCloudService.php @@ -442,6 +442,12 @@ private function parseDiarizationResult(array $operationResult): ?array $startMs = $this->parseGoogleTimeToMs($word['startTime'] ?? '0s'); $endMs = $this->parseGoogleTimeToMs($word['endTime'] ?? '0s'); + // 언더스코어만으로 구성된 노이즈 단어 제거 + $cleanWord = preg_replace('/^_+$/', '', $wordText); + if ($cleanWord === '') { + continue; + } + if ($speakerTag !== $currentSpeaker && $currentSpeaker !== null && ! empty($currentWords)) { $segments[] = [ 'speaker_name' => '화자 ' . $currentSpeaker, @@ -456,7 +462,7 @@ private function parseDiarizationResult(array $operationResult): ?array } $currentSpeaker = $speakerTag; - $currentWords[] = $wordText; + $currentWords[] = $cleanWord; } // 마지막 세그먼트 diff --git a/resources/views/juil/meeting-minutes.blade.php b/resources/views/juil/meeting-minutes.blade.php index b47fbd8b..477eaadc 100644 --- a/resources/views/juil/meeting-minutes.blade.php +++ b/resources/views/juil/meeting-minutes.blade.php @@ -796,7 +796,7 @@ function ConversationView({ segments, interimText, isRecording, currentSpeaker, )}
- {group.texts.map((t, ti) => {ti > 0 ? ' ' : ''}{t.text})} + {group.texts.map((t, ti) => {ti > 0 ? ' ' : ''}{t.text.replace(/_+/g, '')})}
);