Speak

Imports System.Runtime.CompilerServices 
Imports System.Speech.Synthesis 

Module Module1 
    <Extension()> _ 
    Sub Speak(ByVal x As String) 
        Using synth As New SpeechSynthesizer() 
            synth.Speak(x) 
        End Using 
    End Sub 

End Module 
Example:
Dim x = "Hello World" 
        x.Speak() 

Description

Spreak the text using a SpeechSynthesizer

Details

Double click on the code to select all.

 

;