You're correct, and I apologize for the confusion. My previous example was incorrect.
In reality, the first output sample can't be emitted until the first window is fully collected and processed. This means that the first output sample will be emitted at t=64ms, not t=32ms.
Here's a corrected example:
Suppose you have an input speech signal that starts at t=0 and ends at t=Tms. You're using a window size of 1024 samples (64ms at 16kHz) and a hop size of 512 samples (32ms at 16kHz).
-
Start of the output: The first output sample is emitted at t=64ms, which corresponds to the center of the first window. This is because the first window needs to be fully collected before processing can begin.
-
End of the output: The last output sample is emitted at t=T+64ms, which is 64ms after the end of the input speech (t=Tms). This is because the last window needs to be fully collected before processing can begin, and the hop size is 32ms.
The 64ms "covering up" at the end of the output is a result of the latency introduced by the windowing and processing. This latency is inherent in the system and can't be eliminated.
However, this latency doesn't necessarily lead to distortion in the output. The output speech will still be a faithful reproduction of the input speech, but with a 64ms delay. The 64ms "covering up" at the end of the output is simply a result of the latency and doesn't introduce any distortion.
In real-world applications, this latency can be a concern, especially in interactive systems like hearing aids or teleconferencing. To mitigate this, techniques like look-ahead processing, pipelined processing, or parallel processing can be used to reduce the perceived latency.
In summary, the first output sample can't be emitted until the first window is fully collected and processed, which means that the first output sample will be emitted at t=64ms, not t=32ms. The 64ms "covering up" at the end of the output is a result of the latency introduced by the windowing and processing, but it doesn't necessarily lead to distortion in the output.