voxforge.org
VoxForge Dev

Changeset 2638

Show
Ignore:
Timestamp:
08/30/08 13:18:53 (3 months ago)
Author:
kmaclean
Message:

initial commit of r0_1_5 code changes and restructure of server code

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Trunk/SpeechSubmission/VFSpeechSubmission/java/src/speechrecorder/LabelLocalizer.java

    r2519 r2638  
    5959                } else if (language.equals("HB")) { 
    6060                        Hebrew(); 
     61                } else if (language.equals("PT_BR")) { 
     62                        Brazilian(); 
     63                } else if (language.equals("ES")) { 
     64                        Spanish(); 
    6165                } else { 
    6266                        English(); 
     
    382386         genderSelection = new String [3]; 
    383387         genderSelection[0] = pleaseSelect;    
    384          genderSelection[1] = "Machio";     
     388         genderSelection[1] = "Maschio";     
    385389         genderSelection[2] = "Femmina"; 
    386390     
     
    393397     
    394398         dialectPanelLabel = "Dialetto di pronuncia:"; 
    395          dialectSelection = new String [9]; 
     399         dialectSelection = new String [10]; 
    396400         dialectSelection[0] = pleaseSelect;     
    397401         dialectSelection[1] = "Italiano generico";     
     
    401405         dialectSelection[5] = "Italiano milanese"; 
    402406         dialectSelection[6] = "Italiano pugliese"; 
    403          dialectSelection[7] = "Italiano ";      
    404          dialectSelection[8] = "Altro"; 
     407         dialectSelection[7] = "Italiano ";  
     408         dialectSelection[8] = "Dialetto napoletano";            
     409         dialectSelection[9] = "Altro"; 
    405410         
    406411         microphonePanelLabel = "Tipo di Microfono:"; 
     
    514519        } 
    515520         
     521        private void Brazilian() { 
     522             usernamePanelLabel = "Usuário:"; 
     523             usernamePanelText = "(deixe em branco para submeter anonimamente)"; 
     524              
     525             copyrightName = "Fundação de Software Livre"; 
     526             gplAccepted = "Sim"; 
     527             
     528             pleaseSelect = "Selecione"; 
     529             notApplicable = "desconhecido"; 
     530              
     531             genderPanelLabel = "Sexo:"; 
     532             genderSelection = new String [3]; 
     533             genderSelection[0] = pleaseSelect;    
     534             genderSelection[1] = "Masculino";     
     535             genderSelection[2] = "Feminino";  
     536    
     537             ageRangePanelLabel = "Faixa Etária:"; 
     538             ageSelection = new String [4]; 
     539             ageSelection[0] = pleaseSelect;   
     540             ageSelection[1] = "Jovem";   
     541             ageSelection[2] = "Adulto";  
     542             ageSelection[3] = "Idoso";  
     543         
     544             dialectPanelLabel = "Dialeto de Pronunciação:"; 
     545             dialectSelection = new String [3]; 
     546             dialectSelection[0] = pleaseSelect;     
     547             dialectSelection[1] = "Português Brasileiro";     
     548             dialectSelection[2] = "Outro"; 
     549             
     550             microphonePanelLabel = "Tipo de Microfone:"; 
     551             microphoneSelection = new String [9]; 
     552             microphoneSelection[0] = pleaseSelect;   
     553             microphoneSelection[1] = "Fone de Ouvido com Microfone";     
     554             microphoneSelection[2] = "Fone de Ouvido USB com Microfone";    
     555             microphoneSelection[3] = "Microfone de Mesa";   
     556             microphoneSelection[4] = "Microfone de Mesa USB";   
     557             microphoneSelection[5] = "Microfone de Laptop";  
     558             microphoneSelection[6] = "Microfone de WebCam";       
     559             microphoneSelection[7] = "Microfone de Estúdio";  
     560             microphoneSelection[8] = "Outro";  
     561             
     562             uploadText = "<html>Clicando no botão \"Submeter\", você concorda em ceder o Copyright de seu discurso gravado para <br> " 
     563                + "a Fundação de Software Livre e licenciar sua submissão sob a Licença Pública GNU (\"GPL\"):" ; 
     564             uploadButtonLabel = "Submeter"; 
     565             
     566             moreInfoText = "Para mais informações sobre Copyright e GPL, clique aqui:"; 
     567             moreInfoButtonLabel = "Mais informações";     
     568         
     569             disclaimerText =  
     570                 "<html>VoxForge SpeechSubmission Applet - Copyright (C) 2007 VoxForge<br>" 
     571                 +"Este programa vem com ABSOLUTAMENTE NENHUMA GARANTIA; nem mesmo as garantias<br> " 
     572                 +"implícitas de COMERCIABILIDADE ou ADEQUAÇÃO A UM PROPÓSITO EM PARTICULAR.  Para<br>"  
     573                 +"mais detalhes clique no botão \"Sobre\":"; 
     574             aboutButtonLabel = "Sobre"; 
     575             
     576             recordButton = "Gravar";  
     577             stopButton = "Parar";  
     578             playButton = "Tocar";  
     579              
     580             peakWarningLabel =  "Aviso: a entrada pode ser muito barulhenta";  
     581             sampleGraphFileLabel = "Arquivo: "; 
     582             sampleGraphLengthLabel = "  Tamanho: "; 
     583             sampleGraphPositionLabel ="  Posição: "; 
     584              
     585             uploadingMessageLabel = "Submetendo..."; 
     586             uploadCompletedMessageLabel = "Submissão completada... Obrigado por sua submissão!"; 
     587        } 
     588         
     589        private void Spanish() { 
     590             usernamePanelLabel = "Nombre de Usuario:"; 
     591             usernamePanelText = "(dejar en blanco para enviar anonimamente)"; 
     592              
     593             copyrightName = "Free Software Foundation"; 
     594             gplAccepted = "Si"; 
     595             
     596             pleaseSelect = "Por favor Seleccione"; 
     597             notApplicable = "desconocido"; 
     598              
     599             genderPanelLabel = "Genero:"; 
     600             genderSelection = new String [3]; 
     601             genderSelection[0] = pleaseSelect;    
     602             genderSelection[1] = "Masculino";     
     603             genderSelection[2] = "Femenino";  
     604    
     605             ageRangePanelLabel = "Rango de Edad:"; 
     606             ageSelection = new String [4]; 
     607             ageSelection[0] = pleaseSelect;   
     608             ageSelection[1] = "Niño";   
     609             ageSelection[2] = "Adulto";  
     610             ageSelection[3] = "Tercera Edad";  
     611         
     612             dialectPanelLabel = "Dialecto de Pronunciación:"; 
     613             dialectSelection = new String [7]; 
     614             dialectSelection[0] = pleaseSelect;     
     615             dialectSelection[1] = "Español España";     
     616             dialectSelection[2] = "Español Mexicano";     
     617             dialectSelection[3] = "Español Argentina";  
     618             dialectSelection[4] = "Español Chile";       
     619             dialectSelection[5] = "Español Latinoamerica"; //other  
     620             dialectSelection[6] = "Otro"; 
     621             
     622             microphonePanelLabel = "Tipo de Microfono:"; 
     623             microphoneSelection = new String [9]; 
     624             microphoneSelection[0] = pleaseSelect;   
     625             microphoneSelection[1] = "Micrófono Auricular";     
     626             microphoneSelection[2] = "Micrófono Auricular USB";    
     627             microphoneSelection[3] = "Micrófono de Escritorio";   
     628             microphoneSelection[4] = "Micrófono de Escritorio USB";   
     629             microphoneSelection[5] = "Micrófono de Notebook incorporado";  
     630             microphoneSelection[6] = "Micrófono de Cámara Web";       
     631             microphoneSelection[7] = "Micrófono de Estudio (Profesional)";  
     632             microphoneSelection[8] = "Otro";  
     633             
     634             uploadText = "<html>Haciendo click en el boton \"Subir\", usted esta de acuerdo en entregar los derechos (Copyright) de su voz grabada a <br> " 
     635                + "la Free Software Foundation (Fundación del Software Libre), y de licenciar lo subido bajo la Licencia Pública GNU (GNU Public Licence)                       (\"GPL\"):" ; 
     636 
     637             uploadButtonLabel = "Subir"; 
     638             
     639             moreInfoText = "Para más información sobre los derechos (Copyright) GPL, click aqui:"; 
     640             moreInfoButtonLabel = "Más Información";     
     641         
     642             disclaimerText =  
     643                 "<html>VoxForge Applet para donación de voz - Copyright (C) 2008 VoxForge<br>" 
     644                 +"This program comes with ABSOLUTELY NO WARRANTY; without even the implied<br> " 
     645                 +"warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  For<br>"  
     646                 +"more details click the \"Acerca\" button:"; 
     647             aboutButtonLabel = "Acerca"; 
     648             
     649             recordButton = "Grabar";  
     650             stopButton = "Parar";  
     651             playButton = "Reproducir";  
     652              
     653             peakWarningLabel =  "Advertencia: entrada tal vez muy alta";  
     654             sampleGraphFileLabel = "Archivo: "; 
     655             sampleGraphLengthLabel = "  Largo: "; 
     656             sampleGraphPositionLabel ="  Posición: "; 
     657              
     658             uploadingMessageLabel = "Subiendo..."; 
     659             uploadCompletedMessageLabel = "Entrega completada... Gracias por su entrega!"; 
     660        } 
     661         
    516662        public String getUsernamePanelLabel() { 
    517663                return usernamePanelLabel; 
     
    628774                return uploadCompletedMessageLabel; 
    629775        } 
    630  
    631          
    632776} 
  • Trunk/SpeechSubmission/VFSpeechSubmission/java/src/speechrecorder/License.java

    r2519 r2638  
    4848                 
    4949                VFlicenseNotice =   
    50                   "VoxForge Speech Submission Application v0.1.4" + System.getProperty("line.separator") 
     50                  "VoxForge Speech Submission Application v0.1.5" + System.getProperty("line.separator") 
    5151                + "============================" + System.getProperty("line.separator") 
    5252                + "Allows a user to record their speech and upload it to the VoxForge server" + System.getProperty("line.separator")  
  • Trunk/SpeechSubmission/VFSpeechSubmission/java/src/speechrecorder/Prompts.java

    r2529 r2638  
    7171                promptList = getPromptTextFile("englishPromptList.txt", 1223); // number of prompts needs to be exact or there might be an error on a roll-over 
    7272        } else if (Language.equals("NL")) { 
    73                 promptList = getPromptTextFile("nl","dutchPromptList.txt", 813); 
     73                promptList = getPromptTextFile("nl","dutchPromptList.txt", 947); 
    7474        } else if (Language.equals("DE")) { 
    7575                promptList = getPromptTextFile("germanPromptList.txt", 1211); 
     
    8080        } else if (Language.equals("HB")) { 
    8181                promptList = getPromptTextFile("hebrewPromptList.txt", 55);      
     82        } else if (Language.equals("PT_BR")) { 
     83                promptList = getPromptTextFile("brazilianPromptList.txt", 218);  
     84        } else if (Language.equals("ES")) { 
     85                promptList = getPromptTextFile("es","spanishPromptList.txt", 107);       
    8286        } else { 
    8387        System.err.println("getPromptTextFile error accessing prompt file for "+ Language + "using default English prompts"); 
  • Trunk/SpeechSubmission/VFSpeechSubmission/java/src/speechrecorder/englishPromptList.txt

    r2515 r2638  
    528528a0436 But Martin smiled a superior smile. 
    529529a0437 By that answer my professional medical prestige stood or fell. 
    530 a0438 At sea, Monday, March Sixteeth, Nineteen Oh Eight. 
     530a0438 At sea, Monday, March Sixteenth, Nineteen Oh Eight. 
    531531a0439 At sea, Wednesday, March Eighteenth, Nineteen Oh Eight. 
    532532a0440 Yes, sir, I corrected. 
  • Trunk/SpeechSubmission/VFSpeechSubmission/servers/voxforge1.org/index.php

    r2376 r2638  
    168168</br> 
    169169<?php 
    170 require_once('r0_1_2/SubmitSpeechServer.php'); 
     170require_once('r0_1_4/SubmitSpeechServer.php'); 
    171171 
    172172echo submitspeech_postlet_applet( 
  • Trunk/SpeechSubmission/VFSpeechSubmission/servers/voxforge1.org/rX_X_X/SubmitSpeechServer.php

    r2525 r2638  
    1111 
    1212 
    13 function submitspeech_postlet_applet($language, $height, $filefieldname='userfile'){ 
     13function submitspeech_postlet_applet($language, $height,$endpage, $filefieldname='userfile'){ 
    1414  global $CFG; 
    1515//  $language = NL; 
     
    2020  $cookie = htmlspecialchars($_SERVER['HTTP_COOKIE']); 
    2121  $code =  <<<ENDHTMLFRAGMENT 
    22 <applet name="VoxForge.org Speech Submission Application" width ="850" height =$height mayscript="mayscript" 
     22<applet name="VoxForge.org Speech Submission Application" width ="950" height =$height mayscript="mayscript" 
    2323      code="speechrecorder/RecorderApplet.class" style="border: 1px solid rgb(153,153,153);"> 
    24  <param name="codebase"  value="http://read.voxforge1.org/r0_1_4/"/> 
     24 <param name="codebase"  value="http://read.voxforge1.org/r0_1_5/"/> 
    2525 <param name="archive"  value="speechrecorder.jar"/> 
    26  <param name="type"  value="application/x-java-applet;version=1.4"/> 
     26 <param name="type"  value="application/x-java-applet;version=1.5"/> 
    2727 <param name="scriptable"  value="true"/> 
    28  <param name="destination" value="http://read.voxforge1.org/r0_1_4/javaUploadServer.php"/> 
    29  <param name="endpage"  value="http://read.voxforge1.org/r0_1_4/endpage.php"/> 
     28 <param name="destination" value="http://read.voxforge1.org/r0_1_5/javaUploadServer.php"/> 
     29 <param name="endpage"  value="$endpage"/> 
    3030 <param name="cookie"  value="$cookie"/> 
    3131 <param name="language"  value="$language"/> 
  • Trunk/SpeechSubmission/VFSpeechSubmission/servers/voxforge1.org/rX_X_X/SubmitSpeechWebGUI-DE.php

    r2525 r2638  
    1212echo submitspeech_postlet_applet( 
    1313'DE',  
    14 '940' 
     14'1125', 
     15'http://www.voxforge.org/de/endpage' 
    1516); 
    1617 
  • Trunk/SpeechSubmission/VFSpeechSubmission/servers/voxforge1.org/rX_X_X/SubmitSpeechWebGUI-EN.php

    r2525 r2638  
    1212echo submitspeech_postlet_applet( 
    1313'EN',  
    14 '900' 
     14'1075', 
     15'http://read.voxforge1.org/r0_1_5/endpage.php' 
    1516); 
    1617 
  • Trunk/SpeechSubmission/VFSpeechSubmission/servers/voxforge1.org/rX_X_X/SubmitSpeechWebGUI-HB.php

    r2525 r2638  
    1212echo submitspeech_postlet_applet( 
    1313'HB',  
    14 '865' 
     14'1075', 
     15'http://www.voxforge.org/hb/endpage' 
    1516); 
    1617 
  • Trunk/SpeechSubmission/VFSpeechSubmission/servers/voxforge1.org/rX_X_X/SubmitSpeechWebGUI-IT.php

    r2525 r2638  
    1212echo submitspeech_postlet_applet( 
    1313'IT',  
    14 '950' 
     14'1175', 
     15'http://www.voxforge.org/it/endpage' 
    1516); 
    1617 
  • Trunk/SpeechSubmission/VFSpeechSubmission/servers/voxforge1.org/rX_X_X/SubmitSpeechWebGUI-NL.php

    r2525 r2638  
    1212echo submitspeech_postlet_applet( 
    1313'NL',  
    14 '980' 
     14'1150', 
     15'http://www.voxforge.org/nl/endpage' 
    1516); 
    1617 
  • Trunk/SpeechSubmission/VFSpeechSubmission/servers/voxforge1.org/rX_X_X/SubmitSpeechWebGUI-RU.php

    r2525 r2638  
    1212echo submitspeech_postlet_applet( 
    1313'RU',  
    14 '1000' 
     14'1175', 
     15'http://www.voxforge.org/ru/endpage' 
    1516); 
    1617