00001 #if !defined(ALIZE_Hist_cpp) 00002 #define ALIZE_Hist_cpp 00003 00004 #include <iostream> 00005 #include <fstream> 00006 #include <cstdio> 00007 #include <cassert> 00008 #include <cmath> 00009 #include "Hist.h" 00010 00011 using namespace alize; 00012 using namespace std; 00013 00014 int Hist (Config & config) 00015 { 00016 try { 00017 String datalist=config.getParam("dataFile"); 00018 unsigned long nbBins=config.getParam("nbBins").toLong(); 00019 String format="gnuplot"; 00020 if (config.existsParam("format")) format=config.getParam("format"); 00021 XList data; 00022 data.load(datalist,config); 00023 XLine * linep; 00024 Histo histDATA(nbBins); 00025 00026 while((linep=data.getLine())!=NULL) { 00027 histDATA.accumulateValue(linep->getElement(0).toDouble()); 00028 } 00029 histDATA.computeHisto(); 00030 if (format=="txt") 00031 histDATA.save(config.getParam("outFile")); 00032 else 00033 histDATA.saveGnuplot(config.getParam("outFile")); 00034 } // fin try 00035 00036 catch (Exception & e) {cout << e.toString ().c_str () << endl;} 00037 return 0; 00038 } 00039 00040 #endif // !defined(ALIZE_Hist_cpp) 00041 /* 00042 This file is part of LIA_RAL which is a set of software based on ALIZE 00043 toolkit for speaker recognition. ALIZE toolkit is required to use LIA_RAL. 00044 00045 LIA_RAL project is a development project was initiated by the computer 00046 science laboratory of Avignon / France (Laboratoire Informatique d'Avignon - 00047 LIA) [http://lia.univ-avignon.fr <http://lia.univ-avignon.fr/>]. Then it 00048 was supported by two national projects of the French Research Ministry: 00049 - TECHNOLANGUE program [http://www.technolangue.net] 00050 - MISTRAL program [http://mistral.univ-avignon.fr] 00051 00052 LIA_RAL is free software: you can redistribute it and/or modify 00053 it under the terms of the GNU Lesser General Public License as 00054 published by the Free Software Foundation, either version 3 of 00055 the License, or any later version. 00056 00057 LIA_RAL is distributed in the hope that it will be useful, 00058 but WITHOUT ANY WARRANTY; without even the implied warranty of 00059 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00060 GNU Lesser General Public License for more details. 00061 00062 You should have received a copy of the GNU Lesser General Public 00063 License along with LIA_RAL. 00064 If not, see [http://www.gnu.org/licenses/]. 00065 00066 The LIA team as well as the LIA_RAL project team wants to highlight the 00067 limits of voice authentication in a forensic context. 00068 The "Person Authentification by Voice: A Need of Caution" paper 00069 proposes a good overview of this point (cf. "Person 00070 Authentification by Voice: A Need of Caution", Bonastre J.F., 00071 Bimbot F., Boe L.J., Campbell J.P., Douglas D.A., Magrin- 00072 chagnolleau I., Eurospeech 2003, Genova]. 00073 The conclusion of the paper of the paper is proposed bellow: 00074 [Currently, it is not possible to completely determine whether the 00075 similarity between two recordings is due to the speaker or to other 00076 factors, especially when: (a) the speaker does not cooperate, (b) there 00077 is no control over recording equipment, (c) recording conditions are not 00078 known, (d) one does not know whether the voice was disguised and, to a 00079 lesser extent, (e) the linguistic content of the message is not 00080 controlled. Caution and judgment must be exercised when applying speaker 00081 recognition techniques, whether human or automatic, to account for these 00082 uncontrolled factors. Under more constrained or calibrated situations, 00083 or as an aid for investigative purposes, judicious application of these 00084 techniques may be suitable, provided they are not considered as infallible. 00085 At the present time, there is no scientific process that enables one to 00086 uniquely characterize a persones voice or to identify with absolute 00087 certainty an individual from his or her voice.] 00088 00089 Copyright (C) 2004-2010 00090 Laboratoire d'informatique d'Avignon [http://lia.univ-avignon.fr] 00091 LIA_RAL admin [alize@univ-avignon.fr] 00092 Jean-Francois Bonastre [jean-francois.bonastre@univ-avignon.fr] 00093 */ 00094
1.7.2