(Very) Simple Speech Recognition for the Propeller: Success!
Microcontrolled
Posts: 2,461
This was posted on the other thread but I figured that I would post it here so that it would be easy to find.
I copyed this description from the other thread and posted it here. This is how it works:
It works by taking your program and replacing the "Play" (although it can be put back in if you want playback, I did that) with a new "CheckRecording" subroutine. It has not only a WAV byte array, but also a "Final" byte array as well. The extra subroutine takes the first part of the "Start" routine from your program and the "Play" subroutine and combines them after the "Record" subroutine call in the "Start" subroutine. It then replaces the playing part of the "Play" routine with a function that checks the sound within a range that is set in the CON block. It reads it byte by byte in decimal mode and then once checked it writes them to temporary VARs. It is doing this in a repeat loop so the temporary VARs get overwritten every time it loops. Anyway it is reading the previous recording and the new recording at the same time, so that is what it is comparing. If it is in the set range (say, "40") then it writes +1 to the globel "sound" VAR. When it is done with this it checks for how consistent it is by guessing how many sound bytes where within range by a value set in the CON block. The value can be 0000 (none right) or 8000 (all right, impossible match) it does the comparison with a "=>" sign so it can be more exact, but not less exact.
Please help me with this by modifying the code. You may need to adjust the choke and the accuracy to fit your voice.
Here is a video demonstration:
www.youtube.com/watch?v=7X_0wLvo0SQ
Thanks for your support and thanks to OBC for the "parrot" software that he provided!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Computers are microcontrolled.
Robots are microcontrolled.
I am microcontrolled.
But you·can·call me micro.
If it's not Parallax then don't even bother.
I have changed my avatar so that I will no longer be confused with others who use generic avatars (and I'm more of a Prop head then a BS2 nut, anyway)
I copyed this description from the other thread and posted it here. This is how it works:
It works by taking your program and replacing the "Play" (although it can be put back in if you want playback, I did that) with a new "CheckRecording" subroutine. It has not only a WAV byte array, but also a "Final" byte array as well. The extra subroutine takes the first part of the "Start" routine from your program and the "Play" subroutine and combines them after the "Record" subroutine call in the "Start" subroutine. It then replaces the playing part of the "Play" routine with a function that checks the sound within a range that is set in the CON block. It reads it byte by byte in decimal mode and then once checked it writes them to temporary VARs. It is doing this in a repeat loop so the temporary VARs get overwritten every time it loops. Anyway it is reading the previous recording and the new recording at the same time, so that is what it is comparing. If it is in the set range (say, "40") then it writes +1 to the globel "sound" VAR. When it is done with this it checks for how consistent it is by guessing how many sound bytes where within range by a value set in the CON block. The value can be 0000 (none right) or 8000 (all right, impossible match) it does the comparison with a "=>" sign so it can be more exact, but not less exact.
Please help me with this by modifying the code. You may need to adjust the choke and the accuracy to fit your voice.
Here is a video demonstration:
www.youtube.com/watch?v=7X_0wLvo0SQ
Thanks for your support and thanks to OBC for the "parrot" software that he provided!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Computers are microcontrolled.
Robots are microcontrolled.
I am microcontrolled.
But you·can·call me micro.
If it's not Parallax then don't even bother.
I have changed my avatar so that I will no longer be confused with others who use generic avatars (and I'm more of a Prop head then a BS2 nut, anyway)
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nyamekye,
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Computers are microcontrolled.
Robots are microcontrolled.
I am microcontrolled.
But you·can·call me micro.
If it's not Parallax then don't even bother.
I have changed my avatar so that I will no longer be confused with others who use generic avatars (and I'm more of a Prop head then a BS2 nut, anyway)