Announcement

Collapse
No announcement yet.

TTS question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    TTS question

    I have a problem with TTS. Many times it will
    read a name by speaking its individual letters?

    How do I fix this?
    Thanks
    Joe
    jjsmd@yahoo.com

    #2
    What voices are you using? AT&T, built in OS voices,etc. Many voices will spell any phrase that is capitalized.
    💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

    Comment


      #3
      Very True, and this is more than likely why this is happening. If the speech is coming from a script insert the following JUST before the item is being spoken:

      YourVariable= Lcase(YourVaiiable)

      This will change the variable to all lower case so that it is spoken correctly

      For instance if you had a variable named playstring:

      Playstring = "HELLO"
      hs.speak playstring
      Would sound like "H E L L O"

      Playstring = Lcase(Playstring)
      hs.speak playstring
      Would sound like "hello"
      Visit My Home Seer Site at:
      www.JohnWPB.com
      Created with LCARS

      Comment


        #4
        Anybody have a routine to parse out the 1st letter of a text variable, so that the case of the variable can be changes to Title case

        e.g. Titlecase(HELLO)
        would come out Hello.

        Shouldn't be too hard to figure out a function.

        Actually I wish that TCase() would be a built in VB function.
        DSteiNeuro

        HS3Pro

        MSI Cubi Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz, 2201 Mhz, 2 Core(s), 4 Logical Processor(s) 16GB DDRl RAM

        Enabled Plug-Ins
        BLRussound, BLSpeech, HSTouch Server, JowiHue, MyQ, Nest, Rain8, Squeezebox, Ultra1Wire3, UltraGCIR3, Vista Alarm, X10,Z-Wave

        Comment


          #5
          The net is pretty amazing! To answer my own question, I did a quick google search. The 1st hit had a soulution:

          <pre class="ip-ubbcode-code-pre">
          Public Function Titlecase (Word As String) As String
          Word = Trim(Word)
          If Word = "" Then Exit Function
          Titlecase = UCase(Left(Word, 1)) & LCaseTrimFrom(Word, 1, 0))
          End Function
          </pre>

          http://www.blibbleblobble.co.uk/Down.../Titlecase.htm

          Will need a little modification but the concept works.
          DSteiNeuro

          HS3Pro

          MSI Cubi Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz, 2201 Mhz, 2 Core(s), 4 Logical Processor(s) 16GB DDRl RAM

          Enabled Plug-Ins
          BLRussound, BLSpeech, HSTouch Server, JowiHue, MyQ, Nest, Rain8, Squeezebox, Ultra1Wire3, UltraGCIR3, Vista Alarm, X10,Z-Wave

          Comment


            #6
            Here you go:

            <pre class="ip-ubbcode-code-pre">
            Playstring = "HELLO"
            Playstring = LCase(Playstring)
            Playstring = UCase(Left(Playstring, 1)) & Mid(Playstring, 2)
            </pre>
            💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

            Comment


              #7
              Hey Rupp!

              That's it. Pretty simple, has been on my wish list for a long time.
              If anyone wants to try it:

              <pre class="ip-ubbcode-code-pre">
              sub main()
              Playstring = inputbox ("playstring")
              Playstring = LCase(Playstring)
              Playstring = UCase(Left(Playstring, 1)) & Mid(Playstring, 2)
              msgbox playstring
              end sub
              </pre>
              DSteiNeuro

              HS3Pro

              MSI Cubi Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz, 2201 Mhz, 2 Core(s), 4 Logical Processor(s) 16GB DDRl RAM

              Enabled Plug-Ins
              BLRussound, BLSpeech, HSTouch Server, JowiHue, MyQ, Nest, Rain8, Squeezebox, Ultra1Wire3, UltraGCIR3, Vista Alarm, X10,Z-Wave

              Comment


                #8
                Thanks for the replies.
                the problem was with the upper case.
                All is well now.

                Joe
                jjsmd@yahoo.com

                Comment

                Working...
                X