Kolja Beigel 691b0720c8 Merge branch 'master' into master 5 ماه پیش
..
README.md e377a4b2bc openwakeword support 10 ماه پیش
advanced_talk.py 1d9c08f1da Recording and transcribing moved to separate process 1 سال پیش
feed_audio.py c5dd3bef70 feed audio example 6 ماه پیش
install_packages.py 4fcda3ffba cli server 7 ماه پیش
minimalistic_talkbot.py 1d9c08f1da Recording and transcribing moved to separate process 1 سال پیش
openai_voice_interface.py 1d9c08f1da Recording and transcribing moved to separate process 1 سال پیش
openwakeword_test.py b52be1add0 removed unnecessary imports 8 ماه پیش
realtime_loop_test.py 21b49bff31 context manager implemented 1 سال پیش
realtimestt_chinese.py b52be1add0 removed unnecessary imports 8 ماه پیش
realtimestt_speechendpoint.py 6a057ce511 new speech endpoint detection 7 ماه پیش
realtimestt_test.py cd72e3b257 added keyboard write 7 ماه پیش
realtimestt_test_hotkeys_v2.py 81a901c2c0 Static transcription now uses the same model as the live model (from recorder_config) 6 ماه پیش
realtimestt_test_stereomix.py f98053f166 save changes 7 ماه پیش
recorder_client.py 491f2169d2 audio_recorder_client 6 ماه پیش
simple_test.py ba4d24bd8d updated tests 7 ماه پیش
translator.py 1d9c08f1da Recording and transcribing moved to separate process 1 سال پیش
wakeword_test.py 21b49bff31 context manager implemented 1 سال پیش

README.md

OpenWakeWord Test

  1. Set up the openwakeword test project:

    mkdir samantha_wake_word && cd samantha_wake_word
    curl -O https://raw.githubusercontent.com/KoljaB/RealtimeSTT/master/tests/openwakeword_test.py
    curl -L https://huggingface.co/KoljaB/SamanthaOpenwakeword/resolve/main/suh_mahn_thuh.onnx -o suh_mahn_thuh.onnx
    curl -L https://huggingface.co/KoljaB/SamanthaOpenwakeword/resolve/main/suh_man_tuh.onnx -o suh_man_tuh.onnx
    

    Ensure you have curl installed for downloading files. If not, you can manually download the files from the provided URLs.

    1. Create and activate a virtual environment: bash python -m venv venv
    • For Windows:

      venv\Scripts\activate
      
      • For Unix-like systems (Linux/macOS): bash source venv/bin/activate
    • For macOS: Use python3 instead of python and pip3 instead of pip if needed.

  2. Install dependencies:

    python -m pip install --upgrade pip
    python -m pip install RealtimeSTT
    python -m pip install -U torch torchaudio --index-url https://download.pytorch.org/whl/cu121
    

    The PyTorch installation command includes CUDA 12.1 support. Adjust if a different version is required.

    1. Run the test script: bash python openwakeword_test.py

On the very first start some models for openwakeword are downloaded.