IAHispano / Applio

A simple, high-quality voice conversion tool focused on ease of use and performance.
https://applio.org
MIT License
1.68k stars 273 forks source link

Error while trying to run locally after using the local installer #13

Closed CyberLykan closed 1 year ago

CyberLykan commented 1 year ago
Current Settings:

Python command: "runtime\python.exe"
Port number: "7897"
Theme: "JohnSmith9982/small_and_pretty"

Set fp16_run to false in 32k.json
Set fp16_run to false in 40k.json
Set fp16_run to false in 48k.json
Set fp16_run to false in 32k.json
Set fp16_run to false in 40k.json
Set fp16_run to false in 48k.json
Using Language: en_US
Traceback (most recent call last):
  File "D:\Applio-RVC-Fork\infer-web.py", line 264, in <module>
    set_edge_voice = easy_infer.get_edge_voice()
  File "D:\Applio-RVC-Fork\easy_infer.py", line 1359, in get_edge_voice
    completed_process = subprocess.run(['edge-tts',"-l"], capture_output=True, text=True)
  File "subprocess.py", line 505, in run
  File "subprocess.py", line 951, in __init__
  File "subprocess.py", line 1420, in _execute_child
FileNotFoundError: [WinError 2] The system cannot find the file specified
Press any key to continue . . .
aitronz commented 1 year ago

Join our server to support you https://discord.gg/iahispano

CyberLykan commented 1 year ago

Join our server to support you https://discord.gg/iahispano

Your server is not easy to use for English persons.

RustyKit-JohnW commented 1 year ago

I'm having the same issue Found GPU NVIDIA GeForce GTX 1660 SUPER , force to fp32 Found GPU NVIDIA GeForce GTX 1660 SUPER , force to fp32 Using Language: en_US Traceback (most recent call last): File "C:\Users\myhom\Applio-RVC-Fork\infer-web.py", line 264, in set_edge_voice = easy_infer.get_edge_voice() File "C:\Users\myhom\Applio-RVC-Fork\easy_infer.py", line 1359, in get_edge_voice completed_process = subprocess.run(['edge-tts',"-l"], capture_output=True, text=True) File "subprocess.py", line 505, in run File "subprocess.py", line 951, in init File "subprocess.py", line 1420, in _execute_child FileNotFoundError: [WinError 2] The system cannot find the file specified Press any key to continue . . .

Vidalnt commented 1 year ago

I'm having the same issue Found GPU NVIDIA GeForce GTX 1660 SUPER , force to fp32 Found GPU NVIDIA GeForce GTX 1660 SUPER , force to fp32 Using Language: en_US Traceback (most recent call last): File "C:\Users\myhom\Applio-RVC-Fork\infer-web.py", line 264, in set_edge_voice = easy_infer.get_edge_voice() File "C:\Users\myhom\Applio-RVC-Fork\easy_infer.py", line 1359, in get_edge_voice completed_process = subprocess.run(['edge-tts',"-l"], capture_output=True, text=True) File "subprocess.py", line 505, in run File "subprocess.py", line 951, in init File "subprocess.py", line 1420, in _execute_child FileNotFoundError: [WinError 2] The system cannot find the file specified Press any key to continue . . .

You install the dependencies correctly, because the error is that you don't have the edge-tts dependency installed.

Although you can do it manually pip install edge-tts

aitronz commented 1 year ago

If you don't want to join the server I tell you how to fix it at the installer the first message tells you to add one route to your environment variables

aitronz commented 1 year ago

And no you don't have to install python so the pip install command won't work for you the edge-tts is already installed in the runtime folder but it isn't in the environment variables so it doesn't detect it

aitronz commented 1 year ago

image

RustyKit-JohnW commented 1 year ago

I've fixed the other issue now the issue is the WebUI isn't in English its all in Chinese from what i can tell does anybody know how to fix that?

aitronz commented 1 year ago

It is contingent upon the language setting of your computer,

RustyKit-JohnW commented 1 year ago

It is contingent upon the language setting of your computer,

My computer is set to English

RustyKit-JohnW commented 1 year ago

It is contingent upon the language setting of your computer,

image image

aitronz commented 1 year ago

image Do you have the correct applio version? Reinstall it or update it.

RustyKit-JohnW commented 1 year ago

image Do you have the correct applio version? Reinstall it or update it.

I've reinstalled it 2 times and its on the most recent version ill try to reinstall it again and ill let you know

RustyKit-JohnW commented 1 year ago

image Do you have the correct applio version? Reinstall it or update it.

Okay just reinstalled it again and its still in Chinese

aitronz commented 1 year ago

image Certainly, you can change line 25 to set the language to "en_US."image

aitronz commented 1 year ago

image Certainly, you can change line 25 to set the language to "en_US."image

RustyKit-JohnW commented 1 year ago

I can see if that works give me a sec

RustyKit-JohnW commented 1 year ago

image I didnt change anything and this file looks the exact same as the screenshots you sent

aitronz commented 1 year ago

No look at line 25 image

RustyKit-JohnW commented 1 year ago

Yes, i see it says language = "en_US" in my i18n.py file as well

aitronz commented 1 year ago

The line 25?

RustyKit-JohnW commented 1 year ago

image

aitronz commented 1 year ago

No the line 25 is image No image

RustyKit-JohnW commented 1 year ago

I see that why is mine in another spot? is that the issue?

aitronz commented 1 year ago

The code automatically detects the default language of the computer. However, if you wish to override this setting, you would need to follow the instructions I provided.

RustyKit-JohnW commented 1 year ago

Yup. which im trying to do but i cannot seem to edit anything because it looks the exact same other than language = "en_US" not being in line 25 Everything i see is set to en_US

aitronz commented 1 year ago

On line 27, the code sets the default language to English if the default language on your computer does not exist.

aitronz commented 1 year ago

It's not the same at line 25

RustyKit-JohnW commented 1 year ago

I Know that

RustyKit-JohnW commented 1 year ago

So what can i do to fix it?

aitronz commented 1 year ago

Change the line 25 to language = "en_US"

RustyKit-JohnW commented 1 year ago

Okay. Testing now

RustyKit-JohnW commented 1 year ago

and its Still in Chinese

aitronz commented 1 year ago

The code you changed directly alters the language settings so theres not option that it's still in chinese

RustyKit-JohnW commented 1 year ago

And it even says when starting Applio Screenshot 2023-09-06 121257

aitronz commented 1 year ago

Kindly inspect the "en_US" file located in the "i18n" folder.

RustyKit-JohnW commented 1 year ago

It's all in english and looks to be alright

RustyKit-JohnW commented 1 year ago

image

aitronz commented 1 year ago

So and the Applio code is in english

RustyKit-JohnW commented 1 year ago

Yeah

aitronz commented 1 year ago

image

aitronz commented 1 year ago

Try clearing your browser cache or try in an alternate web browser.

RustyKit-JohnW commented 1 year ago

Okay ill try that give me a sec

RustyKit-JohnW commented 1 year ago

Just tried in another browser (OperaGX) instead of my usual chrome and nope still in Chinese image

aitronz commented 1 year ago

Please examine the "infer_web.py" file to ascertain if there is any content in Chinese.

RustyKit-JohnW commented 1 year ago

gpu_info = "\n".join(gpu_infos) if if_gpu_ok and gpu_infos else i18n("很遗憾您这没有能用的显卡来支持您训练")

i18n.print()

判断是否有能用来训练和加速推理的N卡

                with gr.Row(): # Defines output info + output audio download after conversion
                    vc_output1 = gr.Textbox(label=i18n("输出信息"))
                    vc_output2 = gr.Audio(label=i18n("输出音频(右下角三个点,点了可以下载)"))

                                    with gr.TabItem(i18n("批处理")): # Dont Change
                with gr.Group(): # Markdown explanation of batch inference
                    gr.Markdown(
                        value=i18n("批量转换, 输入待转换音频文件夹, 或上传多个音频文件, 在指定文件夹(默认opt)下输出转换的音频. ")
                    )
                    with gr.Row():
                        with gr.Column():
                            vc_transform1 = gr.Number(
                                label=i18n("变调(整数, 半音数量, 升八度12降八度-12)"), value=0
                            )
                            opt_input = gr.Textbox(label=i18n("指定输出文件夹"), value="opt")
                        with gr.Column():
                            file_index4 = gr.Dropdown(
                                label=i18n("自动检测index路径,下拉式选择(dropdown)"),
                                choices=get_indexes(),
                                value=best_match_index_path1,
                                interactive=True,
                            )
                            sid0.select(fn=match_index, inputs=[sid0], outputs=[file_index2, file_index4])

                            refresh_button.click(
                                fn=lambda: change_choices()[1],
                                inputs=[],
                                outputs=file_index4,
                            )
                            index_rate2 = gr.Slider(
                                minimum=0,
                                maximum=1,
                                label=i18n("检索特征占比"),
                                value=0.75,
                                interactive=True,
                            )
                        with gr.Row():
                            dir_input = gr.Textbox(
                                label=i18n("输入待处理音频文件夹路径(去文件管理器地址栏拷就行了)"),
                                value=os.path.join(now_dir, "audios"),
                            )
                            inputs = gr.File(
                                file_count="multiple", label=i18n("也可批量输入音频文件, 二选一, 优先读文件夹")
                            )

                    with gr.Row():
                        with gr.Column():
                            # Create a checkbox for advanced batch settings
                            advanced_settings_batch_checkbox = gr.Checkbox(
                                value=False,
                                label=i18n("高级设置"),
                                interactive=True,
                            )

                            # Advanced batch settings container        
                            with gr.Row(visible=False) as advanced_settings_batch: # Initially hidden
                                with gr.Row(label = i18n("高级设置[批量]"), open = False):
                                    with gr.Column():
                                        file_index3 = gr.Textbox(
                                            label=i18n("特征检索库文件路径,为空则使用下拉的选择结果"),
                                            value="",
                                            interactive=True,
                                        )

                                f0method1 = gr.Radio(
                                    label=i18n(
                                        "选择音高提取算法,输入歌声可用pm提速,harvest低音好但巨慢无比,crepe效果好但吃GPU"
                                    ),
                                    choices=["pm", "harvest", "crepe", "rmvpe"],
                                    value="rmvpe",
                                    interactive=True,
                                )
                                filter_radius1 = gr.Slider(
                                    minimum=0,
                                    maximum=7,
                                    label=i18n(">=3则使用对harvest音高识别的结果使用中值滤波,数值为滤波半径,使用可以削弱哑音"),
                                    value=3,
                                    step=1,
                                    interactive=True,
                                )

                                with gr.Row():
                                    format1 = gr.Radio(
                                        label=i18n("导出文件格式"),
                                        choices=["wav", "flac", "mp3", "m4a"],
                                        value="flac",
                                        interactive=True,
                                    )

                                with gr.Column():
                                    resample_sr1 = gr.Slider(
                                        minimum=0,
                                        maximum=48000,
                                        label=i18n("后处理重采样至最终采样率,0为不进行重采样"),
                                        value=0,
                                        step=1,
                                        interactive=True,
                                    )
                                    rms_mix_rate1 = gr.Slider(
                                        minimum=0,
                                        maximum=1,
                                        label=i18n("输入源音量包络替换输出音量包络融合比例,越靠近1越使用输出包络"),
                                        value=1,
                                        interactive=True,
                                    )
                                    protect1 = gr.Slider(
                                        minimum=0,
                                        maximum=0.5,
                                        label=i18n(
                                            "保护清辅音和呼吸声,防止电音撕裂等artifact,拉满0.5不开启,调低加大保护力度但可能降低索引效果"
                                        ),
                                        value=0.33,
                                        step=0.01,
                                        interactive=True,
                                    )
RustyKit-JohnW commented 1 year ago

Quite a bit to say the least

RustyKit-JohnW commented 1 year ago

Theres alot more

aitronz commented 1 year ago

Your not using correct Applio in applio theres nothing in chinese

aitronz commented 1 year ago

image