pickle_speakers

pickle_speakers(speakers, path)

This will serialize a SpeakerCollection to a pickle file, that can be re-read in a new python session.

Note: new-fave uses the cloudpickle library, rather than the standard pickle library, which comes with the following limitations, according to the cloudpickle documentation:

Cloudpickle can only be used to send objects between the exact same version of Python.

Using cloudpickle for long-term object storage is not supported and strongly discouraged.

Parameters

Name Type Description Default
speakers SpeakerCollection A SpeakerCollection to serialize required
path str | Path The destination file to save the pickle file. required