volevo un consiglio su come riuscire a stoppare il processo quando è avviato
codice:
Imports System.speech
Imports System.Speech.recognition
Imports System.Speech.Synthesis
codice:
Dim Synt As New SpeechSynthesizer
Dim T As Threading.Thread
If RadioButton1.Checked Then
Synt.SelectVoice("Paola")
Else
Synt.SelectVoice("Roberto")
End If
If RadioButton3.Checked Then Synt.SelectVoice("ScanSoft Silvia_Dri40_16kHz")
T = New Threading.Thread(AddressOf Synt.SetOutputToDefaultAudioDevice)
T.Start()
T.Join()
Application.DoEvents()
Synt.Speak(RichTextBox1.Text)
Synt.Dispose()
quando l'applicazione stà parlando non ho nessuna possibilità di stopparla se non aspettare che abbia finito di parlare come ovviare a questo problema