mirror of
https://github.com/fumiama/Retrieval-based-Voice-Conversion-WebUI.git
synced 2026-06-05 09:10:25 +08:00
fix: ValueError: mode must be 'r', 'w', or None, got: wb (#1991)
This commit is contained in:
@@ -5,10 +5,10 @@ import av
|
||||
|
||||
|
||||
def wav2(i, o, format):
|
||||
inp = av.open(i, "rb")
|
||||
inp = av.open(i, "r")
|
||||
if format == "m4a":
|
||||
format = "mp4"
|
||||
out = av.open(o, "wb", format=format)
|
||||
out = av.open(o, "w", format=format)
|
||||
if format == "ogg":
|
||||
format = "libvorbis"
|
||||
if format == "mp4":
|
||||
|
||||
Reference in New Issue
Block a user