Shop OBEX P1 Docs P2 Docs Learn Events
Help with Speech recognition code please! — Parallax Forums

Help with Speech recognition code please!

MicrocontrolledMicrocontrolled Posts: 2,461
edited 2009-09-21 00:43 in Propeller 1
Hi, I just CANNOT get this program to work. I have been working on a speech recognizer for Hanno's project and I have run into some trouble with (what I think is a final) prototype. When it "compresses" and compares the voice samples. it says that you sayed "right" no matter what you say. It is easy to use, try it for yourself. Just plug a Demo Board into a TV screen and follow the instructions on the screen.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Computers are microcontrolled.

Robots are microcontrolled.
I am microcontrolled.

But you·can·call me micro.

Want to·experiment with the SX or just put together a cool project?
SX Spinning light display·



Post Edited (microcontrolled) : 9/18/2009 11:55:07 PM GMT

Comments

  • MicrocontrolledMicrocontrolled Posts: 2,461
    edited 2009-09-18 16:37
    I just took away the subject because I need help on this immediatly and the current subject didn't seem to be getting any attention. Subject-free threads always get clicked on.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Computers are microcontrolled.

    Robots are microcontrolled.
    I am microcontrolled.

    But you·can·call me micro.

    Want to·experiment with the SX or just put together a cool project?
    SX Spinning light display·


  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2009-09-18 21:13
    Subject-free threads are considered off-topic because the forum guidelines require a descriptive subject.· Most people I know avoid them.· Moderators pay attention though.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage

    Parallax Engineering
    50 72 6F 6A 65 63 74 20 53 69 74 65
    ·
  • jazzedjazzed Posts: 11,803
    edited 2009-09-18 22:56
    Gotta give him credit for creativity though. Micro, I would look at your code, but I'm beat after following my wife all over town.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    --Steve

    Propeller Tools
  • MicrocontrolledMicrocontrolled Posts: 2,461
    edited 2009-09-18 23:54
    OK, I added a subject. It's just that I am totally stumped on this and really need help, but no one will help me.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Computers are microcontrolled.

    Robots are microcontrolled.
    I am microcontrolled.

    But you·can·call me micro.

    Want to·experiment with the SX or just put together a cool project?
    SX Spinning light display·


  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2009-09-19 01:10
    What are you trying to do with this clause?

    [b]if[/b] sound[noparse][[/noparse]*1] => sound[noparse][[/noparse]*2] [b]and[/b] sound[noparse][[/noparse]*3] [b]and[/b] sound[noparse][[/noparse]*4] [b]and[/b] sound[noparse][[/noparse]*5] [b]and[/b] sound[noparse][[/noparse]*6]
    
    


    If what you mean is really

    [b]if[/b] sound[noparse][[/noparse]*1] => sound[noparse][[/noparse]*2] [b]and[/b] sound[noparse][[/noparse]*1] => sound[noparse][[/noparse]*3] [b]and[/b] sound[noparse][[/noparse]*1] => sound[noparse][[/noparse]*4] [b]and[/b] sound[noparse][[/noparse]*1] => sound[noparse][[/noparse]*5] [b]and[/b] sound[noparse][[/noparse]*1] => sound[noparse][[/noparse]*6]
    
    
    


    then that's what you need to spell out in your program.

    -Phil
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2009-09-19 15:38
    Hello,

    I think the problem with your message and perhaps why it didn’t generate any response is that you simply stated you have a problem. You didn’t really ask a question or offer any insight to what you think was happening and then solicit some assistance with it. When following up on a post that has generated no responses it is often a good idea to look at the original post and ask yourself how you would have responded to it had you seen it from someone else. =) Perhaps then you can add a follow-up message to clarify your original needs. Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage

    Parallax Engineering
    50 72 6F 6A 65 63 74 20 53 69 74 65
    ·
  • Mike GreenMike Green Posts: 23,101
    edited 2009-09-19 16:21
    Another bug ...

    You're calling Main recursively. It sort of works because when rec is 7, you no longer call it. You could just put a REPEAT around the whole contents of Main to do what you seem to want to do.

    You could simplify Main by putting the six almost identical word entry parts in a subroutine and passing them a string for the word to be entered and the address of where to put the compressed information, then just calling them in sequence like:
    enterWord(string("right"),@right)
    enterWord(string("left"),@left)
    enterWord(string("up"),@up)
    ...
  • StefanL38StefanL38 Posts: 2,292
    edited 2009-09-20 19:18
    Hello microcontrolled,

    as you did not include the file "dual_ADC1.spin"
    I was not able to compile your code

    best thing to provide code is to use the archive-function
    this will include ALWAYS ALL files that were needed to compile a top-objectfile

    anyway I modified your code as suggested from mike

    see attached file

    best regards

    Stefan
  • MicrocontrolledMicrocontrolled Posts: 2,461
    edited 2009-09-21 00:43
    Thanks for the help. Correcting the sound variable didn't help for some reason. I will try Mike Green's suggestion and I will attach the Duel_ADC1 object soon.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Computers are microcontrolled.

    Robots are microcontrolled.
    I am microcontrolled.

    But you·can·call me micro.

    Want to·experiment with the SX or just put together a cool project?
    SX Spinning light display·


Sign In or Register to comment.