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

I can't make it rotate #8

Open
gersooonn opened this issue Aug 23, 2023 · 3 comments
Open

I can't make it rotate #8

gersooonn opened this issue Aug 23, 2023 · 3 comments

Comments

@gersooonn
Copy link

gersooonn commented Aug 23, 2023

Even though it seems so obvious, but I can't get it to run, and I've been after it for days. Transform .srt subtitles into audio synchronously.
Could you help me make it run in Portuguese Brazil?

@bnsantoso
Copy link
Owner

bnsantoso commented Aug 23, 2023

I assume you want to use the fairseq model. The code below will ensure that the audio speed and position match the subtitle's duration and position. If it doesn't help, please tell me more about your problem and make sure all the dependencies are already installed on your computer.

from subtoaudio import SubToAudio

sub = SubToAudio(languages='por')
subtitle = sub.subtitle("yoursubtitle.srt")
sub.convert_to_audio(sub_data=subtitle, tempo_mode="precise")

Or you can try it in Colab Notebook : Open In Colab.
Fill the form like this fairseq_language:"por" , subtitle_path:"yoursubtitle.srt", tempo_mode:"precise" and run it one by one.

@gersooonn
Copy link
Author

gersooonn commented Aug 24, 2023

I managed to get through the colab, it works with other coqui.tts models too, would it be the Bark model?
Do you have any means of contact, so we can talk discord, telegram? I have some ideas, and there's another working model missing some tweaks to the .srt would be the sync that doesn't fit, with the very realistic voice.

@bnsantoso
Copy link
Owner

yes i will fix the bark problem. well you can actualy write your idea here. :D

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

2 participants