MCPcopy
hub / github.com/dnhkng/GLaDOS / get

Method get

glados/whisper_cpp_wrapper.py:514–522  ·  view source on GitHub ↗

Return the given name according to the selected calling convention

(self, name, calling_convention="cdecl")

Source from the content-addressed store, hash-verified

512 self.access = dict(cdecl=ctypes.CDLL(path, self.mode))
513
514 def get(self, name, calling_convention="cdecl"):
515 """Return the given name according to the selected calling convention"""
516 if calling_convention not in self.access:
517 raise LookupError(
518 "Unknown calling convention '{}' for function '{}'".format(
519 calling_convention, name
520 )
521 )
522 return getattr(self.access[calling_convention], name)
523
524 def has(self, name, calling_convention="cdecl"):
525 """Return True if this given calling convention finds the given 'name'"""

Callers 13

process_TTS_threadMethod · 0.80
process_LLMMethod · 0.80
convert_to_phonemesMethod · 0.80
from_yamlMethod · 0.80
is_runningMethod · 0.80
_listen_and_respondMethod · 0.80
from_dictMethod · 0.80
__init__Method · 0.80
getplatformpathsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected