⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pitch2wave.html

📁 自动语音识别源码对非特定人的孤立词语音识别算法 进行研究。考虑到语音识别技术在嵌入式系统处理能力较弱、存储空间有限的问 题上进行算法的选择和优化
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"                "http://www.w3.org/TR/REC-html40/loose.dtd"><html><head>  <title>Description of pitch2wave</title>  <meta name="keywords" content="pitch2wave">  <meta name="description" content="pitch2wave: Pitch to wave conversion">  <meta http-equiv="Content-Type" content="text/html; charset=big5">  <meta name="generator" content="m2html &copy; 2003 Guillaume Flandin">  <meta name="robots" content="index, follow">  <link type="text/css" rel="stylesheet" href="../m2html.css"></head><body><a name="_top"></a><div><a href="../index.html">Home</a> &gt;  <a href="index.html">melodyRecognition</a> &gt; pitch2wave.m</div><!--<table width="100%"><tr><td align="left"><a href="../index.html"><img alt="<" border="0" src="../left.png">&nbsp;Master index</a></td><td align="right"><a href="index.html">Index for melodyRecognition&nbsp;<img alt=">" border="0" src="../right.png"></a></td></tr></table>--><h1>pitch2wave</h1><h2><a name="_name"></a>PURPOSE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2><div class="box"><strong>pitch2wave: Pitch to wave conversion</strong></div><h2><a name="_synopsis"></a>SYNOPSIS <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2><div class="box"><strong>function wave = pitch2wave(pitch, timeStep, fs, plotOpt) </strong></div><h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2><div class="fragment"><pre class="comment"> pitch2wave: Pitch to wave conversion
    Usage: wave = pitch2wave(pitch, timeStep, fs)</pre></div><!-- crossreference --><h2><a name="_cross"></a>CROSS-REFERENCE INFORMATION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>This function calls:<ul style="list-style-image:url(../matlabicon.gif)"></ul>This function is called by:<ul style="list-style-image:url(../matlabicon.gif)"></ul><!-- crossreference --><h2><a name="_subfunctions"></a>SUBFUNCTIONS <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2><ul style="list-style-image:url(../matlabicon.gif)"><li><a href="#_sub1" class="code">function selfdemo</a></li></ul><h2><a name="_source"></a>SOURCE CODE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2><div class="fragment"><pre>0001 <a name="_sub0" href="#_subfunctions" class="code">function wave = pitch2wave(pitch, timeStep, fs, plotOpt)</a>0002 <span class="comment">% pitch2wave: Pitch to wave conversion</span>0003 <span class="comment">%    Usage: wave = pitch2wave(pitch, timeStep, fs)</span>0004 0005 <span class="comment">%    Roger Jang, 20021020</span>0006 0007 <span class="keyword">if</span> nargin&lt;1, <a href="#_sub1" class="code" title="subfunction selfdemo">selfdemo</a>; <span class="keyword">return</span>; <span class="keyword">end</span>0008 <span class="keyword">if</span> nargin&lt;2, timeStep=1/16; <span class="keyword">end</span>0009 <span class="keyword">if</span> nargin&lt;3, fs=8000; <span class="keyword">end</span>0010 <span class="keyword">if</span> nargin&lt;4, plotOpt=0; <span class="keyword">end</span>0011 0012 wave=pitch2waveMex(pitch, timeStep, fs);0013 0014 <span class="keyword">if</span> plotOpt0015     subplot(2,1,1);0016     temp=pitch;0017     temp(temp==0)=nan;0018     plot((1:length(temp))*timeStep, temp, (1:length(temp))*timeStep, temp, <span class="string">'.'</span>);0019     subplot(2,1,2);0020     plot((1:length(wave))/fs, wave);0021 0022     fprintf(<span class="string">'Hit return to hear the pitch...\n'</span>); pause0023     sound(wave, fs);0024 <span class="keyword">end</span>0025 0026 <span class="comment">% ====== Self demo</span>0027 <a name="_sub1" href="#_subfunctions" class="code">function selfdemo</a>0028 pitch=[57.661699 58.680365 58.680365 58.680365 58.680365 58.680365 58.680365 58.680365 58.680365 58.680365 59.213095 58.680365 59.213095 59.213095 59.213095 59.213095 59.213095 59.213095 59.213095 58.680365 58.680365 58.163541 60.917323 60.917323 60.917323 60.917323 60.330408 58.680365 57.661699 0.000000 57.173995 58.163541 58.680365 58.680365 58.680365 58.680365 58.680365 58.680365 58.680365 58.680365 58.163541 0.000000 0.000000 57.173995 56.699654 56.699654 57.173995 56.699654 56.699654 56.699654 56.699654 56.699654 57.173995 57.173995 57.173995 56.237965 0.000000 55.788268 0.000000 55.788268 55.788268 56.237965 55.788268 55.788268 55.788268 56.237965 56.237965 56.237965 55.788268 55.349958 54.097918 0.000000 56.237965 57.661699 57.661699 57.661699 57.661699 57.661699 57.661699 57.173995 57.173995 57.173995 57.173995 57.661699 57.173995 57.173995 57.173995 57.661699 58.680365 59.213095 59.213095 59.213095 59.213095 59.213095 59.213095 59.762739 59.762739 59.762739 59.762739 59.213095 59.213095 58.680365 57.661699 55.349958 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 52.930351 53.310858 53.310858 53.699915 53.699915 53.699915 53.699915 53.699915 53.699915 53.310858 52.193545 50.807818 0.000000 57.661699 56.237965 56.237965 56.237965 56.237965 56.237965 56.237965 56.237965 56.237965 56.237965 56.237965 56.237965 56.237965 56.237965 55.788268 56.699654 57.173995 57.173995 57.173995 57.173995 57.173995 57.173995 57.661699 57.661699 57.661699 57.661699 57.661699 57.173995 56.699654 55.788268 54.097918 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 54.097918 54.922471 55.349958 55.788268 56.237965 56.237965 56.237965 56.237965 56.237965 55.788268 54.922471 0.000000 0.000000 0.000000 57.661699 57.661699 57.661699 57.661699 57.173995 57.173995 57.173995 57.173995 57.173995 57.173995 57.173995 57.173995 57.173995 58.163541 58.680365 58.680365 59.213095 59.762739 59.213095 59.213095 59.762739 59.762739 59.762739 59.762739 59.762739 59.762739 59.213095 58.680365 57.173995];0029 fs=8000;0030 timeStep=256/fs;0031 plotOpt=1;0032 wave=feval(mfilename, pitch, timeStep, fs, plotOpt);</pre></div><hr><address>Generated on Thu 30-Oct-2008 12:52:18 by <strong><a href="http://www.artefact.tk/software/matlab/m2html/">m2html</a></strong> &copy; 2003</address></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -