I am looking for advice on a project I am thinking about completing (for experience etc..)

My project is triggering a set of traffic lights (simulation) using Speech recognition. In theory, I want to use a HMM (Hidden Markov model) to determine whether someone wants to cross the road or not, this can be determined by someone saying "Yes" and then if there is white-noise, or, the Phones "Yes" is not present it can infer that no-one wants to cross and therefore there is no need to trigger the lights.

I'm looking for advice in whether this can be done using an HMM? I have some experience in both of these I just need to know whether it would be a good idea to use an HMM / Viberti algorithm

I hope someone can help me,

Thanks :)


I learnt to use HTK based on this very basic tutorial


It details how to make a yes/no recogniser. It should get you off to a good start at least. There is also some HTK code on the main HTK site that allows you to perform real time speech recognition.

To improve robustness, you might also consider training the recogniser on speech tokens that are mixed with the kind of noises that you'd expect to hear around your receiver. You could place a recording device near to the traffic light and record a day's worth of background material, then randomly select samples windows to add to your speech corpus at various levels.

| improve this answer | |
  • $\begingroup$ Thank you very much for your answer, and, suggesting this tutorial.. It is helpful, however, I am looking to implement one from scratch using C++ so I need to get the processes into my head. I'll take a look through this properly and ask anymore questions if needed but thank you :)! $\endgroup$ – Phorce Oct 5 '12 at 15:43
  • 1
    $\begingroup$ Always helps to look at an established solution first, and then you have a benchmark for performance comparison when you go off the deep and and make your own from scratch. All the best! $\endgroup$ – learnvst Oct 5 '12 at 16:09
  • $\begingroup$ So I am right in saying that it is possible to use an HMM to complete this project? $\endgroup$ – Phorce Oct 5 '12 at 18:04
  • $\begingroup$ It is one possibility, yes. $\endgroup$ – learnvst Oct 5 '12 at 18:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.