def getOutput(sourcefile_path, targetfile_path):
song = AudioSegment.from_mp3(sourcefile_path).export(targetfile_path, format="wav")
voiceService = VoiceService()
voiceService.voicepro(targetfile_path)
while True:
if voiceService.isOk:
usage = json.loads(voiceService.buff)
result = usage['result']
return result
评论列表
文章目录