SignalGetEnergy Method |
Namespace: Accord.Audio
// Let's say we would like to compute the energy of an audio signal. For this, // we will take an example signal from the Free Spoken Digits Dataset (FSDD): FreeSpokenDigitsDataset fsdd = new FreeSpokenDigitsDataset(basePath); Signal signal = fsdd.GetSignal(digit: 3, speaker: "jackson", index: 0); // The energy is defined as the sum of squared values in all // channels of the audio signal. In this case, it should be: double energy = signal.GetEnergy(); // 19.448728048242629