Best way to store CMU Sphinx text output - java

I am currently building a recognition program with cmu sphinx. I would like to take the speech query that is converted to text by sphinx and store it as a data file (I was thinking either .txt file or .php [due to webserver using .php]). after the file is stored on the server, I already have the server taking the file, and giving me back the results I asked for (works perfectly). Just wanted some food for thought on how someone else would go about storing the text generated by sphinx, and what would be the most efficient file type (like I said I think .php would be the best filetype due to webserver, but if someone else has an opinion feel free to share). when the data is received (.xml format) I will have a synthesizer output the data from the webserver. I want the webserver to store past queries, and create a small offline server database. I also want the webserver to have multiple users queries stored.
thank you for your time. Look forward to any answers, or any food for thought. Cheers!

Related

Write Information to PDF File with Java

I am currently developing a Java App for a company to help keep track of client records. At some point, some of the client's information is written down in an Order form and then is translated to several PDF documents. I noticed with PDF's in Adobe Acrobat Reader that input fields have values that can be stored or re-written. I was wondering if it was possible to write information to these input fields with Java? Or if anyone would have any idea of how to do such a feature?
I've seen this done with PHP so I assume it's a similar process in which I would just have to write and translate information from the order form to the input fields. I don't want to spend time recreating the entire PDF file in Java so I was wondering if there were perhaps a way I can access the info through the use of an object or something. Or some kind of hack I don't know about yet....
You can use iText or Apache PDFBox to read your PDFs and write your content.

How to add a custom tag to a file (mostly images) which is uploaded to a server, and the tag is read through a php script to sort it?

When a file is uploaded to a php server, I am trying to figure out a way to get files sorted. What I want to do is add a custom tag to each file programmaticly in android, upload it to the server (which I have alreay done), and read that tag through a php script.
Thanks for the help
Exif seems to be the way to go for adding metadata to an image. See this related question.
I actually don't think this is the best way to solve you problem. You shouldn't modify the physical image just to introduce some ordering. What exactly do you want to accomplish? You just want to have the same order on the server that you had on the device? What about you send the order in a separate piece of data, say JSON or so?

Is it possible to send a file from java applet to php without mysql?

Is it possible send a image or file from an java applet to a php script which produce a pdf.
Until now my java applet has the opportunity that you can save a screenshot of the applet in the users chosen directory and the user can save the test results in form of a pdf. But I want t combine it to one file and I would like to avoid to work with a database.
Yes, it wouldn't even make sense to use a database for this (unless that is the source of the test results). Just upload the screenshot/results as one POST request and then generate PDF with PHP.
So what you want is to render the PDF combining both, the image and the test results right? The processing Framework has a nice Render2PDF function. Integrate it in your project and u wont need this PHP stuff which comes directly from hell.
Radek

Data Storage Options in j2me

I am creating application in j2me. There is a huge data with whom I have to deal.
I have used RMS but speed of retrieving a data from RMS is tedious process. It takes long time then normal speed.
I can't use File because it requires permission every time whenever I fetch data or store data.
so is there any other options for storing large data in j2me.
Thank you....
Some third party database available for j2me application. See this link for list of database.
Store the data into text files and store the text files into your project workspace. You can read the data from this text files.
Finally you can store the data into server and fetch the data from server using webservice. But needs GPRS.
I preferred last point for using huge data.
1.
Some third party database available for j2me application. See this link for list of database.
2.
Store the data into text files and store the text files into your project workspace. You can read the data from this text files.
3.
Finally you can store the data into server and fetch the data from server using webservice. But needs GPRS.
I preferred last point for using huge data.
harsh

Import for Java or Other Languages that will Generate Flowcharts, Given Data

I'm trying to create an automated "spider diagram" like the ones created by VUE:
http://vue.tufts.edu/
VUE is open source, but the issue is that you create the maps in the program. I want to have a program that will pull the data from an excel sheet and display the map automatically when run.
I know how to open and parse the data in files, so reading the file isn't the issue. I can program the behavior of how I want everything to "link up", but I just don't want to have to create an applet, then develop the software from scratch.
If I made anything unclear, let me know. I'm very tired today, so it's difficult to stay focused very long.
Many thanks!
-Justian
JGraph is a library to do that. You give it the node and edges and it figures out how to present them in a meaningful way. It is kind of like using graphviz but in Java.
For visualization of production runs we use graphviz out of process and show the images generated from that. It works fine, but a single process solution would be better.
Reading an excel as CSV should be straightforward. POI allows you to read directly the Excel files.

Categories

Resources