MCPcopy Create free account
hub / github.com/audeering/opensmile / initialize

Method initialize

progsrc/smileapi/python/opensmile/SMILEapi.py:241–249  ·  view source on GitHub ↗

Initializes openSMILE with the provided config file and command-line options.

(self, config_file: str, options: Dict[str, Any]=None, loglevel: int=2, debug: bool=False,
                   console_output: bool=False, log_file: str = None)

Source from the content-addressed store, hash-verified

239 self._callbacks = []
240
241 def initialize(self, config_file: str, options: Dict[str, Any]=None, loglevel: int=2, debug: bool=False,
242 console_output: bool=False, log_file: str = None):
243 """
244 Initializes openSMILE with the provided config file and command-line options.
245 """
246 options_flat = list(map(lambda v: bytes(str(v), "ascii"), sum(options.items(), ())))
247 options_char_arr = c_char_p_arr(options_flat)
248 log_file = bytes(log_file, "ascii") if log_file else int(0)
249 self._check_smile_result(smileapi.smile_initialize(self._smileobj, bytes(config_file, "ascii"), len(options), options_char_arr, loglevel, int(debug), int(console_output), log_file))
250
251 def external_source_write_data(self, component_name: str, data: np.ndarray) -> bool:
252 """

Callers 1

processMethod · 0.95

Calls 5

_check_smile_resultMethod · 0.95
listFunction · 0.85
mapFunction · 0.85
c_char_p_arrFunction · 0.85
smile_initializeMethod · 0.80

Tested by

no test coverage detected