VB2005 text to speech

Can't get TTS to work

Page 1 of 1

1 Replies - 2148 Views - Last Post: 17 July 2010 - 11:54 PM Rate Topic: -----

#1 Amerigo  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 16
  • Joined: 31-May 09

VB2005 text to speech

Posted 17 July 2010 - 11:11 PM

I have SAPI 5.1 installed. I'm using VB 2005.
I can't get this to work.
Dim spkr As New SpeechLib.SpVoice

The error is "type speechlib.spvoice is not defined."
How do I need to do to get speech to work?
Is This A Good Question/Topic? 0
  • +

Replies To: VB2005 text to speech

#2 PsychoCoder  Icon User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1641
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: VB2005 text to speech

Posted 17 July 2010 - 11:54 PM

On the toolbar click Projects > Add Reference. Once the dialog opens select the COM Tab, then once it loads scroll down and highlight Microsoft Speech Object Library Version 5.1 and click OK.

Noe you have the proper reference loaded so your code should work now :)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1