docs: def on_taskend(self, task):
          """ Play sounds at task end.
              """
          key = 'timer' if task.elapsed else 'end'
          filename = self.files.get(key)
  
          if filename:
              self._play_sound(filename)