lyrics-transcriber 0.17.2__tar.gz → 0.18.0__tar.gz
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-0.17.2 → lyrics_transcriber-0.18.0}/PKG-INFO +2 -2
- {lyrics_transcriber-0.17.2 → lyrics_transcriber-0.18.0}/lyrics_transcriber/transcriber.py +4 -1
- {lyrics_transcriber-0.17.2 → lyrics_transcriber-0.18.0}/pyproject.toml +3 -4
- {lyrics_transcriber-0.17.2 → lyrics_transcriber-0.18.0}/LICENSE +0 -0
- {lyrics_transcriber-0.17.2 → lyrics_transcriber-0.18.0}/README.md +0 -0
- {lyrics_transcriber-0.17.2 → lyrics_transcriber-0.18.0}/lyrics_transcriber/__init__.py +0 -0
- {lyrics_transcriber-0.17.2 → lyrics_transcriber-0.18.0}/lyrics_transcriber/audioshake_transcriber.py +0 -0
- {lyrics_transcriber-0.17.2 → lyrics_transcriber-0.18.0}/lyrics_transcriber/llm_prompts/README.md +0 -0
- {lyrics_transcriber-0.17.2 → lyrics_transcriber-0.18.0}/lyrics_transcriber/llm_prompts/llm_prompt_lyrics_correction_andrew_handwritten_20231118.txt +0 -0
- {lyrics_transcriber-0.17.2 → lyrics_transcriber-0.18.0}/lyrics_transcriber/llm_prompts/llm_prompt_lyrics_correction_gpt_optimised_20231119.txt +0 -0
- {lyrics_transcriber-0.17.2 → lyrics_transcriber-0.18.0}/lyrics_transcriber/llm_prompts/llm_prompt_lyrics_matching_andrew_handwritten_20231118.txt +0 -0
- {lyrics_transcriber-0.17.2 → lyrics_transcriber-0.18.0}/lyrics_transcriber/llm_prompts/promptfooconfig.yaml +0 -0
- {lyrics_transcriber-0.17.2 → lyrics_transcriber-0.18.0}/lyrics_transcriber/llm_prompts/test_data/ABBA-UnderAttack-Genius.txt +0 -0
- {lyrics_transcriber-0.17.2 → lyrics_transcriber-0.18.0}/lyrics_transcriber/utils/__init__.py +0 -0
- {lyrics_transcriber-0.17.2 → lyrics_transcriber-0.18.0}/lyrics_transcriber/utils/ass.py +0 -0
- {lyrics_transcriber-0.17.2 → lyrics_transcriber-0.18.0}/lyrics_transcriber/utils/cli.py +0 -0
- {lyrics_transcriber-0.17.2 → lyrics_transcriber-0.18.0}/lyrics_transcriber/utils/subtitles.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: lyrics-transcriber
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.18.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
|
Home-page: https://github.com/karaokenerds/python-lyrics-transcriber
|
6
6
|
License: MIT
|
@@ -13,8 +13,8 @@ Classifier: Programming Language :: Python :: 3.9
|
|
13
13
|
Classifier: Programming Language :: Python :: 3.10
|
14
14
|
Classifier: Programming Language :: Python :: 3.11
|
15
15
|
Classifier: Programming Language :: Python :: 3.12
|
16
|
+
Classifier: Programming Language :: Python :: 3.13
|
16
17
|
Requires-Dist: Cython (>=0)
|
17
|
-
Requires-Dist: auditok (>=0.2)
|
18
18
|
Requires-Dist: dtw-python (>=1)
|
19
19
|
Requires-Dist: llvmlite (>=0)
|
20
20
|
Requires-Dist: lyricsgenius (>=3)
|
@@ -969,7 +969,10 @@ class LyricsTranscriber:
|
|
969
969
|
self.logger.debug(f"Using Whisper for transcription with model: {self.transcription_model}")
|
970
970
|
audio = whisper.load_audio(self.audio_filepath)
|
971
971
|
model = whisper.load_model(self.transcription_model, device="cpu")
|
972
|
-
transcription_data = whisper.transcribe(model, audio, language="en",
|
972
|
+
transcription_data = whisper.transcribe(model, audio, language="en", beam_size=5, temperature=0.2, best_of=5)
|
973
|
+
|
974
|
+
# auditok is needed for voice activity detection, but it has OS package dependencies that are hard to install on some platforms
|
975
|
+
# transcription_data = whisper.transcribe(model, audio, language="en", vad="auditok", beam_size=5, temperature=0.2, best_of=5)
|
973
976
|
|
974
977
|
# Remove segments with no words, only music
|
975
978
|
transcription_data["segments"] = [segment for segment in transcription_data["segments"] if segment["text"].strip() != "Music"]
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "lyrics-transcriber"
|
3
|
-
version = "0.
|
3
|
+
version = "0.18.0"
|
4
4
|
description = "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
|
authors = ["Andrew Beveridge <andrew@beveridge.uk>"]
|
6
6
|
license = "MIT"
|
@@ -26,13 +26,12 @@ lyricsgenius = ">=3"
|
|
26
26
|
python-slugify = ">=8"
|
27
27
|
syrics = ">=0"
|
28
28
|
openai = "^1"
|
29
|
-
openai-whisper = ">=20231117"
|
30
29
|
transformers = ">=4"
|
31
|
-
auditok = ">=0.2"
|
32
30
|
whisper-timestamped = ">=1"
|
33
31
|
tenacity = ">=8"
|
32
|
+
openai-whisper = ">=20231117"
|
34
33
|
# Note: after adding openai-whisper and whisper-timestamped with poetry lock, I then removed all traces of triton
|
35
|
-
# from poetry.lock before running poetry install, as triton doesn't support macOS but isn't actually needed for whisper
|
34
|
+
# from poetry.lock before running poetry install, as triton doesn't support macOS but isn't actually needed for whisper
|
36
35
|
# This was the only way I was able to get a working cross-platform build published to PyPI.
|
37
36
|
# To update the lockfile and install/upgrade dependencies, modify the dependency list above then run:
|
38
37
|
# poetry lock; patch -p0 poetry.lock <.github/removetriton.patch; poetry install
|
File without changes
|
File without changes
|
File without changes
|
{lyrics_transcriber-0.17.2 → lyrics_transcriber-0.18.0}/lyrics_transcriber/audioshake_transcriber.py
RENAMED
File without changes
|
{lyrics_transcriber-0.17.2 → lyrics_transcriber-0.18.0}/lyrics_transcriber/llm_prompts/README.md
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{lyrics_transcriber-0.17.2 → lyrics_transcriber-0.18.0}/lyrics_transcriber/utils/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{lyrics_transcriber-0.17.2 → lyrics_transcriber-0.18.0}/lyrics_transcriber/utils/subtitles.py
RENAMED
File without changes
|