From 9161ab0b24f6df1b7a29c20e6eee89612e846fac Mon Sep 17 00:00:00 2001 From: Rufei Zhou Date: Fri, 15 May 2026 15:00:56 -0700 Subject: [PATCH] allow opus --- txtlyric_to_lrc/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/txtlyric_to_lrc/main.py b/txtlyric_to_lrc/main.py index 091f9ee..f9780d4 100644 --- a/txtlyric_to_lrc/main.py +++ b/txtlyric_to_lrc/main.py @@ -14,6 +14,7 @@ song_file_extensions = set([ "m4a", "webm", "flac", # stable-ts likely uses ffmpeg to convert this for whisper + "opus", ]) @click.command() @@ -73,7 +74,6 @@ def srt_to_lrc(srt_text: str) -> str: end_time = subs[-1].end lines.append(f"[{timedelta_to_hhmmssss(end_time)}]") return "\n".join(lines) - if __name__ == "__main__": main()