Skip to content

Commit 81172c9

Browse files
committed
remove from_wav
1 parent e73f7b0 commit 81172c9

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

open_dubbing/pydub_audio_segment.py

-9
Original file line numberDiff line numberDiff line change
@@ -965,10 +965,6 @@ def is_format(f):
965965
def from_mp3(cls, file, parameters=None):
966966
return cls.from_file(file, "mp3", parameters=parameters)
967967

968-
@classmethod
969-
def from_wav(cls, file, parameters=None):
970-
return cls.from_file(file, "wav", parameters=parameters)
971-
972968
def export(
973969
self,
974970
out_f=None,
@@ -1130,8 +1126,6 @@ def export(
11301126
]
11311127
)
11321128

1133-
# log_conversion(conversion_command)
1134-
11351129
# read stdin / write stdout
11361130
with open(os.devnull, "rb") as devnull:
11371131
p = subprocess.Popen(
@@ -1142,9 +1136,6 @@ def export(
11421136
)
11431137
p_out, p_err = p.communicate()
11441138

1145-
# log_subprocess_output(p_out)
1146-
# log_subprocess_output(p_err)
1147-
11481139
if p.returncode != 0:
11491140
raise CouldntEncodeError(
11501141
"Encoding failed. ffmpeg/avlib returned error code: {0}\n\nCommand:{1}\n\nOutput from ffmpeg/avlib:\n\n{2}".format(

0 commit comments

Comments
 (0)