Announcement

Collapse
No announcement yet.

Voice Command?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Voice Command?

    I am running HS2. As an example, I have a voice command event as the following:
    "In (1|2|3|......|20|30...) Turn On The Waterfall".

    The problem I have is HS recognized the the numerical value, says "3" as "three" not "3". Why and how do I fix it?

    Thanks

    #2
    Translate it via scripts. I find I have to do a lot of cleaning up of voice input this way.

    In this case, something like this:

    Code:
    sub main()
    
    dim v, words, num
    v=hs.LastVoiceCommand
    words = split(v)
    
    select case words(1)
      case "one"
        num = 1
      case "two"
        num = 2
      case "three"
        num = 3
      etc...
    end select
    
    do stuff with it...
    
    end sub

    Comment

    Working...
    X