def METHOD_NAME(self, fileobj):
    page = OggPage.find_last(fileobj, self.serial, finishing=True)
    if page is None:
        raise OggSpeexHeaderError
    self.length = page.position / float(self.sample_rate)