diff --git a/backend/internal/backend/handlers.go b/backend/internal/backend/handlers.go index 7ad7509..150fca1 100644 --- a/backend/internal/backend/handlers.go +++ b/backend/internal/backend/handlers.go @@ -9,6 +9,7 @@ package backend // handleGetRanking, handleGetCover // handleBookPreview, handleChapterText, handleChapterTextPreview, handleChapterMarkdown, handleReindex // handleAudioGenerate, handleAudioStatus, handleAudioProxy, handleAudioStream +// handleTTSAnnounce // handleVoices // handlePresignChapter, handlePresignAudio, handlePresignVoiceSample // handlePresignAvatarUpload, handlePresignAvatar @@ -904,7 +905,119 @@ func (s *Server) handleAudioStream(w http.ResponseWriter, r *http.Request) { // on its next poll as soon as the MinIO object is present. } -// handleAudioPreview handles GET /api/audio-preview/{slug}/{n}. +// handleTTSAnnounce handles GET /api/tts-announce. +// +// Streams a short TTS clip for arbitrary text — used by the UI to announce +// the upcoming chapter number/title through the real