So Microsoft has finally confirmed it happened

Douglas Farias

Expert
Licensed User
Longtime User
37GB wow.
I thought Cortana was just some if and else...
 

lhatch

Member
Licensed User
I turned on Cortana once. Pass, will not do that again.

What I find funny, I was the same post on Facebook weeks ago, but Linux kernel, not M$ source was leaked. It was in the computer meme group. No kidding. Maybe someone modified it, not knowing Linux is open source? AND, I think we are safe on AnandGupta, he looks too old in profile. But, that could be faked too!

I think if I took any code, it would not be Bing and Cortana too, LOL.
 

aeric

Expert
Licensed User
Longtime User
It IS. A LOT of IF and ELSE though ?

Something like this?
B4X:
        If TTS.SetLanguage("en-US") Then
            If lblText.Text.ToLowerCase.Contains("how are you") Then
                strText = "I am fine. Thank you!"
            Else If lblText.Text.StartsWith("Say ") Then
                strText = lblText.Text.Replace("Say ", "")
            Else
                strText = "Sorry, I don't understand what you're saying!"
            End If
            lblText.TextColor = Colors.RGB(30, 144, 255)
            lblText.Text = strText
            TTS.Speak(strText, False)
        Else
            Log("TTS.SetLanguage failed")
            lblText.TextColor = Colors.Red
            lblText.Text = "Text To Speech not available."
        End If
Source: https://github.com/pyhoon/aco-b4i/blob/main/Aco/Aco.b4i
Note: Don't laugh at my coding ?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…