Voice recognition
I was just wondering if someone had tried a voice recognition library in vizard, because i would like to make a application where i can control it with my voice.
I found another thread about this but it was a little old and said that the library that was used now doesn't work. So if some knows an approach to make this, I'm all ears :) |
You can use the 3rd party pywin32 library along with the Microsoft Speech SDK to perform voice recognition in Python.
1) Download and install the pywin32 library. 2) Download and install the Microsoft Speech SDK. 3) Run the makepy script and select the Microsoft Speech Object Library from the list and click OK. The makepy script should be located in your "[Vizard]\bin\lib\site-packages\win32com\client" folder. 4) You should now be able to run the following sample script which allows you to change the background color by saying the name of the color: Code:
from win32com.client import constants |
wow thank you, but just a question where it say "wordsRule" in the code, this like a keyword to start recognizing the next word that i will say or what is this?
I tried and it works great, but if i want recognize only when a key word is said? for example: if i say "vizard(keyword) green(command)" will turn green the background, but if i just say green will do nothing. |
lol i think i just need to add the keyword before the word, like this:
Code:
VOICE_COLORS = { "vizard Red" : viz.RED |
All times are GMT -7. The time now is 06:24 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC