Changeset 2364
- Timestamp:
- 11/29/07 10:08:20 (1 year ago)
- Files:
-
- Trunk/SpeechSubmission/VFSpeechSubmission/java/src/speechrecorder/CapturePlayback.java (modified) (1 diff)
- Trunk/SpeechSubmission/VFSpeechSubmission/java/src/speechrecorder/LabelLocalizer.java (modified) (1 diff)
- Trunk/SpeechSubmission/VFSpeechSubmission/java/src/speechrecorder/License.java (modified) (1 diff)
- Trunk/SpeechSubmission/VFSpeechSubmission/java/src/speechrecorder/Prompts.java (modified) (1 diff)
- Trunk/SpeechSubmission/VFSpeechSubmission/java/src/speechrecorder/RecorderApplet.java (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
Trunk/SpeechSubmission/VFSpeechSubmission/java/src/speechrecorder/CapturePlayback.java
r2363 r2364 280 280 // ############ Localized Fields #################################### 281 281 this.language = language; 282 System.err.println("CapturePlayback Language:" + this.language + ":");282 // debug System.err.println("CapturePlayback Language:" + this.language + ":"); 283 283 284 284 LabelLocalizer labels = new LabelLocalizer(this.language); Trunk/SpeechSubmission/VFSpeechSubmission/java/src/speechrecorder/LabelLocalizer.java
r2363 r2364 41 41 42 42 public LabelLocalizer (String language) { 43 System.err.println("LabelLocalizerLanguage:" + language + ":");43 // debug System.err.println("LabelLocalizerLanguage:" + language + ":"); 44 44 if (language.equals("EN")) { 45 45 English(); 46 System.err.println("LabelLocalizerLanguage:" + language + ": equals EN");46 // debug System.err.println("LabelLocalizerLanguage:" + language + ": equals EN"); 47 47 } else if (language.equals("NL")) { 48 48 Dutch(); 49 49 } else { 50 50 English(); 51 System.err.println("LabelLocalizerLanguage:" + language + ": defaults to english");51 // debug System.err.println("LabelLocalizerLanguage:" + language + ": defaults to english"); 52 52 } 53 53 } Trunk/SpeechSubmission/VFSpeechSubmission/java/src/speechrecorder/License.java
r2363 r2364 48 48 49 49 VFlicenseNotice = 50 "VoxForge Speech Submission Application v0.1 - allows a user to record their speech and " + System.getProperty("line.separator")50 "VoxForge Speech Submission Application v0.1.1 - allows a user to record their speech and " + System.getProperty("line.separator") 51 51 + " upload the recorded audio to the VoxForge server, so that it can be" + System.getProperty("line.separator") 52 52 + "incorporated into the VoxForge Speech Corpus and used in the creation of " + System.getProperty("line.separator") Trunk/SpeechSubmission/VFSpeechSubmission/java/src/speechrecorder/Prompts.java
r2363 r2364 1257 1257 1258 1258 public Prompts(int NumberofPrompts, String Language) { 1259 if (Language == "EN") {1259 if (Language.equals("EN")) { 1260 1260 promptList = englishPromptList; 1261 } else if (Language == "NL") {1261 } else if (Language.equals("NL")) { 1262 1262 promptList = dutchPromptList; 1263 1263 } else { Trunk/SpeechSubmission/VFSpeechSubmission/java/src/speechrecorder/RecorderApplet.java
r2363 r2364 25 25 static RecorderApplet applet; 26 26 private CapturePlayback theRecorder; 27 // !!!!!!28 private CapturePlayback theRecorder2;29 // !!!!!!30 27 ////// MOODLEY: 31 28 String subject; 32 29 String fileFieldName; 33 // !!!!!!34 String prompt1;35 String prompt2;36 String prompt3;37 String prompt4;38 String prompt5;39 String promptID1;40 String promptID2;41 String promptID3;42 String promptID4;43 String promptID5;44 String prompt6;45 String prompt7;46 String prompt8;47 String prompt9;48 String prompt10;49 String promptID6;50 String promptID7;51 String promptID8;52 String promptID9;53 String promptID10;54 // !!!!!!55 30 URL endPageURL; 56 57 // !!!!!!58 31 URL helpPageURL; 59 60 // !!!!!!61 32 URL destinationURL; 62 33 String language; … … 67 38 public void init() { 68 39 applet = this; 69 String param = null;70 71 40 // At this point grab all our parameters 72 41 getParameters(); … … 102 71 System.err.println("RecorderApplet Cookie: " + cookie +":\n"); 103 72 } catch (NullPointerException nullLang){ 104 // Default language being set105 106 73 errorMessage(System.out,"cookie is null"); 107 74 } … … 112 79 if (language == "" || language == null) 113 80 language = "EN"; 114 System.err.println("RecorderAppletlanguage is:" + language);81 // debug System.err.println("RecorderAppletlanguage is:" + language); 115 82 } catch (NullPointerException nullLang){ 116 83 // Default language being set … … 123 90 // !!!!!! 124 91 destinationURL = new URL(getParameter("destination")); 125 // Following line is for testing, and to hard code the applet to postlet.com 126 127 // destinationURL = new URL("http://localhost:90/httpd/postlet/javaUpload.php"); 128 // !!!!!! 92 // Following line is for testing, and to hard code the applet to postlet.com 93 // destinationURL = new URL("http://localhost:90/httpd/postlet/javaUpload.php"); 94 // !!!!!! 129 95 } catch(java.net.MalformedURLException malurlex){ 130 96 // Do something here for badly formed destination, which is ESENTIAL.