mirror of
https://github.com/ClovertaTheTrilobita/SanYeCao-Nonebot.git
synced 2026-04-01 22:04:51 +00:00
fix(cloud_music.py): 更新发送语音格式音频频率
This commit is contained in:
parent
62d4ea28f0
commit
b0f4c23bf0
1 changed files with 1 additions and 1 deletions
|
|
@ -188,7 +188,7 @@ def netease_music_download(song_id,song_name,singer,session):
|
|||
file.write(chunk)
|
||||
output_silk_path = os.path.join(save_path, os.path.splitext(file_name)[0] + ".silk")
|
||||
# 使用 graiax-silkcoder 进行转换
|
||||
silkcoder.encode(file_path, output_silk_path,tencent=True,ios_adaptive=True)
|
||||
silkcoder.encode(file_path, output_silk_path,rate=36000 ,tencent=True,ios_adaptive=True)
|
||||
return output_silk_path
|
||||
else:
|
||||
return None
|
||||
|
|
|
|||
Loading…
Reference in a new issue