bic_x3daudio1 7.dll_seg 中的melfc函数是什么

Audioseg-1.2.2是个非常强大的说话人分割的工具,里面包括常用的BIC、GMM模型和HMM模型三种常见的方法。本次只是讲解安装过程,详细的使用在今后调通后将详细的介绍。
安装前准备(据说spro,sphere,gsl三个有安装先后关系,需要依次安装gsl、spro、sphere、audioseg,在本次安装中我没注意这个问题):
系统: & & & & & & & & & & Ubuntu14.04
gcc-version: & & & & & 4.8.2
Spro: & & & & & & & & & & & spro5.0
Sphere: & & & & & & & & &sphere2.7
gsl: & & & & & & & & & & & & &gsl1.16
首先,从官网上下载整个安装包和说明文档(https://gforge.inria.fr/frs/?group_id=533)
接着,将安装包解压,直接tar& -zxvf&& 压缩文件名.tar.gz
下一步,在解压后的根目录中,执行configure,注意一般需要添加前面三个软件的安装目录
./configure --with-spro=/usr/local --with-gsl=/usr/local --with-sphere=/home/xxx/nist下一步,按照说明文档只需要make一下即可,但在安装中出现如下问题:
显示无法找到lsp包 。于是从网上找相关的解决办法,发现系统里面没有liasp.so这个包(详见/os/356.html)
于是在度娘上查下这个包,原来它的名字是libsp1-dev,接着apt-get install即可完成安装包,重新查找后发现可以找到libsp.so这个包。
于是重新执行上面的步骤,出现找不到sqrt,math这些函数的问题,这个问题在linux挺常见,直接在Makefile的语句中将-lm放在该语句的最后即可。
下一步,make check
最后,make install完成安装,分别检查几个编译文件,能正常运行。
后记,在修改Makefile文件中,碰到无论怎么样修改Makefile,make真正执行的都不变这个问题,在网上查Makefile才明白整个过程,相信看到下面的图都能理解>> audioSeg.m
audioSeg.m ( 文件浏览 )
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function [y,fs,position] = audioSeg(filenm,clipLen)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%This is main audio stream segment function,it can classfication the audio file to different segments.
filenm = the flie which need
clipLen = segment clip length,unit is frame,default value is 100;
y = the point
position =
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Written by Qian Yong Gao
%% Data:June 23,2006
%% Update:June 23,2006 by Qian Yong Gao
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
if nargin & 2
clipLen = 100;
[fid,msg] = fopen(filenm,'rb');%open file
error(msg);
fseek(fid,8,-1);%file point rewind
header = fread(fid,4,'uchar');
% makesure '*wav' file format
if header' ~= 'WAVE'
error('This file is not a wavfile');
fseek(fid,8,0);
iPCM = fread(fid,1,'ushort');%PCM code format
iMono = fread(fid,1,'ushort');%Mono channel
if (iPCM ~= 1) & (iMono ~= 1)
error('This wavefile is not Mono PCM type');
fs = fread(fid,1,'ushort');%sample rate
fseek(fid,8,0);
nBit = fread(fid,1,'ushort');%each sample bits
nByte = nBit/8;%
header = fread(fid,4,'uchar');
if header' ~= 'data'
error('The file is corrupt');
if nByte == 1
nData = fread(fid,1,'ulong'); %file samples number
rid = 'uchar';
nData = fread(fid,1,'ulong') / 2;
rid = 'short';
position = 0;%beginning position is '0'
nRead = 0; %n samples read
nFrame = 0; %n frame read
segLen = 0; %n clip read
y = [];%signal read
frameLen = floor(0.02 * fs); %frame length
frameMov = ceil(0.01 * fs); %frame step
overlap = frameLen - frameM%frame overlap
while nRead &= nData - frameLen
y1 = fread(fid,frameLen,rid);%read a frame
nRead = nRead + frameM%read samples number increase frameMov
if fid == 'uchar'
y1 = (y1 - 128) / 128 ;
fseek(fid,-overlap,0);%8 bit,rewind file pointer overlap bites
y1 = y1 / 32768;
fseek(fid,-2 * overlap,0);%16 bit,rewind file pointer 2*overlap bites
nFrame = nFrame + 1;%increase read frame number
y = [y;y1'];%read signal
%when read frame is clipLen's integer times,nClip increase 1
segLen = segLen + 1;
if segLen == 3*clipLen
clipMat = y([nFrame-3*clipLen+1:nFrame],:);%clip matrix which wait for classifcation
f = fft(clipMat'.*(hamming(frameLen)*ones(1,3*clipLen)),1024);
f = abs(f);
mfc = melfc(f,30,30);
segN = BeyasInfoCrit(mfc,frameLen,frameMov,0.6);
if (segN&=clipLen) & (segN&=2*clipLen)
position = [nFrame-3*clipLen+segN];
segLen = 3 * clipLen - segN;
segLen = 2 * clipL
fclose(fid);
position(2:end) = ((position(2:end)-1)*frameMov+frameLen) /
y1 = y(:,end);
y(:,end) = [];
y(frameMov+1:end,:) = [];
y = [y;y1];
t = [1:length(y)] /
plot(t,y,'k');
for l = 1:length(position)
line([position(l) position(l)], [min(y) max(y)], 'Color', 'r');
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
展开> <收缩
下载源码到电脑,阅读使用更方便
还剩0行未阅读,继续阅读 ▼
Sponsored links
源码文件列表
温馨提示: 点击源码文件名可预览文件内容哦 ^_^
3.73 kB28-06-06 10:10
1.78 kB06-06-06 16:39
&bic_audio_segment&0.00 B09-07-06 20:16
Sponsored links
23 篇源代码 21 篇源代码 18 篇源代码 13 篇源代码 9 篇源代码
285 篇源代码 173 篇源代码 48 篇源代码 42 篇源代码 36 篇源代码
评价成功,多谢!
CodeForge积分(原CF币)全新升级,功能更强大,使用更便捷,不仅可以用来下载海量源代码马上还可兑换精美小礼品了
您的积分不足
支付宝优惠套餐快速获取 22 积分
10积分 / ¥100
22积分 / ¥200原价 ¥220 元
65积分 / ¥500原价 ¥650 元
支付宝订单完成后,积分将自动加入到您的账号。以下是优惠期的人民币价格,优惠期过后将恢复美元价格。
更多付款方式:、
您本次下载所消耗的积分将转交上传作者。
同一源码,30天内重复下载,只扣除一次积分。
鲁ICP备号-2
登录 CodeForge
还没有CodeForge账号?
Switch to the English version?
^_^"呃 ...
Sorry!这位大神很神秘,未开通博客呢,请浏览一下其他的吧}

我要回帖

更多关于 x3daudio1 7.dll丢失 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信