Skip to content

Conversation

@mutlusun
Copy link
Contributor

This PR introduces a new audio conversion module that uses pyav to convert audio files to the wave format. pyav bundles it's own version of ffmpeg, thus, we don't need to ship our own (outdated) version. In addition, pyav is already a dependency of faster-whisper, thus no real new dependencies are introduced.

This has the following advantage:

  • ffmpeg is automatically updated from pyav
  • The resulting release files will be smaller (around 240MB)

Tested the current changes with:

python3 noScribe.py --no-gui Audiofile_03.mp3 output.html
python3 -m noScribe --no-gui --start 00:01:00 --stop 00:02:00 Audiofile_03.mp3 output-short.html

Unfortunately, I couldn't test whether cancelling an audio file conversion works properly. Conversion was so fast, that I never managed to press fast enough "cancel". Maybe you have a long enough audio file to test that?

Maybe it's safer to merge this after the new release. This way, the changes can be tested over a longer time.

This commit introduces a new audio conversion tool that uses pyav to
convert audio files to the wave format. pyav bundles it's own version of
ffmpeg, thus, we don't need to ship our own (outdated) version. In
addition, pyav is already a dependency of faster-whisper, thus no real
new dependencies are introduced.
@mutlusun
Copy link
Contributor Author

Maybe it's best to merge #230 before, so tests can run properly.

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

Successfully merging this pull request may close these issues.

1 participant