首页 > 其他分享 >【KAWAKO】soundtoch-使用可执行文件对音频进行变调或变速

【KAWAKO】soundtoch-使用可执行文件对音频进行变调或变速

时间:2023-01-30 13:35:55浏览次数:64  
标签:可执行文件 变调 soundtoch tempo 变速 file output input KAWAKO

目录

下载

官网下载可执行文件。

单次使用

在终端中直接运行,会出现使用方法和可选参数。

变速就设置tempo,变调就设置pitch,都变就都设置。变速的效果好像比audiotsm的效果好一些。

使用python脚本批量处理

为了方便处理,可以把soundstretch.exe添加进环境变量。

import os
 
#变速
def time_stretch(input_file, output_file, tempo):
    os.system("soundstretch %s %s -tempo=%d" % (input_file, output_file, tempo))
 
#变调
def pitch_shifting(input_file, output_file, n_steps):
    os.system("soundstretch %s %s -pitch=%d" % (input_file, output_file, n_steps))

标签:可执行文件,变调,soundtoch,tempo,变速,file,output,input,KAWAKO
From: https://www.cnblogs.com/KAWAKO/p/17075371.html

相关文章