-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Add arguments time_off
and duration
to transcriber
#1533
Comments
Hi, thank you for the proposal! Looks nice but what is the usecase please? I can't imagine the user needs to start from certain offset instead of just processing the whole file. |
Some use cases:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently the transcriber processes the whole input file. From the beginning to the end.
It would be very useful to be able to pass a start time offset and/or a duration to the transcriber.
Here is a proposal how to do it:
Add (ffmpeg's) arguments
time_off
andduration
inpython/vosk/transcriber/cli.py
after line 46.Pass the arguments
time_off
andduration
to ffmpeg in functionresample_ffmpeg
inpython/vosk/transcriber/transcriber.py
(line 115):The function
resample_ffmpeg_async
could be adapted similarly.The text was updated successfully, but these errors were encountered: