Code Monkey home page Code Monkey logo

knnkeywordspotting's Introduction

Project Introduction

A-Lightweight-Model-for-Keyword-Spotting by Webersan

The project is in the development of continuous improvement.

Environment

Python 3.10.3

LIBs				   VERSION
numpy                  1.21.6
scipy                  1.8.0
PyAudio                0.2.11
python-speech-features 0.6
matplotlib             3.5.1	(not necessary)
scikit-learn           1.0.2	(not necessary)

A Way to Test the Model

python main.py

Modify test time duration

Change N to modify time duration, about 2.5 secs per 100 chunks.

N == 300 is suggested.

for _ in range(N):	# main.py line 45

Result

While the program is running, you are supposed to speak to the microphone on your computer. The console displays a string containing the most probable phoneme.

Listening...
c:\PythonProjects\DSP Project\main.py:50: DeprecationWarning:
The binary mode of fromstring is deprecated, as it behaves surprisingly on unicode inputs.
Use frombuffer instead data_int = np.fromstring(data_bytes, dtype=np.int16)

NNNNNNNNNNNNNNNNNNNNNNNNNssssssssoooooooorioNNotoooo
NNNNriririririririNNNNNNoooooooooooooooooooooooNNNNN
tttNtNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
NNNNNNNNNtttttNNttriNNsssssssoooooooNNNririririririri
riririririritNNNNooooooNNNNNttNtNNNNNririririNriNNNN
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNriNNNNNNNNNNNNNNNNNN
NNNNNNNNNNNNNNN

Time cost: 7.512481212615967 s
Listening Complete.

Up to now, the model supports these phoneme:

's'

'o'

'ri' (or pricisely 'i')

't'

N (nothing)

This model recognizes vowels better than consonants.

knnkeywordspotting's People

Contributors

weber-comm avatar

Stargazers

 avatar  avatar

Watchers

 avatar

knnkeywordspotting's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.