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)
| 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 | """ |
no test coverage detected