Click here to Skip to main content
15,889,315 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Form Resize Pin
Dave Kreskowiak24-Oct-09 17:19
mveDave Kreskowiak24-Oct-09 17:19 
GeneralRe: Form Resize Pin
AshSofDev24-Oct-09 17:38
AshSofDev24-Oct-09 17:38 
GeneralRe: Form Resize Pin
Andy_L_J24-Oct-09 17:21
Andy_L_J24-Oct-09 17:21 
GeneralRe: Form Resize Pin
AshSofDev24-Oct-09 17:37
AshSofDev24-Oct-09 17:37 
AnswerRe: Form Resize Pin
DaveAuld25-Oct-09 0:10
professionalDaveAuld25-Oct-09 0:10 
GeneralRe: Form Resize Pin
Dave Kreskowiak25-Oct-09 7:57
mveDave Kreskowiak25-Oct-09 7:57 
GeneralRe: Form Resize Pin
DaveAuld25-Oct-09 8:05
professionalDaveAuld25-Oct-09 8:05 
QuestionHelp Please - SAPI repeat problem [Solved] Pin
quadrilateral24-Oct-09 16:35
quadrilateral24-Oct-09 16:35 
Hi There
I am making a text to speech application which says a word from a text file on load and contains a button to repeat the word. The voice says the text from the file on load but crashes when I click the repeat button. My code is below.

Any and all help is appreciated.
Dim open As StreamReader
Dim word as String
Dim voice As New SpeechLib.SpVoice

Public Sub TTS_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
     open = New StreamReader(path)
     word = getword()
     voice.Voice = voice.GetVoices("Name=Cepstral David").Item(0)
     voice.Rate = -1
     voice.Speak(word)
End Sub

Public Function getword()
     Return open.ReadLine()
End Function

Public Sub btnrepeat_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnrepeat.Click
     voice.Speak(word)
End Sub


modified on Saturday, October 24, 2009 11:46 PM

AnswerRe: Help Please - SAPI repeat problem Pin
Dave Kreskowiak24-Oct-09 17:08
mveDave Kreskowiak24-Oct-09 17:08 
GeneralRe: Help Please - SAPI repeat problem Pin
quadrilateral24-Oct-09 17:11
quadrilateral24-Oct-09 17:11 
GeneralRe: Help Please - SAPI repeat problem Pin
Andy_L_J24-Oct-09 17:30
Andy_L_J24-Oct-09 17:30 
GeneralRe: Help Please - SAPI repeat problem Pin
quadrilateral24-Oct-09 17:46
quadrilateral24-Oct-09 17:46 
QuestionNeed Help Pin
kruegersck24-Oct-09 8:28
kruegersck24-Oct-09 8:28 
AnswerRe: Need Help Pin
Dave Kreskowiak24-Oct-09 8:49
mveDave Kreskowiak24-Oct-09 8:49 
AnswerRe: Need Help Pin
Christian Graus24-Oct-09 10:24
protectorChristian Graus24-Oct-09 10:24 
Questionvb6 and datagrid Pin
sw9mba24-Oct-09 1:32
sw9mba24-Oct-09 1:32 
AnswerRe: vb6 and datagrid Pin
Christian Graus24-Oct-09 10:47
protectorChristian Graus24-Oct-09 10:47 
Questionset groupbox view in different from Pin
paya1pa23-Oct-09 23:22
paya1pa23-Oct-09 23:22 
AnswerRe: set groupbox view in different from Pin
Dave Kreskowiak24-Oct-09 2:59
mveDave Kreskowiak24-Oct-09 2:59 
QuestionList box Help Pin
PAguilar0923-Oct-09 19:10
PAguilar0923-Oct-09 19:10 
AnswerRe: List box Help Pin
Christian Graus23-Oct-09 19:39
protectorChristian Graus23-Oct-09 19:39 
QuestionPowerShell cmdlet Pin
Archdeacon23-Oct-09 17:55
Archdeacon23-Oct-09 17:55 
AnswerRe: PowerShell cmdlet Pin
Gideon Engelberth26-Oct-09 7:37
Gideon Engelberth26-Oct-09 7:37 
AnswerRe: PowerShell cmdlet [Solved] Pin
Archdeacon26-Oct-09 18:11
Archdeacon26-Oct-09 18:11 
Questionerror while trying to create an object for excel sheet Pin
Ravishankar M23-Oct-09 9:51
Ravishankar M23-Oct-09 9:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.