Skip to main content

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)

Release files for vbsoundinference 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vbsoundinference 1.1.0
File Size Uploaded
vbsoundinference-1.1.0.tar.gz 4.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vbsoundinference 1.1.0
File Interpreter ABI Platform
vbsoundinference-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.4 kB

Release files / vbsoundinference-1.1.0.tar.gz

Download URL vbsoundinference-1.1.0.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
8abf824ea95698ee6050c3b7b081f10910cef52707180077000b692547ef447a
BLAKE2b-256 checksum
How to use checksums
613a36b636bfdc19e321c3e44fb2930d719fed4a6686cf10cdbe34110d45967d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release files / vbsoundinference-1.1.0-py3-none-any.whl

Download URL vbsoundinference-1.1.0-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
76cba0e6bc223d1d623742fc0cd722b0a0a8a0847054703bc85243aa071b2659
BLAKE2b-256 checksum
How to use checksums
3d5515429cdee83a781297f1ba0afaf0cf755181591a2e27147dbb5aec3af1d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page