R3gm / SoniTranslate

Synchronized Translation for Videos. Video dubbing
Apache License 2.0
465 stars 105 forks source link

[SUGGESTION] Change video speed to match audio speed #77

Open fiaful opened 1 month ago

fiaful commented 1 month ago

Discussed in https://github.com/R3gm/SoniTranslate/discussions/75

Originally posted by **fiaful** August 7, 2024 Hi, the work done so far is simply fantastic and exciting! I saw that among the various settings there is one that allows you to change the speed of the translated speech in order to keep the speed of the video unchanged. It would be very interesting to also be able to do the opposite: adjust the speed of the video in order to keep the speed of the translated speech constant. this is particularly useful in translating tutorials and courses, where the speed of the video does not need to be constant, while keeping the speed of speech constant helps to better understand the content. you might be thinking if this thing is possible? that would be great (or at least it would be for me!) thank you for this wonderful work!
fiaful commented 1 month ago

Or better said, a dynamic adaptation should be made:

if the translated audio is shorter than the original, the video should be kept at its original length (so there would be a short pause between the audio and the video, which would still be fine).

if the translated audio is longer than the original one, the video should be slowed down to adapt to the duration of the new audio (which should be kept at normal speed).

I think a feature like this could be fantastic for tutorials and courses!

levi-creator-max commented 2 weeks ago

Excuse me but, can you add Filipino or Tagalog (Filipino) to SoniTranslate please?