MCPcopy Index your code
hub / github.com/geekcomputers/Python / say

Function say

JARVIS/speech.py:98–103  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

96
97
98def say(text):
99 output_encoding = sys.stdout.encoding or "utf-8"
100 clean_text = clean_assistant_output(text)
101 safe_text = clean_text.encode(output_encoding, errors="replace").decode(output_encoding)
102 print(f"Jarvis: {safe_text}")
103 speak(safe_text)
104
105
106def recognize_audio(audio, recognizer):

Callers 4

check_lm_studioFunction · 0.85
handle_and_sayFunction · 0.85
voice_loopFunction · 0.85
typed_loopFunction · 0.85

Calls 2

clean_assistant_outputFunction · 0.85
speakFunction · 0.70

Tested by

no test coverage detected