Spaces:
Runtime error
Runtime error
import ytdownloader | |
import trans | |
import transcribe | |
import texttospeech | |
import audioex | |
from time import sleep | |
import edit | |
import streamlit | |
streamlit.title("Video Dubber") | |
def main(): | |
link = streamlit.text_input("Please enter Youtube video link = ") | |
if streamlit.button("Submit"): | |
ytdownloader.download_youtube_video(link, "video") | |
sleep(5) | |
audioex.ex() | |
sleep(5) | |
video_text = transcribe.transcibe("speech.wav") | |
sleep(5) | |
trans_text = trans.mixtral(video_text) | |
streamlit.text(trans_text) | |
sleep(5) | |
texttospeech.speak(trans_text) | |
sleep(5) | |
edit.mute_and_add_audio("video.mp4", "output.wav", "output_video.mp4") | |
sleep(5) | |
streamlit.video("output_video.mp4") | |
main() | |