espnet.nets.pytorch_backend.streaming.window.WindowStreamingE2E
Less than 1 minute
espnet.nets.pytorch_backend.streaming.window.WindowStreamingE2E
class espnet.nets.pytorch_backend.streaming.window.WindowStreamingE2E(e2e, recog_args, rnnlm=None)
Bases: object
WindowStreamingE2E constructor.
- Parameters:
- e2e (E2E) – E2E ASR object
- recog_args – arguments for “recognize” method of E2E
accept_input(x)
Call this method each time a new batch of input is available.
decode_with_attention_offline()
Run the attention decoder offline.
Works even if the previous layers (encoder and CTC decoder) were being run in the online mode. This method should be run after all the audio has been consumed. This is used mostly to compare the results between offline and online implementation of the previous layers.