lyrics-transcriber 0.3.0__py3-none-any.whl → 0.3.2__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.
@@ -2,7 +2,5 @@ import warnings
2
2
 
3
3
  warnings.simplefilter("ignore")
4
4
 
5
- with warnings.catch_warnings():
6
- warnings.simplefilter("ignore")
7
- from .transcriber import LyricsTranscriber
5
+ from .transcriber import LyricsTranscriber
8
6
 
@@ -1,6 +1,7 @@
1
1
  import os
2
2
  import re
3
3
  import json
4
+ import shutil
4
5
  import hashlib
5
6
  import datetime
6
7
  import subprocess
@@ -62,6 +63,17 @@ class LyricsTranscriber:
62
63
  else:
63
64
  log(f"not fetching lyrics from Genius as song_artist and song_title were not set")
64
65
 
66
+ # TODO: attempt to match up segments from genius lyrics with whisper segments
67
+
68
+ # TODO: output synced lyrics from self.whisper_result_dict in ASS format too, using code from the_tuul
69
+
70
+ if self.output_dir is None:
71
+ self.output_dir = os.getcwd()
72
+
73
+ self.result_metadata["whisper_json_filepath"] = shutil.copy(self.result_metadata["whisper_json_filepath"], self.output_dir)
74
+ self.result_metadata["midico_lrc_filepath"] = shutil.copy(self.result_metadata["midico_lrc_filepath"], self.output_dir)
75
+ self.result_metadata["genius_lyrics_filepath"] = shutil.copy(self.result_metadata["genius_lyrics_filepath"], self.output_dir)
76
+
65
77
  return self.result_metadata
66
78
 
67
79
  def write_genius_lyrics_file(self):
@@ -34,6 +34,7 @@ def main():
34
34
  )
35
35
 
36
36
  parser.add_argument("--cache_dir", default="/tmp/lyrics-transcriber-cache/", help="Optional cache directory.")
37
+
37
38
  parser.add_argument(
38
39
  "--output_dir",
39
40
  default=None,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lyrics-transcriber
3
- Version: 0.3.0
3
+ Version: 0.3.2
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
@@ -0,0 +1,9 @@
1
+ lyrics_transcriber/__init__.py,sha256=bIRjsXAzlghS1rQxWNLU0wppZy0T_iciN9EclHLwNrQ,94
2
+ lyrics_transcriber/transcriber.py,sha256=dC5doDL_XWb0Ic-n7nDRZRD4LFIp0vVd1_BzJ1t_PAY,8814
3
+ lyrics_transcriber/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ lyrics_transcriber/utils/cli.py,sha256=Xeu7b5phbU2jEUIP0uve0_H1ees0dD0YZfjLzeBEWAA,3247
5
+ lyrics_transcriber-0.3.2.dist-info/LICENSE,sha256=BiPihPDxhxIPEx6yAxVfAljD5Bhm_XG2teCbPEj_m0Y,1069
6
+ lyrics_transcriber-0.3.2.dist-info/METADATA,sha256=sBbEVRgIu9-l9mgpN9rrkB0qy7RsqhAwBPllqnc3dsk,1077
7
+ lyrics_transcriber-0.3.2.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
8
+ lyrics_transcriber-0.3.2.dist-info/entry_points.txt,sha256=lh6L-iR5CGELaNcouDK94X78eS5Ua_tK9lI4UEkza-k,72
9
+ lyrics_transcriber-0.3.2.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- lyrics_transcriber/__init__.py,sha256=IY-8EaOZ8N753ZSWisQYoov_WLrNlslVlSWz30gioFg,166
2
- lyrics_transcriber/transcriber.py,sha256=86eEqkdlRXsWJfvWfK4oeizeNFGDtWyTw8_EsXcPjnE,8127
3
- lyrics_transcriber/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- lyrics_transcriber/utils/cli.py,sha256=Hx_AtPV4OcaJGLUyPAWRBmfw7tWAcRChExPXksLbQ2U,3246
5
- lyrics_transcriber-0.3.0.dist-info/LICENSE,sha256=BiPihPDxhxIPEx6yAxVfAljD5Bhm_XG2teCbPEj_m0Y,1069
6
- lyrics_transcriber-0.3.0.dist-info/METADATA,sha256=xsfGW7n7AyVeVDGsJVoq-OJ3ENlVXkspP8oT7BDUTg4,1077
7
- lyrics_transcriber-0.3.0.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
8
- lyrics_transcriber-0.3.0.dist-info/entry_points.txt,sha256=lh6L-iR5CGELaNcouDK94X78eS5Ua_tK9lI4UEkza-k,72
9
- lyrics_transcriber-0.3.0.dist-info/RECORD,,