lyrics-transcriber 0.55.3__py3-none-any.whl → 0.56.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.
@@ -5,7 +5,7 @@
5
5
  <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>Lyrics Transcriber Analyzer</title>
8
- <script type="module" crossorigin src="/assets/index-BjASXC8R.js"></script>
8
+ <script type="module" crossorigin src="/assets/index-B35iaySc.js"></script>
9
9
  </head>
10
10
  <body>
11
11
  <div id="root"></div>
@@ -365,13 +365,18 @@ class AnchorSequence:
365
365
  """Create AnchorSequence from dictionary."""
366
366
  # Handle both old and new dictionary formats
367
367
  if "words" in data:
368
- # Old format - use backwards compatible constructor
368
+ # Old format - convert to new format without setting _words
369
+ # This ensures to_dict() always returns the new format
370
+ words = data["words"]
369
371
  return cls(
370
- data["words"],
371
- data["transcription_position"],
372
- data["reference_positions"],
373
- data["confidence"],
374
- id=data.get("id", WordUtils.generate_id())
372
+ id=data.get("id", WordUtils.generate_id()),
373
+ transcribed_word_ids=[WordUtils.generate_id() for _ in words],
374
+ transcription_position=data["transcription_position"],
375
+ reference_positions=data["reference_positions"],
376
+ reference_word_ids={source: [WordUtils.generate_id() for _ in words]
377
+ for source in data["reference_positions"].keys()},
378
+ confidence=data["confidence"],
379
+ # Don't set _words - this ensures we always use the new format
375
380
  )
376
381
  else:
377
382
  # New format
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: lyrics-transcriber
3
- Version: 0.55.3
3
+ Version: 0.56.0
4
4
  Summary: Automatically create synchronised lyrics files in ASS and MidiCo LRC formats with word-level timestamps, using Whisper and lyrics from Genius and Spotify
5
5
  License: MIT
6
6
  Author: Andrew Beveridge
@@ -4,7 +4,7 @@ lyrics_transcriber/cli/cli_main.py,sha256=kMWoV_89KRD2XAU39Brs2rdkbQmG6OxrEn7SAh
4
4
  lyrics_transcriber/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  lyrics_transcriber/core/config.py,sha256=euwOOtuNbXy4-a1xs8QKdjcf5jXZQle0zf6X1Wthurw,1229
6
6
  lyrics_transcriber/core/controller.py,sha256=66qwIv-2jEW94wU5RVFRIcfrTyszC-aC_Fcx5dCjG7k,20255
7
- lyrics_transcriber/correction/anchor_sequence.py,sha256=bodjprc3Sc2ykFBXUjwoX77OHcElc2q_sfqMOG36XwU,31869
7
+ lyrics_transcriber/correction/anchor_sequence.py,sha256=Bz08zB8yS8orz73aA5dDyNUgBBU87KtQM6yOZGNDoFI,32228
8
8
  lyrics_transcriber/correction/corrector.py,sha256=wwSLHat4SGKEJffFQVcmSfMN_I8Drv-jpeTkO8ndLu0,20930
9
9
  lyrics_transcriber/correction/handlers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
10
  lyrics_transcriber/correction/handlers/base.py,sha256=ZXYMFgbCmlD62dpqdFwFPlcePdHKEFrABffnG_Mu5mI,1687
@@ -28,7 +28,7 @@ lyrics_transcriber/frontend/README.md,sha256=-D6CAfKTT7Y0V3EjlZ2fMy7fyctFQ4x2TJ9
28
28
  lyrics_transcriber/frontend/__init__.py,sha256=nW8acRSWTjXoRwGqcTU4w-__X7tMAE0iXL0uihBN3CU,836
29
29
  lyrics_transcriber/frontend/eslint.config.js,sha256=3ADH23ANA4NNBKFy6nCVk65e8bx1DrVd_FIaYNnhuqA,734
30
30
  lyrics_transcriber/frontend/index.html,sha256=KfqJVONzpUyPIwV73nZRiCWlwLnFWeB3z0vzxDPNudU,376
31
- lyrics_transcriber/frontend/package.json,sha256=pdY_k8Na4bnEgCFpI3JO9BCmfCJ-T6T3We80AncGpFY,1182
31
+ lyrics_transcriber/frontend/package.json,sha256=KQCOhygDWRj4Iu6SnZevVy8yfHMyAHeRnLNjWrkP69M,1182
32
32
  lyrics_transcriber/frontend/public/vite.svg,sha256=SnSK_UQ5GLsWWRyDTEAdrjPoeGGrXbrQgRw6O0qSFPs,1497
33
33
  lyrics_transcriber/frontend/src/App.tsx,sha256=f1-dp-MU8vap18eAXacwVDO5P4eE2iG9zSvjau-7NJs,6533
34
34
  lyrics_transcriber/frontend/src/api.ts,sha256=UgqPc1jo8DEVgxh3_9Lyf9GBsHYpqMAqsPEE5BzTV4w,6640
@@ -82,9 +82,9 @@ lyrics_transcriber/frontend/update_version.js,sha256=PxkqCnsucXnXiIqutsanVcx00Gq
82
82
  lyrics_transcriber/frontend/vite.config.d.ts,sha256=S5bdGf0pSdKM6A6RNBKwAm3EIeW_bDHYfHtesRtXU7Q,76
83
83
  lyrics_transcriber/frontend/vite.config.js,sha256=P4GuPgRZzwEWPQZpyujUe7eA3mjPoFAe2CgE5sQAXg8,232
84
84
  lyrics_transcriber/frontend/vite.config.ts,sha256=8FdW0dN8zDFqfhQSxX5h7sIu72X2piLYlp_TZYRQvBQ,216
85
- lyrics_transcriber/frontend/web_assets/assets/index-BjASXC8R.js,sha256=rpT-DStjixqtO4RBSnk0uiDM4QaTo6HDbQ8S_woeAHo,1257959
86
- lyrics_transcriber/frontend/web_assets/assets/index-BjASXC8R.js.map,sha256=S2YjqWImKzUsUm7iZREVCihY8lWDlNIaZWTL9DMETOw,2678465
87
- lyrics_transcriber/frontend/web_assets/index.html,sha256=I30_1vN0QKwOmWIQKqdWU9j4TU0d9UWTBQorch39mxM,400
85
+ lyrics_transcriber/frontend/web_assets/assets/index-B35iaySc.js,sha256=OtJPKBFoFobGPG0tJMMsahHHjTp3jzR_6V6_Q8pWPno,1257959
86
+ lyrics_transcriber/frontend/web_assets/assets/index-B35iaySc.js.map,sha256=81Yn75gt_IW3tYAELztHSWL5H2DVknkaJEppzHfQxD0,2678465
87
+ lyrics_transcriber/frontend/web_assets/index.html,sha256=Nh8gylcOVXGZ5QPgv8L2eLhRcXpmPUPZIW9oQ6CvL1w,400
88
88
  lyrics_transcriber/frontend/web_assets/vite.svg,sha256=SnSK_UQ5GLsWWRyDTEAdrjPoeGGrXbrQgRw6O0qSFPs,1497
89
89
  lyrics_transcriber/frontend/yarn.lock,sha256=wtImLsCO1P1Lpkhc1jAN6IiHQ0As4xn39n0cwKoh4LM,131996
90
90
  lyrics_transcriber/lyrics/base_lyrics_provider.py,sha256=mqlqssKG2AofvqEU48nCwLnz0FhO9Ee6MNixF6GBnYY,9133
@@ -149,10 +149,10 @@ lyrics_transcriber/storage/dropbox.py,sha256=Dyam1ULTkoxD1X5trkZ5dGp5XhBGCn998mo
149
149
  lyrics_transcriber/transcribers/audioshake.py,sha256=hLlnRfkYldP8Y0dMCCwjYlLwqUZPAP7Xzk59G3u5bq0,8939
150
150
  lyrics_transcriber/transcribers/base_transcriber.py,sha256=T3m4ZCwZ9Bpv6Jvb2hNcnllk-lmeNmADDJlSySBtP1Q,6480
151
151
  lyrics_transcriber/transcribers/whisper.py,sha256=YcCB1ic9H6zL1GS0jD0emu8-qlcH0QVEjjjYB4aLlIQ,13260
152
- lyrics_transcriber/types.py,sha256=_YfZuU2KvZyDaYQgx5CGkbOxfR5ffdTOAx6Fk58DC14,27283
152
+ lyrics_transcriber/types.py,sha256=JofMYus_Nopy7tiKZ4mFZWbxLYDrg514daP7bkvh1-Q,27746
153
153
  lyrics_transcriber/utils/word_utils.py,sha256=-cMGpj9UV4F6IsoDKAV2i1aiqSO8eI91HMAm_igtVMk,958
154
- lyrics_transcriber-0.55.3.dist-info/LICENSE,sha256=81R_4XwMZDODHD7JcZeUR8IiCU8AD7Ajl6bmwR9tYDk,1074
155
- lyrics_transcriber-0.55.3.dist-info/METADATA,sha256=KOnTpYaZnqYN4ddrWJMeBhAVsUVyVPf2S0-2xtjaGoU,6637
156
- lyrics_transcriber-0.55.3.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
157
- lyrics_transcriber-0.55.3.dist-info/entry_points.txt,sha256=kcp-bSFkCACAEA0t166Kek0HpaJUXRo5SlF5tVrqNBU,216
158
- lyrics_transcriber-0.55.3.dist-info/RECORD,,
154
+ lyrics_transcriber-0.56.0.dist-info/LICENSE,sha256=81R_4XwMZDODHD7JcZeUR8IiCU8AD7Ajl6bmwR9tYDk,1074
155
+ lyrics_transcriber-0.56.0.dist-info/METADATA,sha256=ZSfUeVikwPyJNn-NvdclPInE7Ns5YsvEiWb1NHT7QKI,6637
156
+ lyrics_transcriber-0.56.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
157
+ lyrics_transcriber-0.56.0.dist-info/entry_points.txt,sha256=kcp-bSFkCACAEA0t166Kek0HpaJUXRo5SlF5tVrqNBU,216
158
+ lyrics_transcriber-0.56.0.dist-info/RECORD,,