public static void main(String [] args){
			
		
		try {
			
			System.out.println("reading wav file...");
			
			//String dir = "C:/Users/Jeudy7/Desktop/Doc_ITC_teaching_250913/sphinx_4_project/reco/resource/tmp_file_dir/";
			String dir = "./resource/tmp_file_dir/";
			 File directory = new File(dir);
			 
		     //get all the files from a directory
		     File[] fList = directory.listFiles();
		     
		     
		     	     
		     List<String> list_fileName=new ArrayList<String>();
	     	     
		     Recognition reg = new Recognition();
		     
			 System.out.println(" list files");
		     for (File file : fList){
		         System.out.println("File read :"+file.getName());
		         
		         //System.out.println("number of file : "+file.list()));
		         
		         Recorder rec = new Recorder(dir+file.getName());
		        // Recorder r = null;
		         
               System.out.println("text reco: "+reg.translateSpeech(rec.getAudio()));
		         
		         list_fileName.add(file.getName());		        		        
		     }
		     
		     
		    
		     /*
		     Iterator it=list_fileName.iterator();
		     System.out.println("Filenames in list : ");
		        while(it.hasNext())
		        {
		          String value=(String)it.next();

		          System.out.println("Value :"+value);
		        }
	*/
		     
		} catch (LineUnavailableException e) {
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} 
		
		
		

		
				
		/* hour
		try {
			String com;
			Recorder r = null;
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			Recognition reg = new Recognition();
			while(true){
				System.out.println("s: to start.   c: to stops.");
				if((com = br.readLine()).equals("s")){
					System.out.println("start");
					r = new Recorder();
					r.start();
				}else if(com.equals("c")){
					System.out.println("cancel");
					r.stopRecord();
					r.deleteTmpFile();
					System.out.println("text: "+reg.translateSpeech(r.getAudio()));
				}
			}

		} catch (LineUnavailableException e) {
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		*/
		
		
	}