mirror of
https://github.com/2noise/ChatTTS.git
synced 2026-08-29 02:10:59 +08:00
chore(tools): rename wav_arr_to_mp3_view to pcm_arr_to_mp3_view
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user