如何在 windows azure 网站上获取 System.Speech?

How to get System.Speech on windows azure websites?(如何在 windows azure 网站上获取 System.Speech?)
本文介绍了如何在 windows azure 网站上获取 System.Speech?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在一个 asp.net webforms 应用程序中合并了文本到语音,它在本地运行时工作正常.然而,当我部署到 azure 网站时,它看起来像是在处理 System.Speech.

I have incorporated text to speech in an asp.net webforms application which works fine when running locally. When I deploy to azure websites however it looks like a null reference is happening dealing with System.Speech.

我尝试将 webforms 应用程序发布到 azure,在 System.Speech .dll 上将本地复制"设置为 true,但问题仍然存在.

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 在 azure 网站上工作有什么我遗漏的吗?

Is there anything I am missing to get System.Speech to work on azure websites?

我已经研究并发现不久前的帖子说它不受支持,但我希望这可能会随着时间的推移而改变.如果是这种情况,我需要找到一些第三方 TTS 服务.

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.

推荐答案

System.Speech 是一个桌面 API,在服务器系统上绝对不受支持.Microsoft.Speech.Synthesis 是一个服务器 API,在(独立) 服务器.但是,我不确定是否可以在 Azure 网站上部署它,因为它需要对已安装的软件(语音等)进行大量更新.

System.Speech is a desktop API, and definitely isn't supported on server systems. Microsoft.Speech.Synthesis is a server API and is supported on (standalone) servers. 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.).

这篇关于如何在 windows azure 网站上获取 System.Speech?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

c# Generic Setlt;Tgt; implementation to access objects by type(按类型访问对象的C#泛型集实现)
InvalidOperationException When using Context Injection in ASP.Net Core(在ASP.NET核心中使用上下文注入时发生InvalidOperationException)
how do i pass parameters to aspnet reportviewer(如何将参数传递给aspnet report查看器)
Bind multiple parameters from route and body to a model in ASP.NET Core(在ASP.NET Core中将路由和主体中的多个参数绑定到一个模型)
Custom model binding in AspNet Core WebApi?(AspNet Core WebApi中的自定义模型绑定?)
How to minify in .net core mvc view?(如何在.Net核心MVC视图中缩小?)