KoljaB / RealtimeSTT

A robust, efficient, low-latency speech-to-text library with advanced voice activity detection, wake word activation and instant transcription.
MIT License
2.09k stars 189 forks source link

wakeword_backend "pvporcupine" is not free? #147

Open sangheonEN opened 1 week ago

sangheonEN commented 1 week ago

wakeword_backend: str = "pvporcupine",

If you look at the contents of https://pypi.org/project/pvporcupine/,

Create an instance of the engine

import pvporcupine

access_key = "${ACCESS_KEY}" # AccessKey obtained from Picovoice Console (https://console.picovoice.ai/)

handle = pvporcupine.create(access_key=access_key, keywords=['picovoice'])

When creating a model, access_key is required.

However, in the wakeword_test.py code of RealTimeSTT, access_key is not assigned when creating as shown below.

Are you providing a free version of the model yourself?

from RealtimeSTT import AudioToTextRecorder import logging

if name == 'main':

def recording_started():
    print("Speak now...")

def recording_finished():
    print("Speech end detected... transcribing...")

with AudioToTextRecorder(spinner=False, level=logging.DEBUG, model="small.en", language="en", wake_words="jarvis", on_wakeword_detected=recording_started, on_recording_stop=recording_finished
    ) as recorder:
    print('Say "Jarvis" then speak.')
    print(recorder.text())
    print("Done. Now we should exit.")
KoljaB commented 1 week ago

I am using version 1.9.5 of pvporcupine. This was the last free version before they went commercial.

sangheonEN commented 1 week ago

1.9.5 of pvporcupine, can I use the keyword I want to wake up with for free?

I don't have a model created, so I don't know how to create a model.

KoljaB commented 1 week ago

No, you can only select from a predefined list of keywords with this version.