Repository: voicepaw/so-vits-svc-fork

Issue:
Problem with input file audio path format selection (gui.py)
SVC version: 3.14.1

Currently, format selection for the input audio path file doesn't allow for format selection and filter shows no audio files.

The problem is on line 352 of gui.py

I solved it by putting, on line 352:
`file_types=get_supported_file_types(),`

instead of the current:

`file_types=get_supported_file_types_concat(),`

This solved the problem for me. See before and after videos.
Before:


https://github.com/voicepaw/so-vits-svc-fork/assets/34165937/61801d33-9ca1-4cd3-a3ec-565b6f705f6d

After correction:


https://github.com/voicepaw/so-vits-svc-fork/assets/34165937/a8a630a4-10a8-40b7-ba35-2fb50595cc74





Problem with input file audio path format selection (gui.py)
SVC version: 3.14.1

Currently, format selection for the input audio path file doesn't allow for format selection and filter shows no audio files.

The problem is on line 352 of gui.py

I solved it by putting, on line 352:
`file_types=get_supported_file_types(),`

instead of the current:

`file_types=get_supported_file_types_concat(),`

This solved the problem for me. See before and after videos.
Before:


https://github.com/voicepaw/so-vits-svc-fork/assets/34165937/61801d33-9ca1-4cd3-a3ec-565b6f705f6d

After correction:


https://github.com/voicepaw/so-vits-svc-fork/assets/34165937/a8a630a4-10a8-40b7-ba35-2fb50595cc74







Discussion:
Another issue due to the different behavior between Linux and Windows 😇
```
if os.environ("OS") == "nt"...
```
NOTE: My installed version on PySimpleGui is: 4.60.4
Do you have a more recent version?
I think it's an OS-related problem, not PySimpleGUI
Another problem... The checkboxes change when pressing on "infer"...
It only appears at first inference. The second time you press on "infer", that's good. :-D

https://github.com/voicepaw/so-vits-svc-fork/assets/34165937/ddfe0823-5bdc-46b3-8ca0-b7532274c891


> Another problem... The checkboxes change when pressing on "infer"... It only appears at first inference. The second time you press on "infer", that's good. :-D
> 
>  other.mp4

#95

Bug reports are appreciated, but note that you can also send PRs. 😴
I have never sent a pull request. I have no idea about how it works, but I'll try to see if I can figure it out...
Another issue due to the different behavior between Linux and Windows 😇
```
if os.environ("OS") == "nt"...
```
NOTE: My installed version on PySimpleGui is: 4.60.4
Do you have a more recent version?
I think it's an OS-related problem, not PySimpleGUI
Another problem... The checkboxes change when pressing on "infer"...
It only appears at first inference. The second time you press on "infer", that's good. :-D

https://github.com/voicepaw/so-vits-svc-fork/assets/34165937/ddfe0823-5bdc-46b3-8ca0-b7532274c891


> Another problem... The checkboxes change when pressing on "infer"... It only appears at first inference. The second time you press on "infer", that's good. :-D
> 
>  other.mp4

#95

Bug reports are appreciated, but note that you can also send PRs. 😴
I have never sent a pull request. I have no idea about how it works, but I'll try to see if I can figure it out...

Resolving patch:
diff --git a/src/so_vits_svc_fork/gui.py b/src/so_vits_svc_fork/gui.py
--- a/src/so_vits_svc_fork/gui.py
+++ b/src/so_vits_svc_fork/gui.py
@@ -350,7 +350,9 @@ def main():
                 sg.FileBrowse(
                     initial_folder=".",
                     key="input_path_browse",
-                    file_types=get_supported_file_types_concat(),
+                    file_types=get_supported_file_types_concat()
+                    if os.name == "nt"
+                    else get_supported_file_types(),
                 ),
                 sg.FolderBrowse(
                     button_text="Browse(Folder)",


Test patch: