baidu_voice.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:WeixinBot 作者: agenthun 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号