This commit is contained in:
dingfeng.wong
2025-07-23 12:36:34 +08:00
parent 6e2bda5cfb
commit 30cdcd8fba
6 changed files with 1451 additions and 14 deletions
+19
View File
@@ -0,0 +1,19 @@
#!/usr/bin/env python3
"""
Simple RealtimeSTT Test Script
Test wake word detection and transcription functionality
without the complexity of threading and status bar apps.
"""
from RealtimeSTT import AudioToTextRecorder
def process_text(text):
print(text)
if __name__ == '__main__':
print("Wait until it says 'speak now'")
recorder = AudioToTextRecorder()
while True:
recorder.text(process_text)