mirror of
https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI.git
synced 2025-05-06 20:01:37 +08:00
fix: ValueError: mode must be 'r', 'w', or None, got: wb (#1991)
This commit is contained in:
parent
55f9b3262c
commit
dc5c6809b3
@ -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":
|
||||
|
Loading…
x
Reference in New Issue
Block a user