Skip to content

[Feature] 답변 STT(transcript) 단독 조회 API 추가 #17

Description

@HarryBae1011

해결하려는 문제 / 배경

  • 프론트가 Whisper로 변환한 답변 STT 결과(transcript)를 답변 제출 시 함께 전달받는 구조로 바뀌었다.
  • 그런데 이 transcript를 나중에 다시 조회하는 가벼운 API가 없음.
  • 현재 GET /api/v1/answers/{answerId}/analysis가 transcript를 포함하긴 하지만 이 엔드포인트는 speech/STAR/nonverbal/LLM 분석 전체와 묶여 있고 캐시 미스 시 Claude 동기 호출까지 트리거함. (AnswerService.getAnalysis)

제안하는 기능

  • GET /api/v1/answers/{answerId}/transcript 신규 엔드포인트 추가
  • AnswerRepository.findByIdWithQuestionSessionUser(id)로 소유권 확인 후, transcript / durationSec / completionStatus만 반환하는 AnswerTranscriptResponse DTO 신설 (SubmitAnswerResponse.of() 패턴을 따라 정적 팩토리 메서드 사용)
  • LLM 호출 없음, 분석 레코드 존재 여부와 무관하게 항상 응답 가능

완료 조건 / 검증

  • 답변 제출 직후 (분석이 아직 생성되지 않은 상태)에도 해당 엔드포인트로 transcript를 즉시 조회할 수 있음
  • 다른 사용자의 답변 조회 시 403/404 등 소유권 검증이 기존 엔드포인트와 동일하게 동작함

관련 이슈 / PR

없음

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions