- Clone the repository.
git clone https://github.com/mo-root/AudioToVid.git
- Install the dependencies.
pip install -r requirements.txt
- Obtain a Google Custom Search Engine API key for the google_images_search library to work, you can get it from here : https://developers.google.com/custom-search/v1/introduction#identify_your_application_to_google_with_api_key
- Replace "YOUR_API_KEY" in the code with the obtained API Key
gis = GoogleImagesSearch('your_dev_api_key', 'your_project_cx')
- Run the server
python app.py
- Open your browser and go to
http://localhost:5000/
- Upload an mp3 file and wait for the video to be generated.
This project is built using:
Tech | Explanation |
---|---|
Flask | A micro web framework for Python |
SpeechRecognition | library for searching for images using words |
moviepy | A library for video editing in python |
CSS and JavaScript | 3D and animation effects |
- google-images-search library is not officially supported and you may face some issues while using it.
- You may face some issues while using moviepy with some specific versions of ffmpeg. You can install the latest version of ffmpeg using pip.
- This is a basic example, you can add more functionality as per your requirement, for example, you can add more transition effects, change the duration of each image, and so on.
This project is licensed under the MIT License.
All contributions are welcome! If you want to add new features or improve something, please open a pull request.