asp.net3.5中的语音应用 [英] speech application in asp.net3.5

查看:95
本文介绍了asp.net3.5中的语音应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用此代码来生成声音....在这里,我正在使用
"Interop.SpeechLib.dll"


''''''''''''''''''内部按钮单击''''''''''''''''''

voice.Voice = voice.GetVoices.Item(1)

voice.Speak("Welcome New Website",SpeechVoiceSpeakFlags.SVSFlagsAsync)

voice.WaitUntilDone(10000)

'''''''''''''''''''''''''''''''''''''''''''''''' ''



上面的代码会将文本"Welcome New Website"转换为语音..

这段代码在本地计算机上运行良好当我单击按钮声音时...

但是如果我单击按钮,语音将进入服务器,则在网络托管后出现了问题..不在单击按钮的系统中...


请提供解决方案,等待您的答复....



在此先感谢

I am using this code to generate voice .... Here i am using the
" Interop.SpeechLib.dll "


''''''''''''''''''Inside Button Click ''''''''''''''''''''

voice.Voice = voice.GetVoices.Item(1)

voice.Speak("Welcome New Website ",SpeechVoiceSpeakFlags.SVSFlagsAsync)

voice.WaitUntilDone(10000)

''''''''''''''''''''''''''''''''''''''''''''''''''''



The above code will convert the text "Welcome New Website " as voice ..

This code was working superbly in local machine When I click the button voice was coming......

but I have a problem after hosting in the web if I click the button the voice was coming in the server.. not in system where u click the button ...


please give a solution waiting for u r replies....



Thanks in advance

推荐答案

您正在服务器端运行代码.

也许可以在Silverlight中尝试它,因为它在客户端上运行.
MSDN文本到语音
您可以将欢迎横幅设置为托管的Silverlight应用程序

抱歉,我对ASP.Net不够熟悉,无法使其正常运行.但一般来说ASP是在服务器端运行.
Your running the code on the server side.

Maybe try it in Silverlight as that runs on the client side.
MSDN text to speech
You could make the welcome banner a hosted silverlight app

Sorry I''m not familiar enough with ASP.Net to get it to work there. But generally ASP runs server side.


这篇关于asp.net3.5中的语音应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆