Java Speech API tutorials? - java

I'm looking to play around with the JSAPI, but I can't find any tutorials on how to do it. I know Sphinx 4 uses JSAPI and there are a few (pretty bad) tutorials for that. From preliminary research and playing around with Sphinx, it's a lot more than I need. I'm simply trying retrieve a spoken sentence and convert it to text. From there, I'll manipulate the string how I need to. Is this within the realm of JSAPI or do I need to use Sphinx? Anyone know of any good tutorials?

AFAIK there are no free fully implemented standalone JSAPI compliant speech recognizer. I am afraid you will have to use Sphinx.
Moreover, "retrieve a sentence" is not a simple task at all. There is actually a lot to do before you even start recognizing the sentence. Look at the guides for sphinx:
http://cmusphinx.sourceforge.net/wiki/
http://cmusphinx.sourceforge.net/sphinx4/doc/ProgrammersGuide.html

Related

Can i use daringFireball Markdown within my JAVA application

Here's the link of daringfireball Markdown. Can i use this API in my java project? I read the whole site and did not find anything that could help me figure it out.
I also went to the wikipedia page to see if there was more API that do the same thing, but they're for web language like PHP or ruby.
I want my user to be able to use markdown as it is more simple for a non-programmer to type with this syntax.
If not, is there any other API that does the same thing for JAVA? Would it be hard to implement such thing my self as i am a starter experienced programmeer?
Thanks

Working With/Processing Audio in Java

Anyone know of any good tutorials or reference guides for working with Audio in Java? I'm not looking for anything too specific at this point; just would like to get my feet wet working with audio. Thanks in advance!
First of all: Multimedia/audio support in Java is not great.
But—if you're set on Java, I suggest taking a look at the Java Sound Trail. It explains most of the basic APIs. Then check out Java Sound Resources to get a better idea of how things work. Even though it's not brand-new anymore, it is very useful and explains a lot about the low level details.
Beyond the raw sound API, Sun came up with JMF, the Java Media Framework. It has been unsupported for years, so I would stay clear of it. You might want to use it for inspiration, but I can't recommend using it for more.
You will also discover that the built-in Java support for audio formats like mp3 or ogg is rather limited. To be able to play such files, you will need third party libraries, like jogg, jflac, mp3spi, or SampledSP. While the first three are pure Java solutions, the last one is basically a thin Java wrapper for a number of native libraries. Especially for FFmpeg there are a many different libraries like that, as FFmpeg supports most available audio formats.
The only way to play an mp3 file from Java without any additional libraries, is to cheat and use the JavaFX class MediaPlayer. You can find more info about how to do that on Stackoverflow.
Good luck!

Using XML in Java as language manager

So, I'd like to create a bilingual program. From what I have heard, xml files are way to go...
I couldn't really find anything useful with Google (when you enter Java in Google it sees the word "language" only as in "programming", instead of desired "spoken"), so if any of you could direct me to some tutorial page which explains this topic further, or even show it to me here (It can be that complicated, can it?), I'd be very grateful.
If xml is way to go, that is! If any of you have any better suggestions, I'm listening...
XML could be the way to go, but the usual approach to internationalise your Java applications is using ResourceBundles. When asking Google the right keywords are: Java i18n or Java Internationalization.
There is a basic java tutorial that can get you started with i18n. If you are writing a web application then you should check the documentation of your specific framework.
Java has a built in internationalization system that uses properties files.
Java Internationalization API Tutorial

A java program to search in a certain website

I want to write a Java code to parse a certain website. Each result in the website appear in a specified URL.
How can I start? Is there a good library to use? Could I benefit from your experience in this field?
Search for "web crawler" and you'll find many examples (e.g. Crawler4J or Crawler), how to solve this.
Besides Java, you'll often stumple upon Python when it comes to grepping stuff from web pages - I'm not a Python guy, but it seems to fit for the task.

Voice to text conversion with JSAPI

If anybody knows about 'voice to text' conversion using java, please give me some knowledge.
Thanks!
as far as i know, the way to use this is the JSR 113 Java Speech API 2.0
The advantage in using would be the offline functionality without an internet connection.
But unfortunately the leading company seems to terminated their intentions for this project, the homepage is down (http://www.conversay.com).
Looking at answers to a similar question, the prospects don't look encouraging. However I did find something despite the relative dearth of activity around JSAPI implementations.
Take a look at the Java Wrapper for Cepstral TTS project on Sourceforge. It relies upon the Cepstral TTS engine which is available for several languages and speakers as well versions targeting desktop, mobile and telephony server deployments.
Disclosure: I have no relationship to Cepstral nor have I used their products.
For speech recognition, see also this thread. If not using android, you might want to check out CMUSphinx.

Categories