系统说话但用户界面显示在浏览器中,完成后,UI在浏览器中可见 [英] system is speaking but user interface is showing in browser,after speking finished then UI is visible in browser

查看:104
本文介绍了系统说话但用户界面显示在浏览器中,完成后,UI在浏览器中可见的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

系统说话但用户界面显示在浏览器中,完成拼写后,UI在浏览器中可见

解决方案

由于您没有提供任何信息,我将不得不猜测:

您正在从代码隐藏中运行服务器上的一些文本到语音代码



从Visual Studio运行它时出现,但这只是因为服务器和客户端在这种情况下是同一台计算机。一旦将应用程序部署到真实服务器,语音就会从服务器
上的扬声器出来,,没有人能够听到它。



Javascript API [ ^ ]您在客户端上生成语音,您希望它在哪里运行。但是,目前仅支持Chrome [ ^ ]。



谈论的Web应用程序 - 语音合成API简介 [ ^

system is speaking but user interface is showing in browser,after speking finished then UI is visible in browser

解决方案

Since you haven't provided any information, I'll have to guess:
You're running some text-to-speech code on the server, from the code-behind.

It appears to work when you run it from Visual Studio, but that's just because the server and client are the same computer in that case. As soon as you deploy your application to a real server, the speech will come out of the speakers on the server, where nobody will be able to hear it.

There is a Javascript API[^] which will let you generate the speech on the client, where you want it to run. However, it's currently only supported in Chrome[^].

Web apps that talk - Introduction to the Speech Synthesis API[^]


这篇关于系统说话但用户界面显示在浏览器中,完成后,UI在浏览器中可见的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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