

def run(self):
    self.socket = self.create_socket()
    while self.should_continue():
        recording = parseSaverMessage(self.socket.recv())
        id = uniqId2Int(recording.id)
        part = recording.part
        chunk_id = uniqId2Int(recording.chunk_id)
        model = recording.model
        body = recording.body
        frame_rate = recording.frame_rate
        alternatives = alternatives2List(recording.alternatives)
        self.model.save_recording(id, part, chunk_id, model, body, frame_rate, alternatives)

dataset/ETHPy150Open UFAL-DSG/cloud-asr/cloudasr/recordings/lib.py RecordingsSaver.run/original