kadirnar / whisper-plus

WhisperPlus: Faster, Smarter, and More Capable 🚀
Apache License 2.0
1.67k stars 133 forks source link

Colab notebook ImportError: cannot import name 'download_and_convert_to_mp3' from 'whisperplus' #110

Closed stevevaius2015 closed 3 months ago

stevevaius2015 commented 3 months ago

I can not run Colab notebook to test it. I received following error on from whisperplus import SpeechToTextPipeline, download_and_convert_to_mp3 section

ImportError: cannot import name 'download_and_convert_to_mp3' from 'whisperplus' (/usr/local/lib/python3.10/dist-packages/whisperplus/__init__.py)

kadirnar commented 3 months ago

I updated the functions. You can look at the readme file.

from whisperplus import SpeechToTextPipeline, download_youtube_to_mp3

url = "https://www.youtube.com/watch?v=di3rHkEZuUw"
audio_path = download_youtube_to_mp3(url, output_dir="downloads", filename="test")