- Notifications
You must be signed in to change notification settings - Fork2
lxaw/GoogleSubtitleGenerator
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
- Uses GoogleTranslate to create subtitle files for imported audio. If video, converts the video to .wav and does the same thing. Has potential to translate between languages.
- Because I do not have a "premium" Google account (or whatever it is called for the paid API), I do not have access to all of the features. The biggest of these is timestamps.Besides the payment, there are some barriers implicit to using automated translation. The biggest one is that translation engines as of now are not the best when it comes to more muddied audio.For instance, this translation works very well with crisp clips of one or two people speaking at turns, but loses power as background voices / noises come into play. This would best be usedfor something like getting translations of audiobooks, or podcasts (anything with very clear audio).
- Translates audio clips!
- Translates video clips!
- Creates subtitle files for each clip!
- Allows for translation from a source lang to a target lang! (Look at the files w/in here)
- speech_recognition:https://pypi.org/project/SpeechRecognition/
- moviepy:https://pypi.org/project/moviepy/
- os:https://docs.python.org/3/library/os.html
- time:https://docs.python.org/3/library/time.html
- pydub:https://pypi.org/project/pydub/
- math:https://docs.python.org/3/library/math.html
- srthttps://pypi.org/project/srt/
- ffmeg, avapi (has to be run on linux or windows wsl)
- google_trans_new
- See if there is anyway to get the timestamps. Try to play around with slowing down the audio / changing pitch to improve translation quality.
- If this code or anyother I have written has helped you, feel free to make a donation athttps://www.buymeacoffee.com/whalenlexn.
About
Using GoogleTranslate to generate automatic subtitles of videos.
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Contributors2
Uh oh!
There was an error while loading.Please reload this page.