简体   繁体   English

如何在Windows Azure网站上获取System.Speech?

[英]How to get System.Speech on windows azure websites?

I have incorporated text to speech in an asp.net webforms application which works fine when running locally. 我已经在asp.net网络表单应用程序中将文本合并为语音,在本地运行时可以正常工作。 When I deploy to azure websites however it looks like a null reference is happening dealing with System.Speech. 但是,当我部署到Azure网站时,似乎正在处理System.Speech的空引用。

I have tried to publish the webforms app to azure with the "Copy Local" as true on System.Speech .dll however the issue still persists. 我曾尝试在System.Speech .dll上发布webforms应用程序以使“ Copy Local”为真,但问题仍然存在。

Is there anything I am missing to get System.Speech to work on azure websites? 我缺少让System.Speech在Azure网站上工作的任何东西吗?

I have researched and found posts from a while back saying it wasn't supported but I am hoping this may of changed overtime. 我曾经研究并找到帖子,说它不受支持,但是我希望这可能会随着时间的推移而改变。 I will need to find some third-party TTS service if this is the case. 如果是这种情况,我将需要找到一些第三方TTS服务。

System.Speech is a desktop API, and definitely isn't supported on server systems. System.Speech是一个桌面API,在服务器系统上绝对不支持。 Microsoft.Speech.Synthesis is a server API and is supported on (standalone) servers. Microsoft.Speech.Synthesis是服务器API,在(独立)服务器上受支持。 However, I'm not sure if it's possible to deploy this on Azure websites, as it requires extensive updates to the installed software (for voices, etc.). 但是,我不确定是否可以在Azure网站上部署它,因为它需要对已安装的软件进行大量更新(例如声音等)。

Since azure cannot support this I found this as a valid work around. 由于azure无法支持此操作,因此我发现这是有效的解决方法。

http://translatorservice.codeplex.com/ http://translatorservice.codeplex.com/

It uses the Microsoft Translator Service. 它使用Microsoft翻译服务。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM