473,569 Members | 2,761 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4655
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.SpVoi ce

Private Sub Form1_Load(ByVa l sender As System.Object, ByVal e As
System.EventArg s) Handles MyBase.Load
tts = New SpeechLib.SpVoi ce
btnSay.PerformC lick()
End Sub

Private Sub btnSay_Click(By Val sender As System.Object, ByVal e As
System.EventArg s) Handles btnSay.Click
tts.Speak(txtSp eak.Text,
SpeechLib.Speec hVoiceSpeakFlag s.SVSFlagsAsync )
End Sub

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

"emari" <em***@telefoni ca.net> wrote in message
news:0C******** *************** ***********@mic rosoft.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.SpVoi c
' Creates the voice object firs
Voice = New SpeechLib.SpVoi c
Dim Token As SpeechLib.ISpee chObjectToke

For Each Token In Voice.GetVoice
VoiceCB.Items.A dd((Token.GetDe scription())
Next Toke
VoiceCB.Selecte dIndex =
Voice.Voice = Voice.GetVoices ().Item(VoiceCB .SelectedIndex

Voice.Speak("he llo I'm tired"
VoiceCB.Selecte dIndex =
Voice.Voice = Voice.GetVoices ().Item(VoiceCB .SelectedIndex
Voice.Speak("yo u 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***@telefoni ca.net> wrote in message
news:88******** *************** ***********@mic rosoft.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.SpVoi ce
' Creates the voice object first
Voice = New SpeechLib.SpVoi ce
Dim Token As SpeechLib.ISpee chObjectToken

For Each Token In Voice.GetVoices
VoiceCB.Items.A dd((Token.GetDe scription()))
Next Token
VoiceCB.Selecte dIndex = 2
Voice.Voice = Voice.GetVoices ().Item(VoiceCB .SelectedIndex)

Voice.Speak("he llo I'm tired")
VoiceCB.Selecte dIndex = 1
Voice.Voice = Voice.GetVoices ().Item(VoiceCB .SelectedIndex)
Voice.Speak("yo u 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
7749
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 to the wave-file pre-recorded by the teacher, and gives out a score to indicate the similarity between them. This function will help the students...
5
1743
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>"); }; creates an error at this (>) line.
1
3941
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 gets changed to "&amp;#10" and doesn't render new lines in the Excel sheet. Can anyone help? Many thanks,
115
7514
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 transform function. When compiling under gcc on my big-endian PowerPC (Mac OS X), declaring this array as "static" DECREASES the transform throughput by...
41
2222
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 numbers). I am using 'long' data type which is sufficient to hold the largest data in the program. I checked the 'sizeof(long)' in both the OS which is...
14
5915
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 because of this, so I hope some of you gurus can enlighten me with this :) In what circumstances can the "&amp;" in the source code be involuntary...
9
3117
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 translate to do. Here is the section for translation that I'm having trouble with: elif(line=="translate"): #if user inputs...
2
5505
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 software. I have a menu in my application to choice a text-to-speech voice, but hard to tell if it works when there is only one voice to choose from!...
1
1789
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, I want to learn how to use regular expressions. What is a good site to get me started with php? <tr><td class="yfnc_h" nowrap="nowrap"><b><a...
0
7697
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7612
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7968
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6283
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5512
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5219
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3640
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
937
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.