chore(tools): rename wav_arr_to_mp3_view to pcm_arr_to_mp3_view

This commit is contained in:
源文雨
2024-07-10 16:50:14 +09:00
parent 580463ce22
commit af8a4e378c
6 changed files with 9 additions and 7 deletions
+1 -1
View File
@@ -1,3 +1,3 @@
from .mp3 import wav_arr_to_mp3_view
from .pcm import pcm_arr_to_mp3_view
from .ffmpeg import has_ffmpeg_installed
from .np import float_to_int16
+1 -1
View File
@@ -7,7 +7,7 @@ from .np import float_to_int16
from .av import wav2
def wav_arr_to_mp3_view(wav: np.ndarray):
def pcm_arr_to_mp3_view(wav: np.ndarray):
buf = BytesIO()
with wave.open(buf, "wb") as wf:
wf.setnchannels(1) # Mono channel