lyrics-transcriber 0.34.2__py3-none-any.whl → 0.35.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- lyrics_transcriber/core/controller.py +10 -1
- lyrics_transcriber/correction/corrector.py +4 -3
- lyrics_transcriber/frontend/dist/assets/index-CQCER5Fo.js +181 -0
- lyrics_transcriber/frontend/dist/index.html +1 -1
- lyrics_transcriber/frontend/src/App.tsx +6 -2
- lyrics_transcriber/frontend/src/api.ts +9 -0
- lyrics_transcriber/frontend/src/components/AudioPlayer.tsx +155 -0
- lyrics_transcriber/frontend/src/components/CorrectionMetrics.tsx +1 -1
- lyrics_transcriber/frontend/src/components/DetailsModal.tsx +23 -191
- lyrics_transcriber/frontend/src/components/EditModal.tsx +407 -0
- lyrics_transcriber/frontend/src/components/LyricsAnalyzer.tsx +255 -221
- lyrics_transcriber/frontend/src/components/ModeSelector.tsx +39 -0
- lyrics_transcriber/frontend/src/components/ReferenceView.tsx +35 -264
- lyrics_transcriber/frontend/src/components/ReviewChangesModal.tsx +232 -0
- lyrics_transcriber/frontend/src/components/SegmentDetailsModal.tsx +64 -0
- lyrics_transcriber/frontend/src/components/TimelineEditor.tsx +315 -0
- lyrics_transcriber/frontend/src/components/TranscriptionView.tsx +116 -138
- lyrics_transcriber/frontend/src/components/WordEditControls.tsx +116 -0
- lyrics_transcriber/frontend/src/components/shared/components/HighlightedText.tsx +243 -0
- lyrics_transcriber/frontend/src/components/shared/components/SourceSelector.tsx +28 -0
- lyrics_transcriber/frontend/src/components/shared/components/Word.tsx +52 -0
- lyrics_transcriber/frontend/src/components/{constants.ts → shared/constants.ts} +1 -0
- lyrics_transcriber/frontend/src/components/shared/hooks/useWordClick.ts +137 -0
- lyrics_transcriber/frontend/src/components/{styles.ts → shared/styles.ts} +1 -1
- lyrics_transcriber/frontend/src/components/shared/types.ts +99 -0
- lyrics_transcriber/frontend/src/components/shared/utils/newlineCalculator.ts +37 -0
- lyrics_transcriber/frontend/src/components/shared/utils/referenceLineCalculator.ts +76 -0
- lyrics_transcriber/frontend/src/types.ts +2 -43
- lyrics_transcriber/frontend/tsconfig.tsbuildinfo +1 -1
- lyrics_transcriber/lyrics/spotify.py +11 -0
- lyrics_transcriber/output/generator.py +28 -11
- lyrics_transcriber/review/server.py +38 -12
- {lyrics_transcriber-0.34.2.dist-info → lyrics_transcriber-0.35.0.dist-info}/METADATA +1 -1
- {lyrics_transcriber-0.34.2.dist-info → lyrics_transcriber-0.35.0.dist-info}/RECORD +37 -24
- lyrics_transcriber/frontend/dist/assets/index-DqFgiUni.js +0 -245
- lyrics_transcriber/frontend/src/components/DebugPanel.tsx +0 -311
- {lyrics_transcriber-0.34.2.dist-info → lyrics_transcriber-0.35.0.dist-info}/LICENSE +0 -0
- {lyrics_transcriber-0.34.2.dist-info → lyrics_transcriber-0.35.0.dist-info}/WHEEL +0 -0
- {lyrics_transcriber-0.34.2.dist-info → lyrics_transcriber-0.35.0.dist-info}/entry_points.txt +0 -0
@@ -279,7 +279,11 @@ class LyricsTranscriber:
|
|
279
279
|
anchor_sequences=[],
|
280
280
|
gap_sequences=[],
|
281
281
|
resized_segments=[], # Will be populated later
|
282
|
-
metadata={
|
282
|
+
metadata={
|
283
|
+
"correction_type": "none",
|
284
|
+
"reason": "no_reference_lyrics",
|
285
|
+
"audio_filepath": self.audio_filepath, # Add audio filepath
|
286
|
+
},
|
283
287
|
)
|
284
288
|
return
|
285
289
|
|
@@ -288,6 +292,11 @@ class LyricsTranscriber:
|
|
288
292
|
transcription_results=self.results.transcription_results, lyrics_results=self.results.lyrics_results
|
289
293
|
)
|
290
294
|
|
295
|
+
# Add audio filepath to metadata
|
296
|
+
if not corrected_data.metadata:
|
297
|
+
corrected_data.metadata = {}
|
298
|
+
corrected_data.metadata["audio_filepath"] = self.audio_filepath
|
299
|
+
|
291
300
|
# Store corrected results
|
292
301
|
self.results.transcription_corrected = corrected_data
|
293
302
|
self.logger.info("Lyrics correction completed")
|
@@ -38,9 +38,9 @@ class LyricsCorrector:
|
|
38
38
|
NoSpacePunctuationMatchHandler(),
|
39
39
|
SyllablesMatchHandler(),
|
40
40
|
ExtendAnchorHandler(),
|
41
|
-
RepeatCorrectionHandler(),
|
42
|
-
SoundAlikeHandler(),
|
43
|
-
LevenshteinHandler(),
|
41
|
+
# RepeatCorrectionHandler(),
|
42
|
+
# SoundAlikeHandler(),
|
43
|
+
# LevenshteinHandler(),
|
44
44
|
]
|
45
45
|
|
46
46
|
@property
|
@@ -134,6 +134,7 @@ class LyricsCorrector:
|
|
134
134
|
def _process_gaps(self, gap_sequences: List[GapSequence]) -> List[WordCorrection]:
|
135
135
|
"""Process each gap using available handlers until all words are corrected or no handlers remain."""
|
136
136
|
all_corrections = []
|
137
|
+
# return all_corrections
|
137
138
|
|
138
139
|
for gap in gap_sequences:
|
139
140
|
self.logger.debug(f"Processing gap: {gap.text}")
|