상위 Story
목표
TTS 발음 합성 API 서비스 함수 구현
구현 내용
API 엔드포인트
| 함수 |
메서드 |
엔드포인트 |
voiceService.synthesize |
POST |
/vocab/voice/synthesize |
구현 예시
export const voiceService = {
synthesize: (wordId, text, voice = 'FEMALE') =>
vocabApi.post('/vocab/voice/synthesize', { wordId, text, voice }),
}
응답 형식
{
"audioUrl": "https://s3.ap-northeast-2.amazonaws.com/...",
"s3Key": "vocab/voice/uuid_female.mp3",
"cached": true
}
완료 조건
상위 Story
목표
TTS 발음 합성 API 서비스 함수 구현
구현 내용
API 엔드포인트
voiceService.synthesize구현 예시
응답 형식
{ "audioUrl": "https://s3.ap-northeast-2.amazonaws.com/...", "s3Key": "vocab/voice/uuid_female.mp3", "cached": true }완료 조건