Open Thrqureshi opened 2 years ago
Hello.
Thank you for trying this code out. Can you try to increase the sleep timing here https://github.com/pedrojlazevedo/python-video-generator/blob/main/python_video_generator/video_editor/bing.py#L64?
Let me know if it works!
Thanks for the quick response
it works by increasing the sleep time
I have 2 more issue
raise Exception(" [!] No espeak backend found. Install espeak-ng or espeak to your system.") Exception: [!] No espeak backend found. Install espeak-ng or espeak to your system.
Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\envs\video_generator\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\ProgramData\Anaconda3\envs\video_generator\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\ProgramData\Anaconda3\envs\video_generator\Scripts\tts.exe__main.py", line 7, in
Hey!
This is excellent to understand the code reproducibility. I did install a lot of packages and, with everything going on, I didn't take notes about all the requirements.
I already updated the main branch with both the missing file and the increasing sleeping time.
Now, regarding the espeak-ng
on windows: please follow these steps to install https://github.com/espeak-ng/espeak-ng/blob/master/docs/guide.md#windows.
Once again, let me know if it works to update the README.MD
:)
Thanks for replying again
yes, I have downloaded and the error has gone now
do you know anything about IndexError: list index out of range
Traceback (most recent call last): File "C:\Users\User\Desktop\Python\python-video-generator\orchestrator.py", line 73, in generate_video self.image_parser.retrieve_best_image(sentence) File "C:\Users\User\Desktop\Python\python-video-generator\python_video_generator\image_parser\bing_image_retrieval.py", line 74, in retrieve_best_image self.select_best_image(sentence) File "C:\Users\User\Desktop\Python\python-video-generator\python_video_generator\image_parser\bing_image_retrieval.py", line 138, in select_best_image sentence.best_image = sentence.images[self.image_selected - 1] IndexError: list index out of range
Hello!
Thank you for the update. Can you please provide the steps (the selected document) to reproduce the error at my end?
Thank you
Hi there
I am not an expert in Python but this code is always giving me this error
(PermissionError: [WinError 32] The process cannot access the file because it is being used by another process)
There is only one application running which is anaconda with Admin privileges
Any help will be greatly appreciated
Thanks
Traceback (most recent call last): File "C:\Users\User\Desktop\Python\python-video-generator\orchestrator.py", line 73, in generate_video self.image_parser.retrieve_best_image(sentence) File "C:\Users\User\Desktop\Python\python-video-generator\python_video_generator\image_parser\bing_image_retrieval.py", line 73, in retrieve_best_image self.download_images(sentence) File "C:\Users\User\Desktop\Python\python-video-generator\python_video_generator\image_parser\bing_image_retrieval.py", line 42, in download_images bing.download_images( File "C:\Users\User\Desktop\Python\python-video-generator\python_video_generator\video_editor\bing.py", line 65, in download_images rename_images(image_dir, query) File "C:\Users\User\Desktop\Python\python-video-generator\python_video_generator\video_editor\bing.py", line 85, in rename_images os.rename(src, dst) PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'images\funny video vlog blog\#tmp#_7.jpg' -> 'images\funny video vlog blog\funny video vlog blog_8.jpg'