Unfortunately, there are also some problems with the use of the
autocorrelation. Voiced speech is not exactly periodic, which makes
the maximum lower than we would expect from a periodic signal.
Generally, a maximum is detected by checking the
autocorrelation