world_synth
Functions
-
int main(int argc, char *argv[])
world_synth [ option ] spfile apfile [ f0file ]
-l int
FFT length
-p int
frame shift [point] \((1 \le P)\)
-s double
sampling rate [kHz] \((8 < F_s \le 98)\)
-F int
pitch format
0
pitch \((F_s / F_0)\)1
F02
log F0
-S int
spectrum format
0
\(20 \log_{10} |H(z)|\)1
\(\log |H(z)|\)2
\(|H(z)|\)3
\(|H(z)|^2\)
-A int
aperiodicity format
0
Ha1
Hp2
Ha/Hp3
Hp/Ha
spfile str
double-type spectrum
apfile str
double-type aperiodicity
f0file str
double-type pitch, not exicitaiton
stdout
double-type waveform
- Parameters:
argc – [in] Number of arguments.
argv – [in] Argument vector.
- Returns:
0 on success, 1 on failure.
See also
-
class WorldSynthesis
Synthesize speech waveform using WORLD vocoder.
Public Functions
-
WorldSynthesis(int fft_length, int frame_shift, double sampling_rate)
- Parameters:
fft_length – [in] FFT length.
frame_shift – [in] Frame shift in point.
sampling_rate – [in] Sampling rate in Hz.
-
inline int GetFftLength() const
- Returns:
FFT length.
-
inline virtual int GetFrameShift() const
- Returns:
Frame shift.
-
inline double GetSamplingRate() const
- Returns:
Sampling rate.
-
inline bool IsValid() const
- Returns:
True if this object is valid.
-
bool Run(const std::vector<double> &f0, const std::vector<std::vector<double>> &spectrum, const std::vector<std::vector<double>> &aperiodicity, std::vector<double> *waveform) const
- Parameters:
f0 – [in] Fundamental frequency in Hz.
spectrum – [in] Power spectrum.
aperiodicity – [in] Aperiodicity ratio.
waveform – [out] Synthesized waveform.
- Returns:
True on success, false on failure.
-
WorldSynthesis(int fft_length, int frame_shift, double sampling_rate)