Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert numbers to words to obtain timing data from load_align_model() #135

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

louispan
Copy link

@louispan louispan commented Apr 6, 2024

No description provided.

@louispan louispan force-pushed the louispan/numbers_to_words branch 3 times, most recently from f0501dc to da98e65 Compare April 6, 2024 17:47
@rakuri255
Copy link
Owner

Cool!!
Seems good. Will test you PR

@@ -80,6 +100,10 @@ def transcribe_with_whisper(
)
sys.exit(1)

# convert any numbers to words so align will have timing
for obj in result["segments"]:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It only works for English songs. With other languages you would have english words.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants