473,473 Members | 1,838 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

SAPI 5.1 SKI Question.

With the Microsoft SDK can you use different voices like the AT&T
voices? If so, does anyone have any code examples.

Dec 3 '06 #1
2 1787
"pmclinn" <pm*****@gmail.comwrote:
>With the Microsoft SDK can you use different voices like the AT&T
voices? If so, does anyone have any code examples.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
' AddReference COM objects Microsoft Speech
' "Imports SpeechLib" at the top of your VB program
Dim speech = New SpVoice
Dim voices = speech.GetVoices()
For i As Integer = 0 To voices.Count - 1
Dim voice = voices.Item(i)
ListBox1.Items.Add(voice.GetAttribute("Name") & " - " &
voice.GetAttribute("Language"))
Next
' That listed the possibilities. But I'll hard-code this one for
now:
speech.voice = speech.GetVoices("Name=LH Michelle",
"Language=409").Item(0)
speech.Speak("Hello World", SpeechVoiceSpeakFlags.SVSFDefault)
speech.WaitUntilDone(-1)
End Sub

--
Lucian
Dec 3 '06 #2
"pmclinn" <pm*****@gmail.comwrote:
>With the Microsoft SDK can you use different voices like the AT&T
voices? If so, does anyone have any code examples.
Note: normally the speech engine uses whichever voice the user had
selected in Start>ControlPanel>Speech>TextToSpeech. It might be a good
idea to just leave it at that... and if you want to give the user the
ability to choice a different voice, then link them to the control
panel.

--
Lucian
Dec 4 '06 #3

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

Similar topics

0
by: AndyNY | last post by:
I am trying to write a dll in C# using SAPI 5.1 SDK. The DLL is supposed to take in a prerecorded WAV file and provide both the recognized text and a wav file created from Text to speech on the...
0
by: Bob | last post by:
I have a C# windows application that uses SAPI 5.1 speech recognition. I would like to use dynamic grammars but am having trouble finding the right command syntax and method parameters to use for...
2
by: Winston Wong | last post by:
Dear All, I am using MFC and SAPI 5.1. I want to get the pronunciation of a word. For example, give L"thank" and then get its pronunciation. Which function/class should I use? Many thanks!...
1
by: New Devil | last post by:
hi how can i use SAPI with TAPI in C# ... give me any idea how to make a simple program to use SAPI with TAPI in C# ........... Best Regards ibrahim@islamabad.net Ibrahim Zaman Posted Via...
0
by: wackyphill | last post by:
I'd like the engine to look for a rule match for a # for example using my number grammar/context before it tries to use the dictation grammar/context to find a rule match. Is there a way to...
0
by: celine langlois | last post by:
Hello, This my code in asp : <% set spvoice = server.createobject("SAPI.SpVoice") set spfilestream = server.createobject("SAPI.SpFileStream") rem spfilestream .Format.Type = 6
0
by: matetelki | last post by:
Hi! As I've found tons of VB and C# sample codes, I was trying to transform it into PHP code, using the COM objects. My aim is to create a simple html, that creates a wav from a text. Here's...
1
by: ma | last post by:
Hello, I download SAPI 5.1 and open coffes0 project and tried to compile it using MSVC2005. I am getting the following error which I don't know to solve. Would you please help me? Is there...
1
by: Peter Oliphant | last post by:
Sorry to bother everyone, but where do I go to discuss SAPI (speech recognition) software? Thanx!
1
by: weheh | last post by:
I'm running Python 2.3 and calling pyTTS. I've had it working forever. Today, I ran out of disk space. After deleting some of my personal files, for no apparent reason, pyTTS no longer runs. ...
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...
1
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...
0
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.