somnus | Somnus offers easy keyword detection for everyone | Runtime Evironment library
kandi X-RAY | somnus Summary
kandi X-RAY | somnus Summary
Somnus offers easy keyword detection for everyone. It allows you to listen for and detect a specific keyword in a continuous stream of audio data. It uses keyword detection models developed by Google and Baidu to detect instances of the keyword and by using these small-footprint models Somnus keeps memory usage and latency to a minimum.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Augment audio
- Create a negative example
- Create a positive example
- Match the target dBFS to the target dB
- Preprocess the audio data
- Create a dataset
- Normalize an audio time series
- Quantize a saved model
- Load the model
- Test for accuracy
- Predict the input
- Train the Somnus model
- Create a CNN model
- Compile the model
- Save the model
- Listen for audio
- Calculate the prediction
- Get an audio stream
- Setup the stream
- Detects a keyword in the audio stream
somnus Key Features
somnus Examples and Code Snippets
from somnus.somnus import Somnus
s = Somnus(model='./saved_model.h5', device_index=1)
activated = s.listen()
if activated:
print('You did it!')
else:
print('Something went wrong!')
sudo apt-get install portaudio19-dev python-pyaudio python3-pyaudio
Community Discussions
Trending Discussions on somnus
QUESTION
File input:
...ANSWER
Answered 2021-Mar-13 at 01:03I found out that the problem I had was on the axios post,
QUESTION
I've been trying to use Puppeteer to scrape a website, but when I try to obtain the screenshot it never loads it either goes to a TimeoutError or just never finishes.
...ANSWER
Answered 2021-Feb-12 at 21:27There appears to be an unnecessary waitForNavigation
call here. Since you already waited until page load, waiting for another navigation that never occurs is going to cause a timeout. Re-add the commented-out line below to reproduce your problem.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install somnus
Somnus makes it simple to go from raw audio recordings to a working keyword detection model. To get started create a few recordings of yourself saying the keyword and download the datasets in the Recommended datasets section. Move the files to the raw audio directory you specify by running somnus configure. Now that you have your raw audio files set up, you can use our default configurations to create a highly effective keyword detection model. Now that you have a trained model you can use the Somnus client to detect a keyword using your microphone. First run somnus list_microphones to find the device index of your microphone. Then run the following test script using your microphone's device index and verify that the keyword detection is working.
Run somnus augment_audio to augment the audio files with background noise and create your audio dataset
Run somnus preprocess to normalize the data stored in the augmented audio files and create a dataset that's been prepared for our keyword detection models
Run somnus train --epochs 10 to train a keyword detection model using the dataset you just created. The resulting model will be saved to saved_model.h5 in your current working directory.
Run somnus test to test the accuracy of the model you just trained using a test dataset that was generated by the preprocess command.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page