SoniTranslate icon indicating copy to clipboard operation
SoniTranslate copied to clipboard

[WinError 2] The system cannot find the specified file (Windows)

Open gellote opened this issue 1 year ago • 14 comments

Hi, I just installed and ran sonitranslate and everything works fine. But the problem is that it only works when I pass it a YouTube url, but when I want to upload a file locally it gives me the error "[WinError 2] The system cannot find the specified file". I attach the details of the console. image

gellote avatar Feb 09 '24 05:02 gellote

If I add the file path in quotes it no longer gives me the error that the file cannot be found but it gives me this error. image

gellote avatar Feb 09 '24 18:02 gellote

Hi, you've checked that ffmpeg is installed correctly with ffmpeg - h? Which version of Windows are you currently using?

R3gm avatar Feb 10 '24 01:02 R3gm

Hello, I am using windows 11. The ffmpeg -h command does not return any errors.

image

gellote avatar Feb 10 '24 03:02 gellote

Hello, almost the same error here. Using an URL works. FFMPEG installed and running Windows 10 Build 19045

sonitranslate_error

tinogithub avatar Feb 10 '24 16:02 tinogithub

Hello, what information does the console give you if you choose to upload the file as a path in quotes? for example "C:\Users\pc\Downloads\VideoExample.mp4"

gellote avatar Feb 10 '24 16:02 gellote

Could it have something to do with this? image

gellote avatar Feb 10 '24 17:02 gellote

I reinstalled everything but it still gives me the same audio error. I also use Anaconda PowerShell prompt and get the same error. With youtube urls it works fine

gellote avatar Feb 11 '24 05:02 gellote

In my case it works now although I haven't changed anything but starting the service again.

tinogithub avatar Feb 11 '24 11:02 tinogithub

Maybe it's a problem with Windows 11 in my case

gellote avatar Feb 11 '24 17:02 gellote

I applied the correction you made to the preprocessor.py file and now it works perfectly for both the submit video and the path. You are a genius, it is a great project. If you allow me, I would like to suggest some features such as being able to upload more than one file in queue so as not to have to add one by one and also another feature would be that the default output file name would have the name of the source file and the word translation at the end so you don't have to go through each file at the same time. Sorry for my English, I'm using Google Translator because I speak Spanish. It's a great project, I'll keep an eye out for updates. thank you

gellote avatar Feb 12 '24 03:02 gellote

Thank you for your suggestions I'll explore implementing them in future updates Additionally, creating a Windows 11 installation guide would be very helpful for users, if you're able to create one based on your experience, it would benefit others using the same operating system

R3gm avatar Feb 13 '24 01:02 R3gm

Tôi đã áp dụng chỉnh sửa mà bạn đã thực hiện cho tệp preprocessor.py và bây giờ nó hoạt động hoàn hảo cho cả video gửi và đường dẫn. Bạn là một thiên tài, đó là một dự án tuyệt vời. Nếu bạn cho phép, tôi muốn đề xuất một số tính năng như có thể tải lên nhiều tệp trong hàng đợi để không phải thêm từng tệp một và một tính năng khác là tên tệp đầu ra mặc định sẽ có tên của file nguồn và phần dịch chữ ở cuối nên bạn không cần phải xem từng file cùng lúc. Xin lỗi vì tiếng Anh của tôi, tôi đang sử dụng Google Translator vì tôi nói tiếng Tây Ban Nha. Đó là một dự án tuyệt vời, tôi sẽ theo dõi các thông tin cập nhật. Cảm ơn

I applied the correction you made to the preprocessor.py file and now it works perfectly for both the submit video and the path. You are a genius, it is a great project. If you allow me, I would like to suggest some features such as being able to upload more than one file in queue so as not to have to add one by one and also another feature would be that the default output file name would have the name of the source file and the word translation at the end so you don't have to go through each file at the same time. Sorry for my English, I'm using Google Translator because I speak Spanish. It's a great project, I'll keep an eye out for updates. thank you

Hello! Could you please guide me on how to install the program on Windows 11? I'm having trouble installing Piper-TTS, and when I try to run the program, I receive the following error message:

(SoniTr) D:\Stable\Sound_to_Text\SoniTranslate>python app_rvc.py The torchaudio backend is switched to 'soundfile'. Note that 'sox_io' is not supported on Windows. The torchaudio backend is switched to 'soundfile'. Note that 'sox_io' is not supported on Windows. Traceback (most recent call last): File "D:\Stable\Sound_to_Text\SoniTranslate\app_rvc.py", line 68, in from voice_main import ClassVoices File "D:\Stable\Sound_to_Text\SoniTranslate\voice_main.py", line 14, in from fairseq import checkpoint_utils File "D:.Conda\envs\SoniTr\lib\site-packages\fairseq_init_.py", line 29, in from fairseq.dataclass.initialize import hydra_init File "D:.Conda\envs\SoniTr\lib\site-packages\fairseq\dataclass\initialize.py", line 8, in from hydra.core.config_store import ConfigStore File "D:.Conda\envs\SoniTr\lib\site-packages\hydra_init_.py", line 5, in from hydra import utils File "D:.Conda\envs\SoniTr\lib\site-packages\hydra\utils.py", line 10, in from hydra._internal.utils import ( File "D:.Conda\envs\SoniTr\lib\site-packages\hydra_internal\utils.py", line 16, in from omegaconf._utils import get_ref_type ImportError: cannot import name 'get_ref_type' from 'omegaconf._utils' (D:\.Conda\envs\SoniTr\lib\site-packages\omegaconf\_utils.py)

Looking forward to hearing from you!

ToiYeuTien avatar Mar 07 '24 14:03 ToiYeuTien

Tôi đã áp dụng chỉnh sửa mà bạn đã thực hiện cho tệp preprocessor.py và bây giờ nó hoạt động hoàn hảo cho cả video gửi và đường dẫn. Bạn là một thiên tài, đó là một dự án tuyệt vời. Nếu bạn cho phép, tôi muốn đề xuất một số tính năng như có thể tải lên nhiều tệp trong hàng đợi để không phải thêm từng tệp một và một tính năng khác là tên tệp đầu ra mặc định sẽ có tên của file nguồn và phần dịch chữ ở cuối nên bạn không cần phải xem từng file cùng lúc. Xin lỗi vì tiếng Anh của tôi, tôi đang sử dụng Google Translator vì tôi nói tiếng Tây Ban Nha. Đó là một dự án tuyệt vời, tôi sẽ theo dõi các thông tin cập nhật. Cảm ơn

I applied the correction you made to the preprocessor.py file and now it works perfectly for both the submit video and the path. You are a genius, it is a great project. If you allow me, I would like to suggest some features such as being able to upload more than one file in queue so as not to have to add one by one and also another feature would be that the default output file name would have the name of the source file and the word translation at the end so you don't have to go through each file at the same time. Sorry for my English, I'm using Google Translator because I speak Spanish. It's a great project, I'll keep an eye out for updates. thank you

Hello! Could you please guide me on how to install the program on Windows 11? I'm having trouble installing Piper-TTS, and when I try to run the program, I receive the following error message:

(SoniTr) D:\Stable\Sound_to_Text\SoniTranslate>python app_rvc.py The torchaudio backend is switched to 'soundfile'. Note that 'sox_io' is not supported on Windows. The torchaudio backend is switched to 'soundfile'. Note that 'sox_io' is not supported on Windows. Traceback (most recent call last): File "D:\Stable\Sound_to_Text\SoniTranslate\app_rvc.py", line 68, in from voice_main import ClassVoices File "D:\Stable\Sound_to_Text\SoniTranslate\voice_main.py", line 14, in from fairseq import checkpoint_utils File "D:.Conda\envs\SoniTr\lib\site-packages\fairseq__init__.py", line 29, in from fairseq.dataclass.initialize import hydra_init File "D:.Conda\envs\SoniTr\lib\site-packages\fairseq\dataclass\initialize.py", line 8, in from hydra.core.config_store import ConfigStore File "D:.Conda\envs\SoniTr\lib\site-packages\hydra__init__.py", line 5, in from hydra import utils File "D:.Conda\envs\SoniTr\lib\site-packages\hydra\utils.py", line 10, in from hydra._internal.utils import ( File "D:.Conda\envs\SoniTr\lib\site-packages\hydra_internal\utils.py", line 16, in from omegaconf._utils import get_ref_type ImportError: cannot import name 'get_ref_type' from 'omegaconf._utils' (D:\.Conda\envs\SoniTr\lib\site-packages\omegaconf\_utils.py)

Looking forward to hearing from you!

You can try running these commands in your terminal:

conda activate sonitr
pip install omegaconf==2.0.6

R3gm avatar Mar 07 '24 17:03 R3gm

Tôi đã áp dụng chỉnh sửa mà bạn đã thực hiện cho tệp preprocessor.py và bây giờ nó hoạt động hoàn hảo cho cả video gửi và đường dẫn. Bạn là một thiên tài, đó là một dự án tuyệt vời. Nếu bạn cho phép, tôi muốn đề xuất một số tính năng như có thể tải lên nhiều tệp trong hàng đợi để không phải thêm từng tệp một và một tính năng khác là tên tệp đầu ra mặc định sẽ có tên của file nguồn và phần dịch chữ ở cuối nên bạn không cần phải xem từng file cùng lúc. Xin lỗi vì tiếng Anh của tôi, tôi đang sử dụng Google Translator vì tôi nói tiếng Tây Ban Nha. Đó là một dự án tuyệt vời, tôi sẽ theo dõi các thông tin cập nhật. Cảm ơn

I applied the correction you made to the preprocessor.py file and now it works perfectly for both the submit video and the path. You are a genius, it is a great project. If you allow me, I would like to suggest some features such as being able to upload more than one file in queue so as not to have to add one by one and also another feature would be that the default output file name would have the name of the source file and the word translation at the end so you don't have to go through each file at the same time. Sorry for my English, I'm using Google Translator because I speak Spanish. It's a great project, I'll keep an eye out for updates. thank you

Hello! Could you please guide me on how to install the program on Windows 11? I'm having trouble installing Piper-TTS, and when I try to run the program, I receive the following error message: (SoniTr) D:\Stable\Sound_to_Text\SoniTranslate>python app_rvc.py The torchaudio backend is switched to 'soundfile'. Note that 'sox_io' is not supported on Windows. The torchaudio backend is switched to 'soundfile'. Note that 'sox_io' is not supported on Windows. Traceback (most recent call last): File "D:\Stable\Sound_to_Text\SoniTranslate\app_rvc.py", line 68, in from voice_main import ClassVoices File "D:\Stable\Sound_to_Text\SoniTranslate\voice_main.py", line 14, in from fairseq import checkpoint_utils File "D:.Conda\envs\SoniTr\lib\site-packages\fairseq__init__.py", line 29, in from fairseq.dataclass.initialize import hydra_init File "D:.Conda\envs\SoniTr\lib\site-packages\fairseq\dataclass\initialize.py", line 8, in from hydra.core.config_store import ConfigStore File "D:.Conda\envs\SoniTr\lib\site-packages\hydra__init__.py", line 5, in from hydra import utils File "D:.Conda\envs\SoniTr\lib\site-packages\hydra\utils.py", line 10, in from hydra._internal.utils import ( File "D:.Conda\envs\SoniTr\lib\site-packages\hydra_internal\utils.py", line 16, in from omegaconf._utils import get_ref_type ImportError: cannot import name 'get_ref_type' from 'omegaconf._utils' (D:\.Conda\envs\SoniTr\lib\site-packages\omegaconf\_utils.py) Looking forward to hearing from you!

You can try running these commands in your terminal:

conda activate sonitr
pip install omegaconf==2.0.6

"Thank you for this wonderful program, I have installed and used it, but the only issue is that the audio between segments overlaps, I have tried increasing and decreasing the speed of 'Max Audio acceleration' but it didn't work, I have also tried slowing down the video before processing it but it didn't help. Do you have any way to avoid overlapping audio?"

ToiYeuTien avatar Mar 09 '24 15:03 ToiYeuTien