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.04k stars 182 forks source link

wakeword_backend "pvporcupine" is not free? #147

Open sangheonEN opened 1 day ago

sangheonEN commented 1 day 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 day ago

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

sangheonEN commented 1 day 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 day ago

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