mirror of
https://github.com/mudler/LocalAGI.git
synced 2026-07-23 18:55:52 -04:00
12 lines
267 B
Python
Executable File
12 lines
267 B
Python
Executable File
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
from RealtimeSTT import AudioToTextRecorder
|
|
|
|
def process_text(text):
|
|
print(text)
|
|
|
|
if __name__ == '__main__':
|
|
recorder = AudioToTextRecorder(wake_words="jarvis")
|
|
|
|
while True:
|
|
recorder.text(process_text) |