Add realtimesst example

This commit is contained in:
mudler
2025-02-05 19:57:25 +01:00
parent 2a6650c3ea
commit 6ae019db23
3 changed files with 26 additions and 0 deletions

12
example/realtimesst/main.py Executable file
View File

@@ -0,0 +1,12 @@
#!/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)