fix(voice): 음성 답변 content-type 거부 + 오디오 재생 불가 수정#73
Merged
Conversation
증상(prod 로그/설정으로 확인):
- 음성 답변 업로드가 VOICE_INVALID_CONTENT_TYPE 로 거부 —
MediaRecorder 가 "audio/webm;codecs=opus" 를 보내는데 허용 목록은
base MIME 만 가짐.
- "음성 듣기"/음성 재생 불가 — presigned URL 이 내부 호스트
(S3_ENDPOINT=http://minio:38060)를 가리켜 브라우저가 도달 불가.
백엔드:
- VoiceAnswerUploadService: content-type 의 코덱 파라미터를 떼고
base MIME 으로 허용/확장자 판정(baseContentType)
- InterviewMessageService.streamAudio + GET
/api/sessions/{sid}/messages/{mid}/audio: Core 가 인증 거쳐 오디오
바이트 스트리밍(질문=TTS, 답변=원본). presigned 내부호스트 우회.
프론트:
- submitVoiceAnswer: 업로드 전 코덱 파라미터 제거(방어)
- useMessageAudio: 프록시로 blob 받아 object URL 캐싱
- QuestionBubble/AnswerBubble: presigned URL 대신 프록시로 재생
(질문 자동재생/음성 듣기, 내 답변 듣기)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
증상(prod 로그/설정으로 확인):
백엔드:
프론트:
변경 사항