def get_sox_encoding_t(i=None): """Get enum of sox_encoding_t for sox encodings. Args: i (int, optional): choose type or get a dict with all possible options use `__members__` to see all options when not specified Returns: sox_encoding_t: a sox_encoding_t type for output encoding """ if i is None: # one can see all possible values using the .__members__ attribute return _torch_sox.sox_encoding_t else: return _torch_sox.sox_encoding_t(i)
def get_sox_encoding_t(i: int = None) -> EncodingInfo: r"""Get enum of sox_encoding_t for sox encodings. Args: i (int, optional): Choose type or get a dict with all possible options use ``__members__`` to see all options when not specified. (Default: ``None``) Returns: sox_encoding_t: A sox_encoding_t type for output encoding """ import _torch_sox if i is None: # one can see all possible values using the .__members__ attribute return _torch_sox.sox_encoding_t else: return _torch_sox.sox_encoding_t(i)