This node multiplies the separated sound spectrum input by the optimal gain and the probability of speech presence (see PostFilter ) and outputs the result.
No files are required.
When to use
This node is used when obtaining a speech spectrum with suppressed noise from a separated sound spectrum.
Typical connection
Figure 6.81 shows a connection example of SpectralGainFilter . Inputs are 1) separation spectra output from GHDSS 2) the optimal gain, and 3) the probability of speech presence, output from CalcSpecSubGain for example. In the figure, an audio file is created with this node being connected to Synthesize and SaveRawPCM as an example of output.
Input
: Map<int, ObjectRef> type. The same type as that of the output of GHDSS . A pair containing a sound source ID and the complex spectrum of the separated sound as Vector<complex<float> > type data.
: Map<int, ObjectRef> type. A pair containing a sound source ID and the probability of speech presence as Vector<float> type data.
: Map<int, ObjectRef> type. A pair of the sound source ID and the optimal gain as Vector<float> type data.
Output
: Map<int, ObjectRef> type. The same type as the output of GHDSS . A pair containing a sound source ID and the complex spectrum of separated sound as Vector<complex<float> > type data.
Parameter
No parameters
This node multiplies the input speech spectrum by the optimal gain and the probability of speech presence and outputs a separated sound spectrum with emphasized speech. If the separated sound spectrum input is $X_ n(k_ i)$, the optimal gain is $G_ n(k_ i)$ and the probability of speech presence is $p_ n(k_ i)$, the separated sound for which the input speech is enhanced $Y_ n(k_ i)$ is expressed as follows.
$\displaystyle Y_ n(k_ i) $ | $\displaystyle = $ | $\displaystyle X_ n(k_ i) G_ n(k_ i) p_ n(k_ i) $ | (136) |