473,394 Members | 1,829 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Getting L&H voices in VB.NET

How can I with the TTS Control(Direct speech control) speak a paragraph with any of this Languages using the control properties?.I am not able to do it

Nov 20 '05 #1
3 4646
Hi,

Never uses L&H but the Microsoft speech sdk 5.1 works. Add a reference
to the Microsoft speech object lib 5.0 in the com tab. You can download
the sdk here.

http://www.microsoft.com/speech/download/sdk51/

This example assumes you have a textbox named txtspeak, and button
named btnsay

Dim tts As SpeechLib.SpVoice

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
tts = New SpeechLib.SpVoice
btnSay.PerformClick()
End Sub

Private Sub btnSay_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnSay.Click
tts.Speak(txtSpeak.Text,
SpeechLib.SpeechVoiceSpeakFlags.SVSFlagsAsync)
End Sub

Ken
-----------------

"emari" <em***@telefonica.net> wrote in message
news:0C**********************************@microsof t.com:
How can I with the TTS Control(Direct speech control) speak a paragraph
with any of this Languages using the control properties?.I am not able to do
it.


--
Outgoing mail is certified Virus Free.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.230 / Virus Database: 263.0.0 - Release Date: 6/2/2004
Nov 20 '05 #2
I can get 4 voices in sapi 5.1 (mary,mike,sam and another one) what I do not know is how to get the T&H engines
for the other four the code comes in the sdk.Here it is
Dim WithEvents Voice As SpeechLib.SpVoic
' Creates the voice object firs
Voice = New SpeechLib.SpVoic
Dim Token As SpeechLib.ISpeechObjectToke

For Each Token In Voice.GetVoice
VoiceCB.Items.Add((Token.GetDescription())
Next Toke
VoiceCB.SelectedIndex =
Voice.Voice = Voice.GetVoices().Item(VoiceCB.SelectedIndex

Voice.Speak("hello I'm tired"
VoiceCB.SelectedIndex =
Voice.Voice = Voice.GetVoices().Item(VoiceCB.SelectedIndex
Voice.Speak("you have to rest")
Nov 20 '05 #3
Hi,

Maybe the sapi4.0a will work. I don't have a sample.

http://www.microsoft.com/msagent/dow...therspeech.asp

Ken
----------------

"emari" <em***@telefonica.net> wrote in message
news:88**********************************@microsof t.com:
I can get 4 voices in sapi 5.1 (mary,mike,sam and another one) what I do
not know is how to get the T&H engines.
for the other four the code comes in the sdk.Here it is.
Dim WithEvents Voice As SpeechLib.SpVoice
' Creates the voice object first
Voice = New SpeechLib.SpVoice
Dim Token As SpeechLib.ISpeechObjectToken

For Each Token In Voice.GetVoices
VoiceCB.Items.Add((Token.GetDescription()))
Next Token
VoiceCB.SelectedIndex = 2
Voice.Voice = Voice.GetVoices().Item(VoiceCB.SelectedIndex)

Voice.Speak("hello I'm tired")
VoiceCB.SelectedIndex = 1
Voice.Voice = Voice.GetVoices().Item(VoiceCB.SelectedIndex)
Voice.Speak("you have to rest")


--
Outgoing mail is certified Virus Free.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.230 / Virus Database: 263.0.0 - Release Date: 6/2/2004
Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Qiangning Hong | last post by:
I want to make an app to help students study foreign language. I want the following function in it: The student reads a piece of text to the microphone. The software records it and compares it...
5
by: s_m_b | last post by:
function saveState() { document.write (" | <a href = 'myhomepage.asp? view=mhp&amp;action=save&amp;pb="); >> document.write (document.phone.style.display.value); document.write ("'>save view</a>"); };...
1
by: st | last post by:
Hi, I'm using xmlDocument.Save(xmlTextWriter) to create an Excel-readable file. All works well, except where I've replaced the carriage return chars in the .innertext to XML-compliant " "; It...
115
by: Mark Shelor | last post by:
I've encountered a troublesome inconsistency in the C-language Perl extension I've written for CPAN (Digest::SHA). The problem involves the use of a static array within a performance-critical...
41
by: tech guru | last post by:
Hi, I am doing some mathematical analysis on large numbers in C. The same code runs perfectly in Windows but produces unpredictable results in Unix (like negative numbers or very very big...
14
by: Arne | last post by:
A lot of Firefox users I know, says they have problems with validation where the ampersand sign has to be written as &amp; to be valid. I don't have Firefox my self and don't wont to install it only...
9
by: Dr. Locke Z2A | last post by:
So I'm writing a bot in python that will be able to do all kinds of weird shit. One of those weird shit is the ability to translate text from one language to another, which I figured I'd use google...
2
by: Peter Anthony | last post by:
I have recently bought a Vista laptop to do speech recognition development using VS VC++ 2008 /CLI. It comes with 'Microsoft Anna' as it's only voice. I would like to add many voices to test my...
1
by: Anthony Smith | last post by:
Let's say that I have some data like what is listed below. I simply want to get all of he text that is between the html tags. How would I do that with regular expressions or any kind of code. Also,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.