Closed csukuangfj closed 5 years ago
See the code https://github.com/Picovoice/wakeword-benchmark/blob/1a6745de51577f646cfb46d061b85415d5216425/mixer.py#L36-L43
speech_energy is computed at https://github.com/Picovoice/wakeword-benchmark/blob/1a6745de51577f646cfb46d061b85415d5216425/mixer.py#L39
speech_energy
Therefore, line https://github.com/Picovoice/wakeword-benchmark/blob/1a6745de51577f646cfb46d061b85415d5216425/mixer.py#L43 can use speech_energy directly instead of computing it again.
Cool! Can you please submit a PR and I will merge it in. Thanks.
See the code https://github.com/Picovoice/wakeword-benchmark/blob/1a6745de51577f646cfb46d061b85415d5216425/mixer.py#L36-L43
speech_energy
is computed at https://github.com/Picovoice/wakeword-benchmark/blob/1a6745de51577f646cfb46d061b85415d5216425/mixer.py#L39Therefore, line https://github.com/Picovoice/wakeword-benchmark/blob/1a6745de51577f646cfb46d061b85415d5216425/mixer.py#L43 can use
speech_energy
directly instead of computing it again.