Skip to content

Commit

Permalink
aDDED sPEECH oUT
Browse files Browse the repository at this point in the history
  • Loading branch information
spydaz committed Jun 10, 2020
1 parent c590e2a commit 538d524
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions Chatbot_2020_Tutorial.vbproj
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Speech" />
<Reference Include="System.Web.Extensions" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
Expand Down
11 changes: 9 additions & 2 deletions Forms/Form_Chat_UI.vb
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Imports System.IO

Imports System.speech

''' <summary>
''' This is the Main Communications Center
''' </summary>
Public Class Form_Chat_UI

Private Speechout As Speech.Synthesis.SpeechSynthesizer
Public Newpoint As New Point

'Methods for form positioning
Expand All @@ -29,8 +29,15 @@ Public Class Form_Chat_UI
End Get

End Property
Public Sub EffectActuators(ByRef Text As String)
If Loaded = True Then

Speechout.Speak(Text)
End If

End Sub
Public Sub DISPLAYOUTPUT(ByRef NewText As String)
EffectActuators(NewText)
TextOut.Text += "User: " & mInputText & vbNewLine & "AI: " & NewText & vbNewLine
End Sub

Expand Down

0 comments on commit 538d524

Please sign in to comment.