百变怪之善口技者——mocking bird 完全指北

正经学习是不可能学习的啦,只能每日照搬大佬的github才能勉强度日啦

这次试试人声模拟是我对这个非常感兴趣(bushi 完全是因为这次有中文文档。。。

上地址   mockingbird

配环境

这次还算顺利

1.安装pytorch

上官网https://pytorch.org/get-started/locally/

 第一行默认

第二行根据自己系统选

第三行windows选conda(之前别忘了装anaconda),mac选pip

第四行选python

第四行  我是核显只能选cpu了,有英伟达显卡的大佬根据自己情况选10.2

最后一行就告诉适合你的命令了,ctrl c+v到anaconda prompt中运行就好了

🐖:如果在用 pip 方式安装的时候出现 ERROR: Could not find a version that satisfies the requirement torch==1.9.0+cu102 (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2) 这个错误可能是 python 版本过低,3.9 可以安装成功

2.安装ffmpeg

同样是官网Download FFmpeg 

Windows选.dev

再拖到这里

 单击.7z或.zip进行下载

完成后解压缩,将bin文件夹下的三个文件

 移动至C:\Windows\System32

3.安装杂项

点击code下载源文件

 打开anaconda prompt

使用cd +源文件路径移动到目录

运行pip install -r requirements.txt 来安装剩余的必要包。

安装 webrtcvad

 pip install webrtcvad-wheels

准备训练数据

这里我偷懒,直接用了2.2,如果是大佬请自行探索2.1

选一个下载

完成后将文件移动至D:\..\MockingBird-main\synthesizer\saved_models

🐖:saved_models是自己新建的文件夹

启动程序

网页版半天没搞懂,直接运行工具箱

python demo_toolbox.py -d D:\..\MockingBird-main\synthesizer\saved_models

 使用

首先record开始录音,stop结束录音

下一行选择模型vocoder,因为我没独显跑不动,所以选择了质量较差的pre_trained

右上角输入你想让AI说的文本

最后点击右侧synthesize and vocode等几秒就可以输出啦

🐖:有条件还是选择大一点的数据集,如果用自带的pre_trained模仿效果比较差哈

 

ReadMe Release Version beta_1.0 index.py imageMatlab.py This is more or less a wrapper for Matplotlib imaging functions such that their behavior is equivalent, in terms of colormap, aspect and so forth, to the expected behavior of Matlab's functions. sepVocal.py This script can be used to execute the desired separation. See below for an example of use of this file. SIMM.py This script implements the actual algorithm for parameter estimation. It is mainly used by sepVocal.py. tracking.py The Viterbi decoding algorithm is implemented in this script. Requirements: These scripts have been tested with Python 2.7, The packages that are required to run the scripts are pydub,ffmepg, Numpy, Spicy, Matplotlib. One can respectively find the latest versions at the following addresses: http://pydub.com/ https://ffmpeg.org http://numpy.org/ http://scipy.org/ http://matplotlib.sourceforge.net/ Notes: Prefer recent versions of the above packages, in order to avoid compatibility issues, notably for Matplotlib. Note that this latter package is not necessary for the program to run, although you might want to watch a bit what is happening! Spicy should be version 0.8+, since we use its io.wavefile module to read the wave files. We once used the audio lab module, but it would seem that it is a bit more complicated to install (with the benefit that many more file formats are allowed). Usage: The easy way to use these scripts is to run the exec package of our release version: http://www.github.com/beata_1.0 for more develop: you can run the index.py on pycharm directly. note: the output files will create under you source wav file. ContactMe Email:xlzhang14@fudan.edu.cn
《Google C++ Mocking Cookbook启蒙篇》是一本关于如何使用Google C++ Mocking框架的入门指南。 Google C++ Mocking Cookbook是Google Test框架的一部分,它提供了一种简单和灵活的方式来模拟和测试C++代码。该书适合那些对C++编程和测试有一定基础的读者。 书中首先介绍了Google Test和Google Mock框架的基本概念和使用方法。读者将学习如何使用Google Test编写单元测试,以及如何使用Google Mock创建和管理模拟对象。同时,该书还详细介绍了Google Mock框架的特性和高级用法,包括模拟函数、模拟类和模拟函数的重载。 在书中,作者通过一系列示例和案例来讲解各种测试和模拟的场景。读者将学习如何编写测试用例、设置预期和断言,并通过模拟对象来验证代码的行为和状态。 此外,书中还涵盖了一些高级主题,例如如何使用Google Mock框架集成到测试框架中,以及如何进行测试双向通信和测试异常情况等。 通过阅读这本书,读者可以深入了解Google C++ Mocking框架的原理和应用场景,掌握高效编写和管理测试用例的技巧,从而提高代码的质量和可维护性。 总之,《Google C++ Mocking Cookbook启蒙篇》是一本对使用Google C++ Mocking框架有兴趣的读者必读的入门指南。通过学习和实践,读者可以掌握基本的测试和模拟技术,为软件开发和测试带来更高的效率和质量。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值