简体   繁体   English

在C#windows存储应用程序中使用叙述者

[英]Using the narrator in C# windows store apps

the narrator API (System.Speech) is not available for windows store. 叙述者API(System.Speech)不适用于Windows应用商店。 Is there an alternative API or method for using this? 是否有替代API或方法来使用它? I found that there is a text-to-speech function as part of the Microsoft translator service , however since the narrator is already available, it would be silly to have to use this service for that, so I'd rather use it directly if possible. 我发现有一个文本到语音功能作为Microsoft翻译服务的一部分 ,但是由于叙述者已经可用,因此必须使用此服务是愚蠢的,所以我宁愿直接使用它可能。

I thought of maybe running a command through CMD.exe to text-to-speech something, but in windows store apps it's impossible to launch external processes, also I haven't found a command line interface for the narrator anyway. 我想过可能通过CMD.exe运行命令到文本到语音的东西,但在Windows应用程序中,无法启动外部进程,我也没有为叙述者找到命令行界面。

Does anybody know of any method of doing this? 有人知道这样做的任何方法吗?

Windows 8.1 has offline text to speech support. Windows 8.1具有脱机文本到语音支持。 Here's MSDN sample. 这是MSDN示例。

Are you trying to implement accessibility? 您是否尝试实施辅助功能? If so, then this may be what your looking for: https://msdn.microsoft.com/library/windows/apps/windows.ui.xaml.automation.automationproperties 如果是这样,那么这可能是你想要的: https//msdn.microsoft.com/library/windows/apps/windows.ui.xaml.automation.automationproperties

You can set the Name attached property to whatever you would like to have read. 您可以将Name附加属性设置为您想要阅读的内容。

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

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