473,545 Members | 2,047 Online
Bytes | Software Development & Data Engineering Community
+ 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 1799
"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(B yVal sender As System.Object, ByVal e As
System.EventArg s) Handles Button1.Click
' AddReference COM objects Microsoft Speech
' "Imports SpeechLib" at the top of your VB program
Dim speech = New SpVoice
Dim voices = speech.GetVoice s()
For i As Integer = 0 To voices.Count - 1
Dim voice = voices.Item(i)
ListBox1.Items. Add(voice.GetAt tribute("Name") & " - " &
voice.GetAttrib ute("Language") )
Next
' That listed the possibilities. But I'll hard-code this one for
now:
speech.voice = speech.GetVoice s("Name=LH Michelle",
"Language=409") .Item(0)
speech.Speak("H ello World", SpeechVoiceSpea kFlags.SVSFDefa ult)
speech.WaitUnti lDone(-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>ControlPa nel>Speech>Text ToSpeech. 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
1282
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 result. I have all the functionality working other then one minor yet bothersome problem. I can not figure out how to get a result back from the...
0
2145
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 the interop library. Do you have an example of SAPI 5.1 dynamic grammar in C#? Thanks!
2
2754
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! Regards, Winston
1
2552
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 Usenet.com Premium Usenet Newsgroup Services ----------------------------------------------------------
0
1040
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 tell SAPI to try & match using this grammar/context 1st, this 2nd, etc? Thanks for any help.
0
1253
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
2086
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 what I've tried -the php script part-: $Voice = new COM("SAPI.SpVoice");//works
1
3344
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 any tutorial in web on how to develop a SR system with SAPI 5.1? I use Google with no success. c:\program files\microsoft speech sdk...
1
1202
by: Peter Oliphant | last post by:
Sorry to bother everyone, but where do I go to discuss SAPI (speech recognition) software? Thanx!
1
3222
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. For the statement tts = pyTTS.Create() I get the error message:
0
7475
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
7409
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
7918
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7436
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7766
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...
1
5341
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
4958
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
3446
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
715
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.