argosopentech / argosopentech/LibreTranslate-py

subtitle translation issue for time code

Open
#8 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
131
Forks
13
PR merge metrics
No merged PRs in 30d

Description

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))

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue with the shown LibreTranslateAPI call and the supplied EN-to-FR subtitle text. Inspect how subtitle time codes and surrounding text are passed through translation; done means timestamps remain intact and the output contains translated subtitle text without “Cancer” or “undefined”.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.