使用Java控制其他应用程序? [英] Control other applications using Java?

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

问题描述

如何使用Java控制其他应用程序?

How can I control other applications using Java ?

我正在使用Mary语言合成器(开放源代码,Java)。它可以很好地合成语音,但是它要求文本位于应用程序窗口本身的文本框中,然后单击按钮。对于我的这个项目

I'm using the Mary Speech Synthesizer(Open source, Java). It can synthesize speech well , but it requires the text to be in a textbox in the application window itself and then a button to be clicked . For this project of mine


需要实现的文本将从另一个Java应用程序入站。我需要知道如何将文本放在文本框中,然后将单击发送到应用程序中的按钮之一。

the text that needs to be realized is gonna be inbound from another java application . I need to know how I can place the text in the textbox and send a click to one of the buttons in the application .

我希望以后能找到一种从缓冲区合成语音的方法,但是直到那时,这似乎是一种使事情顺利进行。另外,我很确定以后可以找到其他应用程序,这似乎是一个非常有趣的问题..

I'm hoping to figure out a way to synthesize speech from a buffer later on but till then this seems like it's a way to get things working . Also , I'm pretty sure I'll be able to find other applications for this later on and this seems like a very interesting problem ..

推荐答案

我认为最好的选择是找到一个可以进行文本合成的库。由于控制另一个Java应用程序需要该Java应用程序提供必要的API以便您访问它。正如 @ Edmondo1984 在他的回答中告诉您的那样,您可以包括来自开源应用程序的部分代码(检查许可后) 。

I think your best option is to find a library that does the text synthesizing. Since controlling another java application required that java application to provide the necessary API for you to access it. As @Edmondo1984 told in his answer you can include the part of the code from the open source application(After checking the licence).

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

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