java voice command - java

I'm still pretty new to java and I was thinking about making a program where the computer could listen to you talking and write what you said on word or something using the java Robot. Honestly, I have no idea where to start with this and could really use some help on this. Also, I was looking around on my computer and noticed that it does have a voice engine of some sort, is there a way I could implement that into my program?
Thanks in advance

If you want to tap into your dictation software's facilities and hook them into your Java program, then start by taking a look at the JavaSpeech API or the Microsoft Speech API along with the Java Native Interface (JNI). The latter isn't a simple project for a beginner. The former, if your dictation software is compatible, could be something in the order of a few weeks of work for a relative beginner.
For making the dictated speech appear in Word or other external program, it's not clear to me where your Java program would fit in here: your dictation software will natively provide the facility of dictating to whatever the currently active window is, presumably.

Speech Recognition is a complex programming to understand. as you are a beginner go head and see Sphinx4 for recognition written entirely in java and FreeTTS as Synthesizer written entirely in java. first make a simpler recognizer then you can think of Dictation using JNI

Related

can i develop a multiple platform project -windows/Android- entirely with a single cross-platform language?

as i'm still learning, i'm not sure what tools, frameworks, even languages i'm gonna work with..
so i'm working on a simple project that got windows side and android side.. that obviously needs at least 2 languages to get it done, but it's impossible that i can learn those languages and know how to deal with their frameworks to get the job done
so is there a language i can develop the entire project(windows & android) with, and without need to any other language no matter what or how many tools or methods im gonna use to make it work?
-note: i know java is essential for the android side, so that's the point im talking about.... "entirely"
I would recommend you giving a loot at Flutter, it's not like native windows but it can produce applications for Android, iOS and web with a single codebase. It's really intuitive to use and the apps built with it work really well.
You can also take a look at React Native expect you need a Native app that you have to use Java as the core language if not give a trial to this
I notice you've tagged this with C#. To answer your question: that. You can write Android apps in it as well via a library called Xamarin that Microsoft bought out and has integrated into the platform.

Is there any way to use Swift for iOS as well as android development?

When having a finished iOS app, coded with Swift via Xcode, is there any way to use the code and in general the project file and kind of transfer it into Java, C or C++ code which that can be used to create an android app?
Learning an additional programming language, such as Java or C, "just" so I can publish two these two stores isn't hopefully the only solution to this kind of problem.
I´d appreciate any of your past experiences and ideas related to my problem.
You could have wrote it initially in React Native for example, or using Flutter or Xamarin or whatever framework you wanted to write once and then run on both iOS and Android.
If you want an app with GUI and not a simple HelloWorld, i don't think so, as far as I am aware there is no way to do it.
There is a possibility to COMPILE a Swift code on Android, of that I am sure, but to run an app out of the box without using some additional frameworks - nope.

Can I use Java to do game programming for Xbox-one and self publish it?

I am wondering whether i can use java to write games for xbox-one? Any ideas?
Thanks!
It was not possible for the Xbox 360, so i guess it will be the same for the Xbox One.
On this Wikipedia article about developing Indie Games, they say:
Create – Games are written in C# or Visual Basic .NET using the XNA Game Studio framework, allowing the developers to debug and test their game internally before release. The final code is compiled into a single binary package.
So the answer is that you can't develop games in Java for Xbox One.
You from my knowledge, cannot. But, if you know java, C# is pretty similar, so learning it will be pretty easy.
It is possible. You can use something like IKVM.NET to run Java in the .NET VM.
Or you can compile Java to machine code.

Linux/Ubuntu - Speech Synthesis from Java without using FreeTTS

I've spent a pair of days trying to make it work: Speech synthesis from Java with FreeTTS on a Ubuntu system and it seems to be far more complicated than what i expected, if possible. There are some problems with this configuration i just can't solve.
So, i've changed my mind and have decided to make it in some other way. I just need to synthesize some texts during the execution of the app, so my question is: Someone knows any other way of making it possible and still be platform-independent (assuming i'll have to install some kind of extra-software in the machine(s) i'll need to run it)?
Thanks a lot.
As far as I remember there are a plenty of implementations from F.A.Q. for Java Speech API, but non of them is OS independent.
Another way is to find (using Google) some new cloud services (for example) which provides API for voice synthesis.
Ubuntu 8.10 has a bug in it's FTTs version; try another software of speech synthesis...

Java for a video based application: Good choice?

I am in the concept phase of an application that is going to have a lot of Audio/Video input and output. I want to do it in Java; but somehow am not fully convinced yet. What do you think? How bad could it be? And any advices?
Why I am thinking Java:
It's the language I'm most comfortable with.
Easier cross platform migration would be a bonus.
Cannot afford commercial platforms (like .NET) or not good enough in other free alternatives (like Python)
I'm also slightly inclined towards C++/Qt; but that would take more time for me as I'm not great in that and I am a bit worried about maintainability.
If you're interested, check out Xuggler. It exposes all the power of FFmpeg, but as a Java API that runs on Windows, Mac and Linux. The advantage is you get all the power of FFmpeg but from Java. The disadvantage is it requires the FFmpeg native DLLs/shared-libraries to be installed.
Easier cross platform migration would be a bonus.
Audio and video means you will be dealing with dedicated native libraries and JNI-wrappers for each supported platform; in this case, the cross-platform argument for Java does not really apply.
I believe that when you want to write an audio/video application, the programming language you will use is the second most important thing. The most important thing is the audio/video framework your application will use since this is what defines your capabilities.
I am aware of two popular generic video frameworks that can be used to accesd most multimedia types: Directshow and ffmpeg. Directshow is tied with windows, so only ffmpeg is left.
Ffmpeg has versions in both windows and unix and, although it is written in C, it can be used from a lot of languages.
There is even a number of java wrappers for ffmpeg (for instance, take a look at xuggle)!
C++ would be the first choice because of performance concerns often present in Audio/Video processing as well as the range of available libraries for video/audio.
You do make a good point about being familiar with Java. If you are pressed for time, this is even more important. However if you can spare some time for learning, C++ would be well worth it.
Regarding .NET: The .NET SDK with everything you need is freely downloadable. Get hold of a free IDE such as SharpDevelop and you are up and running. It's Visual Studio that costs money, you don't need Visual Studio to do .NET development.
Rusty.in,
How about trying to do JavaFX Media API. Recently, the version of the JavaFX is 1.2.0 with GUI Application as well. It supports the Swing. The grammar is based on the script style; however, you can deploy the existing Swing components into the JavaFX.
I hope it helps.
Tiger
Rusty, what did you wind up doing? I too have a video app I'd like to do, but really would prefer Java/JavaFX over C++. The thing about the using Flash and/or the current JavaFX video support is that Flash video playback is not frame-accurate. I really need to be able to stop/start/step on individual frames like you can with QuickTime.
Has anyone tried doing playback with Xuggler and Java/JavaFX?

Categories