A python library for wake-word detection on low end devices.
Project description
vbsoundinference is based of an algorithm i invented called VSI for wake work detection on CPUs.
To use vbsoundinference, first collect your custom wake word data using vsi.recorder.
from vsi.recorder import Recorder # import the Recorder class
recorder = Recorder() # create the Recorder object
recorder.record_class(n_recordings=10, class_number=0, duration=1, num_samples=512, # record class 0
dataset_file="test_dataset.txt", append=False)
vbsoundinference will store all the training data in one file. e.g-dataset.txt.
The append argument will append the recorded data to the dataset instead of deleting the previous data.
To train the model, use vsi.trainer.
from vsi.trainer import Trainer # import the Trainer class
trainer = Trainer(dataset_file_path="test_dataset.txt") # create the Trainer object
trainer.load_dataset() # load the dataset
trainer.train(epochs=100, save_path="model.pth") # train and save the model
To use the model, use vsi.vsi.
from vsi.vsi import VSI # import the VSI class
from vsi.recorder import Recorder # import the Recorder class
vsi = VSI() # create the VSI object
recorder = Recorder() # create the Recorder object
while True: # infinite loop
recording = recorder.record_sample() # record a sample
prediction = vsi.predict(recording.recording) # get the model's prediction
print(prediction)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vbsoundinference-1.1.0.tar.gz.
File metadata
- Download URL: vbsoundinference-1.1.0.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8abf824ea95698ee6050c3b7b081f10910cef52707180077000b692547ef447a
|
|
| MD5 |
d52f8387a0dac1ccbbca56b87cb8c811
|
|
| BLAKE2b-256 |
613a36b636bfdc19e321c3e44fb2930d719fed4a6686cf10cdbe34110d45967d
|
File details
Details for the file vbsoundinference-1.1.0-py3-none-any.whl.
File metadata
- Download URL: vbsoundinference-1.1.0-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76cba0e6bc223d1d623742fc0cd722b0a0a8a0847054703bc85243aa071b2659
|
|
| MD5 |
b14804f676bd8999d869c6654c7e534d
|
|
| BLAKE2b-256 |
3d5515429cdee83a781297f1ba0afaf0cf755181591a2e27147dbb5aec3af1d3
|