Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
gellote opened this issue Feb 9, 2024 · 14 comments
Closed

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

gellote opened this issue Feb 9, 2024 · 14 comments
Assignees
Labels
bug Something isn't working

Comments

@gellote
Copy link

gellote commented Feb 9, 2024

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
Copy link
Author

gellote commented Feb 9, 2024

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

@R3gm R3gm self-assigned this Feb 9, 2024
@R3gm R3gm added the bug Something isn't working label Feb 9, 2024
@R3gm
Copy link
Owner

R3gm commented Feb 10, 2024

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

@gellote
Copy link
Author

gellote commented Feb 10, 2024

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

image

@tinogithub
Copy link

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

sonitranslate_error

@gellote
Copy link
Author

gellote commented Feb 10, 2024

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
Copy link
Author

gellote commented Feb 10, 2024

Could it have something to do with this?
image

@gellote
Copy link
Author

gellote commented Feb 11, 2024

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

@tinogithub
Copy link

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

@gellote
Copy link
Author

gellote commented Feb 11, 2024

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

R3gm added a commit that referenced this issue Feb 12, 2024
@gellote
Copy link
Author

gellote commented Feb 12, 2024

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

@R3gm
Copy link
Owner

R3gm commented Feb 13, 2024

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

@ToiYeuTien
Copy link

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!

@R3gm
Copy link
Owner

R3gm commented Mar 7, 2024

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

@ToiYeuTien
Copy link

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?"

R3gm added a commit that referenced this issue Mar 22, 2024
@R3gm R3gm closed this as completed May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants