feat(lightwrite): add STT lyrics transcription integration

Integrate mana-stt service for automatic lyrics transcription:

- Add SttService to call mana-stt /transcribe endpoint
- Extend beats schema with transcription status fields
- Add POST /beats/:id/transcribe endpoint
- Add GET /beats/stt/available endpoint
- Update BeatUploader with auto-transcription after upload
- Show transcription progress and retry button on failure
This commit is contained in:
Till-JS 2026-02-16 15:19:14 +01:00
parent 20db01628a
commit 9dc6c111d3
11 changed files with 319 additions and 4 deletions

View file

@ -1,3 +1,5 @@
export type TranscriptionStatus = 'none' | 'pending' | 'completed' | 'failed';
export interface Beat {
id: string;
projectId: string;
@ -7,6 +9,10 @@ export interface Beat {
bpm?: number | null;
bpmConfidence?: number | null;
waveformData?: WaveformData | null;
// STT Transcription fields
transcriptionStatus?: TranscriptionStatus | null;
transcriptionError?: string | null;
transcribedAt?: Date | null;
createdAt: Date;
}