Click here to Skip to main content
15,889,992 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I'm working on IVR Application with my voice modem.
Using TAPI3 alongwith C# in Windows 7.
I would like to use SAPI for TTS (Text to Speech) functionality:

I've received incoming call using TAPI, now I want to send TTS messages on phone,
like, when call is being received, application say:

"Welcome to the System"

Here is code,

declaring voice object:

using SpeechLib;
SpVoice voiceobj = new SpVoice();


if ( read == "call notification event has occured" )
            {
                cn.ReceiveCall(ia[line]);
                
                voiceobj.Speak("Welcome to the application");

            }


This text to speech message plays on speaker of my system, but I want it to send to the caller.
Help required.
Thnx in advance.
Posted

1 solution

It should be usable, but what's wrong with much easier approach? Just reference the assembly "Speech.dll" which is bundled with (redistributed) .NET Framework; it is already added to GAC, so you can reference it by using the tab ".NET" of the "Add Reference" Visual Studio window. The namespace is:
http://msdn.microsoft.com/en-us/library/system.speech.synthesis.aspx[^].

Chances are, it's quite enough for your purposes. As I look at your code sample, I cannot see anything above the code sample you can see here:
http://msdn.microsoft.com/en-us/library/system.speech.synthesis.speechsynthesizer.aspx[^].

—SA
 
Share this answer
 
v2
Comments
HassanMirza 4-Dec-12 16:54pm    
I've added reference of Microsoft Speech dll and using its object for TTS conversion. But the issue is how can I send this TTS on a telephone line to caller with the help of TAPI 3?
Does it require a conversion of digital to analog or something else
? Still unable to achieve it!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900