GithubHelp home page GithubHelp logo

Comments (5)

abhirooptalasila avatar abhirooptalasila commented on May 13, 2024 1

Hi
Could you please detail the steps you took leading up to this issue?
Here's a similar issue on Mozilla Discourse. Is this similar to what you're facing?

from autosub.

silexxx avatar silexxx commented on May 13, 2024

yes I found the issue the mentioned thread helped me thank you so much for the quick response.

from autosub.

silexxx avatar silexxx commented on May 13, 2024

And I am running this code:
import os
import speech_recognition as sr

filename="1"
command2mp3 = f"ffmpeg -i {filename}.mp4 {filename}.mp3"
command2wav = f"ffmpeg -i {filename}.mp3 {filename}.wav"

os.system(command2mp3)
os.system(command2wav)

filename=f"{filename}.wav"

r=sr.Recognizer()

with sr.AudioFile(filename) as source:
audio_data=r.record(source)
text=r.recognize_google(audio_data)
print(text)

And it is giving me the speech text from the wave file pretty good can you tell me how to make a subtitle file out of that text

from autosub.

abhirooptalasila avatar abhirooptalasila commented on May 13, 2024

Hi
Can you tell me what the WAV file is in this context?

writeToFile.py handles writing the subtitles to the SRT file. It recieves the time stamps and text for each spoken sentence from main.py
Please go through the README properly to understand the flow of execution.

from autosub.

silexxx avatar silexxx commented on May 13, 2024

WAV sound format and thank you I found the way to do them

from autosub.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.