allow opus
This commit is contained in:
@@ -14,6 +14,7 @@ song_file_extensions = set([
|
|||||||
"m4a",
|
"m4a",
|
||||||
"webm",
|
"webm",
|
||||||
"flac", # stable-ts likely uses ffmpeg to convert this for whisper
|
"flac", # stable-ts likely uses ffmpeg to convert this for whisper
|
||||||
|
"opus",
|
||||||
])
|
])
|
||||||
|
|
||||||
@click.command()
|
@click.command()
|
||||||
@@ -73,7 +74,6 @@ def srt_to_lrc(srt_text: str) -> str:
|
|||||||
end_time = subs[-1].end
|
end_time = subs[-1].end
|
||||||
lines.append(f"[{timedelta_to_hhmmssss(end_time)}]")
|
lines.append(f"[{timedelta_to_hhmmssss(end_time)}]")
|
||||||
return "\n".join(lines)
|
return "\n".join(lines)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
||||||
|
|||||||
Reference in New Issue
Block a user