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

subtitle translation issue for time code #8

Open
ahyear opened this issue Mar 3, 2023 · 0 comments
Open

subtitle translation issue for time code #8

ahyear opened this issue Mar 3, 2023 · 0 comments

Comments

@ahyear
Copy link

ahyear commented Mar 3, 2023

when I try tu translate subtitle from EN to FR i get this (miss reading of time frame) :

EN:
[00:00:00.000 --> 00:00:02.000] [MUSIC PLAYING]
[00:00:02.000 --> 00:00:11.400] Got the guy that hey!

FR:
00:00:00,000 -- Cancer 00:00:02,000
[MUSIC PLAYING]
undefined
00:00:02,000 -- Cancer 00:00:11,400
Je l'ai eu !

I use :
libretranslate = os.getenv('LIBRETRANSLATE',"http://127.0.0.1:5000" )
lt = LibreTranslateAPI(libretranslate)
translate = lt.translate("{}".format(to_translate),"en","{}".format(targetlang))

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

No branches or pull requests

1 participant