ap
Functions
- 
int main(int argc, char *argv[])
- ap [ option ] f0file [ infile ] - -a int - algorithm used for aperiodicity extraction - 0TANDEM-STRAIGHT
- 1WORLD (D4C)
 
 
- -l int - FFT length 
 
- -p int - frame shift [point] \((1 \le P)\) 
 
- -s double - sampling rate [kHz] \((8 \le F_s \le 98)\) 
 
- -L double - lower bound of aperiodicity \((0 \le L < H)\) 
 
- -H double - upper bound of aperiodicity \((L < H \le 1)\) 
 
- -q int - f0 input format - 0pitch \((F_s / F_0)\)
- 1F0
- 2log F0
 
 
- -o int - output format - 0Ha
- 1Hp
- 2Ha/Hp
- 3Hp/Ha
 
 
- infile str - double-type waveform 
 
- f0file str - double-type pitch 
 
- stdout - double-type aperiodicity 
 
 - The below is a simple example to extract aperiodicity from - data.d.- pitch -s 16 -p 80 -L 80 -H 200 -o 1 < data.d > data.f0 ap -s 16 -p 80 -q 1 data.f0 < data.d > data.ap - Parameters:
- argc – [in] Number of arguments. 
- argv – [in] Argument vector. 
 
- Returns:
- 0 on success, 1 on failure. 
 
See also
- 
class AperiodicityExtraction
- Extract aperiodicity from waveform. - The input is whole audio waveform and the output is the sequence of the aperiodicity measure. The implemented algorithms of the extraction are TANDEM-STRAIGHT and D4C. - [1] H. Kawahara et al., “Simplification and extension of non-periodic excitation source representations for high-quality speech manipulation systems,” Proc. of Interspeech, pp. 38-41, 2010. - [2] M. Morise, “D4C, a band-aperiodicity estimator for high-quality speech synthesis,” Proc. of Speech Communication, vol. 84, pp. 57-65, 2016. - Public Types - Public Functions - 
AperiodicityExtraction(int fft_length, int frame_shift, double sampling_rate, Algorithms algorithm)
- Parameters:
- fft_length – [in] FFT length. 
- frame_shift – [in] Frame shift in point. 
- sampling_rate – [in] Sampling rate in Hz. 
- algorithm – [in] Algorithm used for aperiodicity extraction. 
 
 
 - 
inline bool IsValid() const
- Returns:
- True if this object is valid. 
 
 - 
bool Run(const std::vector<double> &waveform, const std::vector<double> &f0, std::vector<std::vector<double>> *aperiodicity) const
- Parameters:
- waveform – [in] Waveform. 
- f0 – [in] Fundamental frequency in Hz. 
- aperiodicity – [out] Aperiodicity measure. 
 
- Returns:
- True on success, false on failure. 
 
 
- 
AperiodicityExtraction(int fft_length, int frame_shift, double sampling_rate, Algorithms algorithm)