Predict next sample and generate sound