本文介绍了从现有的音频采样斤MATLAB合成元音的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用MATLAB和有元音的记录样本。
我期待利用我现有的样品在150Hz的的间距(持续5秒),以合成元音。 但是,很显然,这并不实际工作。

I'm using matlab and have a recorded sample of a vowel sound.I'm looking to make use of my existing sample to synthesize a vowel sound at a pitch of 150Hz (lasting 5 seconds). I originally thought that I'd just have to take a sample of my existing vowel sound at the given frequency but, obviously, that doesn't actually work.

所以,现在,我难倒一个人如何实际上去合成元音pretty?

So, now, I'm pretty stumped on how one would actually go about synthesizing the vowel sound?

推荐答案

一个可能的方法是:


  1. 取样品(视觉识别)的一个周期。重要的是,它开始在0值(或非常接近)结束,以避免在每个端点裂化引起discintinuities噪声。

  2. 上采样或下采样在步骤1期间提取作为必要的波形,以获得所需的间距。采样间距减小,下采样增加了。您可以使用重采样例如功能。

  3. ,直到你得到5秒所需的持续时间修补这些时期的许多一前一后。您可以使用 repmat 函数,该函数。

  4. 乘以5-第二波形元件逐元件由一个时间包络与所希望的形状。信封形状通常是在一个线性斜坡的形式的快速攻击从0到1,再长的恒定值,然后向0下降斜坡

  1. Take a single period of the sample (identified visually). It is important that it begins and ends at 0 value (or very close) to avoid cracking noises caused by discintinuities at the each endpoints.
  2. Upsample or downsample the waveform extracted in step 1 period as necessary to get the desired pitch. Upsampling decreases pitch, downsampling increases it. You can use resample function for instance.
  3. Patch a lot of those periods one after the other until you get the desired duration of 5 seconds. You can use repmat function for that.
  4. Multiply that 5-second waveform element-by-element by a time-envelope with the desired shape. The envelope shape will typically be a fast attack in the form of a linear ramp from 0 to 1 , then a long constant value and then a decreasing ramp towards 0.

有关增加真实感,你可以在信封(颤音效果)恒部分介绍了缓慢的幅度变化。您也可以在步骤1中抽取包含不是一个而是几个时期的波形一块信号。这些时期不会完全相同,这将增加温暖的声音。

For increased realism you could introduce slow amplitude variations in the "constant" part of the envelope (tremolo effect). You could also extract in step 1 a piece of signal containing not one but several periods of the waveform. Those periods will not be exactly the same, and that will add "warmth" to the sound.

这篇关于从现有的音频采样斤MATLAB合成元音的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-12 15:40