资源简介
使用FFmpeg + SoundTouch 实现语音的变速变调。
压缩包中有两个V岁2013的Project,SoundTouch编译结果为静态链接库;wav_sound需要使用SoundTouch的编译库,另外还需要根据自己的环境自行配置FFmpeg3.1的环境。
代码片段和文件信息
////////////////////////////////////////////////////////////////////////////////
///
/// FIR low-pass (anti-alias) filter with filter coefficient design routine and
/// MMX optimization.
///
/// Anti-alias filter is used to prevent folding of high frequencies when
/// transposing the sample rate with interpolation.
///
/// Author : Copyright (c) Olli Parviainen
/// Author e-mail : oparviai ‘at‘ iki.fi
/// SoundTouch WWW: http://www.surina.net/soundtouch
///
////////////////////////////////////////////////////////////////////////////////
//
// Last changed : $Date: 2014-01-05 23:40:22 +0200 (Sun 05 Jan 2014) $
// File revision : $Revision: 4 $
//
// $Id: AAFilter.cpp 177 2014-01-05 21:40:22Z oparviai $
//
////////////////////////////////////////////////////////////////////////////////
//
// License :
//
// SoundTouch audio processing library
// Copyright (c) Olli Parviainen
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not write to the Free Software
// Foundation Inc. 59 Temple Place Suite 330 Boston MA 02111-1307 USA
//
////////////////////////////////////////////////////////////////////////////////
#include
#include
#include
#include
#include “AAFilter.h“
#include “FIRFilter.h“
using namespace soundtouch;
#define PI 3.141592655357989
#define TWOPI (2 * PI)
// define this to save AA filter coefficients to a file
// #define _DEBUG_SAVE_AAFILTER_COEFFICIENTS 1
#ifdef _DEBUG_SAVE_AAFILTER_COEFFICIENTS
#include
static void _DEBUG_SAVE_AAFIR_COEFFS(SAMPLETYPE *coeffs int len)
{
FILE *fptr = fopen(“aa_filter_coeffs.txt“ “wt“);
if (fptr == NULL) return;
for (int i = 0; i < len; i ++)
{
double temp = coeffs[i];
fprintf(fptr “%lf\n“ temp);
}
fclose(fptr);
}
#else
#define _DEBUG_SAVE_AAFIR_COEFFS(x y)
#endif
/*****************************************************************************
*
* Implementation of the class ‘AAFilter‘
*
*****************************************************************************/
AAFilter::AAFilter(uint len)
{
pFIR = FIRFilter::newInstance();
cutoffFreq = 0.5;
setLength(len);
}
AAFilter::~AAFilter()
{
delete pFIR;
}
// Sets new ant
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 6694 2015-09-20 10:41 SoundTouch\AAFilter.cpp
文件 3506 2015-09-20 10:41 SoundTouch\AAFilter.h
文件 12063 2015-09-20 10:41 SoundTouch\BPMDetect.cpp
文件 6517 2015-09-20 10:41 SoundTouch\BPMDetect.h
文件 2386 2015-09-20 10:41 SoundTouch\cpu_detect.h
文件 4837 2015-09-20 10:41 SoundTouch\cpu_detect_x86.cpp
文件 8836 2015-09-20 10:41 SoundTouch\FIFOSampleBuffer.cpp
文件 7507 2015-09-20 10:41 SoundTouch\FIFOSampleBuffer.h
文件 8655 2015-09-20 10:41 SoundTouch\FIFOSamplePipe.h
文件 9753 2015-09-20 10:41 SoundTouch\FIRFilter.cpp
文件 4861 2015-09-20 10:41 SoundTouch\FIRFilter.h
文件 6518 2015-09-20 10:41 SoundTouch\InterpolateCubic.cpp
文件 2211 2015-09-20 10:41 SoundTouch\InterpolateCubic.h
文件 8249 2015-09-20 10:41 SoundTouch\InterpolateLinear.cpp
文件 3037 2015-09-20 10:41 SoundTouch\InterpolateLinear.h
文件 5800 2015-09-20 10:41 SoundTouch\InterpolateShannon.cpp
文件 2454 2015-09-20 10:41 SoundTouch\InterpolateShannon.h
文件 13831 2015-09-20 10:41 SoundTouch\mmx_optimized.cpp
文件 8469 2016-10-25 19:05 SoundTouch\PeakFinder.cpp
文件 4245 2015-09-20 10:41 SoundTouch\PeakFinder.h
文件 8216 2015-09-20 10:41 SoundTouch\RateTransposer.cpp
文件 6012 2015-09-20 10:41 SoundTouch\RateTransposer.h
文件 16346 2015-09-20 10:41 SoundTouch\SoundTouch.cpp
文件 13130 2015-09-20 10:41 SoundTouch\SoundTouch.h
文件 5001 2016-10-25 19:00 SoundTouch\SoundTouch.vcxproj
文件 3555 2016-10-25 19:00 SoundTouch\SoundTouch.vcxproj.filters
文件 165 2016-10-25 19:00 SoundTouch\SoundTouch.vcxproj.user
文件 13476 2015-09-20 10:41 SoundTouch\sse_optimized.cpp
文件 7468 2016-10-26 11:09 SoundTouch\STTypes.h
文件 34912 2015-09-20 10:41 SoundTouch\TDStretch.cpp
............此处省略13个文件信息
- 上一篇:Windows 7 OEM证书
- 下一篇:dos 鼠标程序mouse.com
相关资源
- 变速恒频风电机组额定风速以上恒功
- 变速齿轮2.2.zip
- 兄弟变速器源程序
- XP版的变速齿轮+Delphi源码+的变速+工具
- usb audio class
- NAudio.dll
- Qt录音机QAudioInput
- Virtual Audio Cable 4.10 Win10版
- CSR I2S as Wired Input in ADK Applications Not
- 虚拟声卡Virtual Audio
- VirtualAudioCable4.60Win10版.rar
- AudioCODEC基本知识及应用.pdf
- 变速齿轮(win7win10可以用)
- Virtual Audio Cable 4.1.3 完美破解版
- Audio Sink Application Configuration User Guid
- 音频数字水印SVD_DWTAudioMark
- 变速器换挡叉说明书工序卡加四张c
- virtual audio cable 4.10 破解去女声
- Qt音频传输
- 分级变速主传动系统 机械系统设计课
- CoreAudioApi.dll
- DolbyAudiov4.txt
- CM6642 192KHz usb免驱声卡资料
- wasapi音频独占输出
- Virtual Audio Cable 4.10破解版+设置说明
- 类似变速齿轮 游戏加速器 Delphi源码
- Virtual Audio Cable 4.15完美破解没有立体
- virtual_audio_cable安装失败问题
- 音频转换器ArialAudioConverter-v2.3.53(含
- WAV文件格式分析与应用.zip
评论
共有 条评论