TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Chandan Kr Madal
NA
33
10.1k
TTS using spechlib
Jul 19 2013 3:23 AM
I have use this code for TTS......
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SpeechLib;
using System.Threading;
public partial class Default2 : System.Web.UI.Page
{
SpVoice objspeach = new SpVoice();
protected void Page_Load(object sender, EventArgs e)
{
foreach (ISpeechObjectToken Token in objspeach.GetVoices(string.Empty, string.Empty))
{
// SpeechLib.ISpeechObjectToken
//DropDownList1.Items.Add(Token.GetDescription(49));
DropDownList1.Items.Add(Token.GetDescription());
}
DropDownList1.SelectedIndex = 1;
}
protected void btn1_Click(object sender, EventArgs e)
{
objspeach.Voice= objspeach.GetVoices().Item(DropDownList1.SelectedIndex);
objspeach.Speak(txtspeach.Text.Trim(), SpeechVoiceSpeakFlags.SVSFDefault);
objspeach.WaitUntilDone(Timeout.Infinite);
}
}
and its working fine.
problem is-
1. not working in server(IIS)
2. and how to change voice type like male , female as well as adult,teen,child,senior etc.
how do i implement this using speech lib .
Note: I successfull to doing this (point 2) using speech synthesizer. but that also not working in iis.
Reply
Answers (
0
)
GridView and Calender Example
C# Microsoft Solver Foundation load/read data from a file