Basic Translation Software - Adding Audio To Words

Jan 30, 2015

I am a visual effects artist not a programmer but I wanna create a very basic translation software to improve english language in primary school students in my country. I cannot program at all except html and css but I am willing to do and learn whatever it takes to make this work. I don't know where to start from or what language to use. The structure of the program is to type an english word and then it must give out a translation of my local language and vice versa and I would like to add audio to the words.

View Replies


ADVERTISEMENT

Basic Time Translation Loop

Oct 25, 2014

I am new to programming so for loops are a little confusing to me still but basically what I am doing is making a small java rpg game and I want to add in a time element to it so your character gets things like promotions and such after a certain amount of time playing.

for (int x = months; x < 12; years++) {
for (int y = weeks; y < 4; months++) {
for (int z = days; z < 7; weeks++) {
for (int j = hours; j < 24; days++) {
for (int k = minutes; k < 60; hours++) {
}
}
}
}
}

That's what I have so far but I am getting a logical error/ infinite loop when I run. I have added each unit of time as a static variable so there's no problem there.

View Replies View Related

Swing/AWT/SWT :: Create A Basic Graphical User Interface For Sequence Translation

Mar 3, 2015

I am trying to create a basic graphical user interface for sequence translation (including a JTextField for the description of a sequence and status of function button pressed e.g. “simple” translation and input and output TextFields). This involves a number of different class files. I cannot get my user interface to do what I want and I think I have problems with my "actionPerformed" method. How the code should be linked together?

public void actionPerformed(ActionEvent event) {
try {
// Get the description, content and result
String d = tool.getDescription();
String input = tool.getInputText();
Stringr = translation.getResult();

[code]....

View Replies View Related

Program Which Compares Audio File With Real Time Captured Audio

Nov 23, 2014

I wanted to know some hints on where to begin if I wanted to create a program which compares an audio file with real time captured audio. I found this website "[URL]...", but I think this would not do the job, so what are the basics of audio in java and how to compare audio files and see if they are compatible.

View Replies View Related

Program That Accept Words And Their Meanings Or Display List Of Words In Lexicographical Order

Apr 15, 2015

Write a menu driven program that either accepts words and their meanings, or displays the list of words in lexicographical order (i.e. as in a dictionary). When an entry is to be added to the dictionary you must first enter the word as one string, and then enter the meaning as separate string. Another requirement - from time to time words become obsolete. When this happens, such word must be removed from the dictionary.

Use the JOptionPane class to enter the information.

Use the concept of linked list to carryout this exercise. You will need at minimum the following classes:

- A WordMeaning class that hold the name of a word and its meaning.
- A WordMeaningNode class that creates the node of information and its link field.
- A WordList class that creates and maintain a linked list of words and their meanings.
- A Dictionary class that test your classes.

For the output, the program should produce two scrollable lists:

- The current list of words and their meanings.
- The list of the deleted words. You need not list the meanings, just the words.

So far, I have everything coded except for the remove method, and I am not sure how to code that. I coded the add method already, but now I don't know where to begin with the remove method in my WordList class. My classes are below.

WordMeaning Class:

public class WordMeaning {
String name;
String definition;
WordMeaning(String t, String d) {
name = t;
definition = d;

[Code] .....

View Replies View Related

JSP :: Translation Into Servlet DoGet / DoPost Method

Feb 26, 2014

I have the below piece of code in my jsp page.

<% double randomNum= Math.random(); %>
<%= randomNum%>

Now I am trying to run this jsp, it will be translated into servlet. When i checked the generated servlet I found both the above code snippet(scriplet and expression) came in to _jspService method. But in the internet and in many other book i found that scriplet and expression portions will come in the doGet/doPost method (which will be called from jspservice).

So any specific reason why in this case it went in to jspservice method (though I am getting desired output)? I am using tomcat 6.

View Replies View Related

Translation Game - Translate A Word Proposed To And Check If Input Response Is Correct

Dec 19, 2013

The project is to develop the game Translate the Word .... It is asking user to translate a word proposed to and check if the input response is correct. At the end of the game score will be calculated and displayed.

Game Play :

1 - Ask the user to specify , through the console , its name and the number of words to offer . It is up to you to handle exceptions (eg number of words greater than the number you provided )
2 - Recover user response ( the word translated ) and check whether to continue . (eg you want to continue (y / n)) after each proposal.
3 - compare the response of the user with that which is preset for the word in question .
4 - Show the score at the end ( or at the breakpoint ) .
5 - Save the file in a user name , the score , the number of questions and the start date and end of the game played .

Some notes to consider :

1 - The language (eg, English - French , English - Arabic , etc. . ): It is up to you to specify the language adopted in the game and inform the user of your choice.
2 - The word bank to offer : It is up to you to develop the appropriate means to get the words to propose to the user. That said , the words and their translations can be retrieved :

a. a TXT file
b . an XML file . ( Tutorials DOM and SAX )
c . CSV file ( OpenCSV Tutorial )
d. a database ( Tutorial Access)
e . through APIs (eg Wordnet and google translate etc . ) .
f . a combination of the previous options a, bc , d and / or e . (eg words stored in a txt file and answers retrieved from the api google translate)
g . etc. .

Examples of files and databases are attached to the project statement . You will need to add one or more external libraries to your project. Click here for details on adding external libraries to Netbeans .

3 - A user will be associated with the question score if he can translate the word correctly. The score for each question can be calculated based on the number of words / questions to be proposed .

Development : In this project you will need at least a class called Question to encapsulate the word and its translations and provide all necessary methods to manipulate the object type Question.

An interface called IParser to make extensible project. Any class that implements IParser is a parser file (XML , TXT , CSV , etc.). / Database. In your project there will be a single class that implements IParser and will be used to retrieve words and their translations.

Add the ability to store the questions and answers of the user on the hard disk. Make the class Serializable Question

View Replies View Related

Disabling Audio With JButton

Oct 11, 2014

I am having right now is that I don't know how to stop my music from playing? I am making a Connect 4 game with some audio to make it intuitive. Below is my code. This is my Music method.

public static void Music() {
try {
File music = new File("C:\Users\Ken\workspace\Assignment1\src\Mario1.wav");
AudioInputStream audioIn = AudioSystem.getAudioInputStream(music);
Clip clip = AudioSystem.getClip();
clip.open(audioIn);

[Code] ....

I called this method into a JButton i implemented into my main GUI.

if (e.getSource() == SoundOn){
Music();}
if (e.getSource() == SoundOff){
//What do I put here?
}

There is the method and my JButton.

View Replies View Related

How To Read Audio File In Java

Mar 20, 2015

How to read an audio file in java?

View Replies View Related

Applets :: Pause / Resume Audio?

Jul 22, 2014

I'm trying to learn how to Pause/Resume audio in an applet .

View Replies View Related

Managing Audio Files In Java

Apr 18, 2014

I'm doing a little game in Java and I would like to insert a background music managed by a JButton. When the button is pressed, the music starts and then, to stop it, the button is pressed again. If you don't press the button to stop the music remains in the loop until the player plays.

View Replies View Related

Audio-system Can't Find Any Mixers

May 13, 2014

I've moved working code over to a different computer, a 32 bit Dell PC running Win7 under Netbeans and Java 8. I can't get it to play or synthesize any sounds because it can't get any Mixers. I tried adding the standard provider entries to the sound.properties file (they aren't needed in my other computer, but I had to try), and it made no difference. I've tracked down the problem farther by getting the source code for these classes and stepping through.

The system seems to have the Mixer providers, but in java.util.ServiceLoader.LazyIterator$nextService() it is looping through a set of javax.sound.sampled.spi.MixerProviders and it hits the following error:

try {
S p = service.cast(c.newInstance());
providers.put(cn, p);
return p;
} catch (Throwable x) {
fail(service,
"Provider " + cn + " could not be instantiated",
x);
}

why this is happening?

View Replies View Related

IOException - How To Play Audio File

Apr 17, 2015

I used the following but there's an IOexception. How can I set it up so that it can play audio even after the jar is built?

public void play(){
InputStream in = null;
try {
in = new FileInputStream(new File(filename));
AudioStream audioStream = new AudioStream(in);
AudioPlayer.player.start(audioStream);
in.close();

[Code]...

View Replies View Related

Streaming Audio Files Over Web Using JMF Plugin

Feb 18, 2015

I've been experiencing problems with the JMF extension when used in an Applet on the web. The program has worked fine previously but not returns the following error...

PackageManager: error reading registry
javax.media.NoPlayerException: Cannot find a Player for : [filename]
at javax.media.Manager.createPlayerForContent(Manager .java:1412)
at javax.media.Manager.createPlayer(Manager.java:417)

[Code] .....

However the program works fine in Eclipse with no errors. I have tried reinstalling the JMF package and setting the CLASSPATH and JMFHOME but it still does not work. I am using the jmf-2_1_1e-alljava version. I have also tried putting the player code in an AccessController.doPrivileged() block but this still does not seem to work.

My code for the player is as follows....

private void play(final String track) {
Thread dispatch = new Thread() {
public void run() {
try {
if(player!=null)
player.close();

[Code] .....

View Replies View Related

How To Play Audio In A Stand Alone Application

Jun 26, 2014

how to play audio in a stand alone application.

View Replies View Related

How To Play Downloaded Audio File

Dec 15, 2014

I am making a little game for my friend based on HTML and javascript and i was wondering how to play an audio file that i downloaded on to my computer without the user interacting. like a buzzer you would hear on jeopordy or something like that, creating a Wrong answer buzzer and a right answer buzzer into an if/else statement.

View Replies View Related

Swing/AWT/SWT :: Continuous Audio Data Stream Not Working

Oct 15, 2014

I am trying to make my audio loop and i tried the code below

public void audioloop() {
AudioPlayer MGP = AudioPlayer.player;
AudioStream BGM;
AudioData MD;
ContinuousAudioDataStream loop = null;
try {

[Code] ....

But is not working. I was thinking may be API is not work with java 7 because i got the following warning (AudioStream is internal proprietary API and may be removed in a future release);

View Replies View Related

Android Audio Decoding For Morse Code And PSK31

Jan 6, 2014

I have some software I need to write. I am planning to write two apps for Android, one of which will send and receive Morse code, and the other to send and receive PSK31 data.

Programming is not my strong point, and I am currently struggling on how to do this. I have researched the software, and I am having a hard time finding out how to decode the audio streams on Android. I have also had difficulty finding examples and source code as what I have found is mostly written in C/C++, whereas I need examples in Java.

View Replies View Related

Java App / Audio Producer - Multiple Consumer Design

Jun 1, 2014

I am planning to develop an application that does the following:

1) Receiving an audio streaming from a shoutcast server
2) Decode and push it throught producer to a shared buffer
3) Share audio data to as many consumers are interested to this feed.

What is the best practive for doing this? I tried several things without success.

View Replies View Related

Simple Client Server Audio Streaming Code In Java

Apr 18, 2014

I worked on this simple client server chat app and it worked now for my project i needed to work on client server audio streaming broadcast but i dont really know much bout audio api and methods on java...

View Replies View Related

Basic Calculator Functions

Jul 2, 2014

my task is to add a few functions to an example calculator. I managed to add a divide button but I simply can't figure out how to add a working Pi and reciprocal function.

package newjavaproject;
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
public class CalculateurNC extends Applet {

[code]....

View Replies View Related

Basic Cost Calculator

Oct 20, 2014

Why I am getting errors for this program I (tried) to write. I am new to java.

import java.util.Scanner;
public class TheBarkingLot {
public static void main(String args[]) {
int n;
Scanner input = new Scanner(System.in);
System.out.println("How many large dogs are boarding today?");

[Code] ....

View Replies View Related

Basic Grade Calculator

Jan 24, 2015

im considered quite the "javanoob" as my account name states..The assignment is to basically take a number that is entered by a user, and based off what they type in, display a corresponding grade letter. For example, if they enter a number between 90-100, they should receive a response that they received an "A". Now, this is fairly simple using an if/else statement, but my professor wanted us to implement this, using a switch case to teach us the difference.

import java.util.*;
public class SwitchTest
{
public static void main(String[] args)
{
Scanner scan = new Scanner(System.in);

System.out.println("Please enter a number to find out what letter grade you have recieved");

[code]...

View Replies View Related

Servlets :: Tomcat Basic Authentication

Mar 30, 2015

I moved some static html pages I was hosting from apache into tomcat. (no point in running two servers) This works as expected, but I'm having trouble with the authentication part. In apache the authentication was handled by htaccess. I tried various tutorials on the web about configuring basic authentication in tomcat using WEB-INF/web.xml in tomcat, but I'm not sure this approach applies to static html pages. Using basic authentication for static html in tomcat?

View Replies View Related

Basic Array Table Not Working?

May 9, 2015

My code is supposed to give the array index on the left and what is inside the array on the right, but i get nothing except the header? I am using eclipse.

public class Options{
public static void main(String args[]) {
System.out.println("Index Value");
int value[] = {1,2,3,4,5};
for(int add = 0 ; add <value.length ; add++) {
System.out.println(add + " " + value[add]);
}
}
}

View Replies View Related

Basic Prime Factorization Program

Dec 10, 2014

What's wrong with the code.

public class alltheprime {
public static void main(int a) {
int i, j, k, l, m;
m=a;
k=0;
for(i=2;m>1;i++) {
for(l=2; l<i;) {
l=l+1;

[Code] ......

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved