在 Web 应用程序中使用 FreeTTS [英] Using FreeTTS in a web application

查看:45
本文介绍了在 Web 应用程序中使用 FreeTTS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 HTML 和 JSP 构建 Web 应用程序.提供的功能之一是将一些文本转换为语音.在netbeans中,我创建了一个Java项目,该项目包含一个提供语音任务的Java小程序,该小程序使用FreeTTS(外部JAR文件),并且工作正常.所以在构建这个项目之后,我将它的 JAR 添加到 web 项目中,用于将小程序嵌入到 web 中.现在,小程序在网站上无法运行的问题,但它可以独立运行.我需要你的帮助来解决这个问题.

I'm building a web application using HTML and JSP. One of the functionality which provided is converting some texts to speech. In netbeans, I created a Java project, this project contains a Java applet offers the speech task, this applet uses FreeTTS (external JAR file), and it works fine. So after building this project, I added its JAR to the web project, for embedding the applet within the web. Now, the problem the applet doesn't work from the website, but it works standalone. Please I need your help to fix this issue.

推荐答案

FreeTTS 开发人员 recommend反对在小程序中使用它,而建议通过 Web Start 部署它.如果它确实独立工作正常,那应该可以解决您的问题.

The FreeTTS developers recommend against using it in an applet, and suggest deploying it via Web Start instead. If it does indeed work fine standalone, that should fix your problem.

如果您不能使用 Web Start,您可以考虑将音频生成移动到服务器并在那里运行 FreeTTS.

If you can't use Web Start, you could consider moving the audio generation to the server and running FreeTTS there.

这篇关于在 Web 应用程序中使用 FreeTTS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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