00001 /* 00002 This file is part of ALIZE which is an open-source tool for 00003 speaker recognition. 00004 00005 ALIZE is free software: you can redistribute it and/or modify 00006 it under the terms of the GNU Lesser General Public License as 00007 published by the Free Software Foundation, either version 3 of 00008 the License, or any later version. 00009 00010 ALIZE is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 GNU Lesser General Public License for more details. 00014 00015 You should have received a copy of the GNU Lesser General Public 00016 License along with ALIZE. 00017 If not, see <http://www.gnu.org/licenses/>. 00018 00019 ALIZE is a development project initiated by the ELISA consortium 00020 [alize.univ-avignon.fr/] and funded by the French Research 00021 Ministry in the framework of the TECHNOLANGUE program 00022 [www.technolangue.net] 00023 00024 The ALIZE project team wants to highlight the limits of voice 00025 authentication in a forensic context. 00026 The "Person Authentification by Voice: A Need of Caution" paper 00027 proposes a good overview of this point (cf. "Person 00028 Authentification by Voice: A Need of Caution", Bonastre J.F., 00029 Bimbot F., Boe L.J., Campbell J.P., Douglas D.A., Magrin- 00030 chagnolleau I., Eurospeech 2003, Genova]. 00031 The conclusion of the paper of the paper is proposed bellow: 00032 [Currently, it is not possible to completely determine whether the 00033 similarity between two recordings is due to the speaker or to other 00034 factors, especially when: (a) the speaker does not cooperate, (b) there 00035 is no control over recording equipment, (c) recording conditions are not 00036 known, (d) one does not know whether the voice was disguised and, to a 00037 lesser extent, (e) the linguistic content of the message is not 00038 controlled. Caution and judgment must be exercised when applying speaker 00039 recognition techniques, whether human or automatic, to account for these 00040 uncontrolled factors. Under more constrained or calibrated situations, 00041 or as an aid for investigative purposes, judicious application of these 00042 techniques may be suitable, provided they are not considered as infallible. 00043 At the present time, there is no scientific process that enables one to 00044 uniquely characterize a person=92s voice or to identify with absolute 00045 certainty an individual from his or her voice.] 00046 Contact Jean-Francois Bonastre for more information about the licence or 00047 the use of ALIZE 00048 00049 Copyright (C) 2003-2010 00050 Laboratoire d'informatique d'Avignon [lia.univ-avignon.fr] 00051 ALIZE admin [alize@univ-avignon.fr] 00052 Jean-Francois Bonastre [jean-francois.bonastre@univ-avignon.fr] 00053 */ 00054 00055 #if !defined(ALIZE_MixtureFileReader_cpp) 00056 #define ALIZE_MixtureFileReader_cpp 00057 00058 #include "MixtureFileReader.h" 00059 #include "MixtureFileReaderAmiral.h" 00060 #include "MixtureFileReaderRaw.h" 00061 #include "MixtureFileReaderXml.h" 00062 #include "Exception.h" 00063 #include "Mixture.h" 00064 #include "MixtureGD.h" 00065 #include "MixtureGF.h" 00066 #include "Config.h" 00067 00068 using namespace alize; 00069 typedef MixtureFileReader R; 00070 00071 //------------------------------------------------------------------------- 00072 R::MixtureFileReader(const FileName& f, const Config& c, BigEndian be) 00073 :MixtureFileReaderAbstract(NULL, c), 00074 _pMixFileReader(&createReader(f, c, be)) {} 00075 //------------------------------------------------------------------------- 00076 MixtureFileReaderAbstract& R::createReader(const FileName& f, 00077 const Config& c, BigEndian be) 00078 { // private 00079 if (c.existsParam_loadMixtureFileFormat) 00080 switch (c.getParam_loadMixtureFileFormat()) 00081 { 00082 case MixtureFileReaderFormat_AMIRAL: 00083 return MixtureFileReaderAmiral::create(f, c, be); 00084 case MixtureFileReaderFormat_XML: 00085 return MixtureFileReaderXml::create(f, c); 00086 case MixtureFileReaderFormat_RAW: 00087 return MixtureFileReaderRaw::create(f, c, be); 00088 } 00089 const FileName& ff = f + getExt(f, c); 00090 if (ff.endsWith(".xml")) 00091 return MixtureFileReaderXml::create(f, c); 00092 //if (ff.endsWith(".gmm")) 00093 // return MixtureFileReaderAmiral::create(f, c, be); 00094 throw Exception("Param 'loadMixtureFileFormat' expected in the config", 00095 __FILE__, __LINE__); 00096 } 00097 //------------------------------------------------------------------------- 00098 const Mixture& R::readMixture() { return _pMixFileReader->readMixture(); } 00099 //------------------------------------------------------------------------- 00100 const Mixture& R::readMixture(DistribType t) 00101 { 00102 if (t == DistribType_GD) 00103 return static_cast<const Mixture&>(_pMixFileReader->readMixtureGD()); 00104 if (t == DistribType_GF) 00105 return static_cast<const Mixture&>(_pMixFileReader->readMixtureGF()); 00106 return readMixtureGF(); // never called 00107 } 00108 //------------------------------------------------------------------------- 00109 const MixtureGD& R::readMixtureGD() 00110 { return _pMixFileReader->readMixtureGD(); } 00111 //------------------------------------------------------------------------- 00112 const MixtureGF& R::readMixtureGF() 00113 { return _pMixFileReader->readMixtureGF(); } 00114 //------------------------------------------------------------------------- 00115 String R::getClassName() const { return "MixtureFileReader"; } 00116 //------------------------------------------------------------------------- 00117 R::~MixtureFileReader() 00118 { 00119 if (_pMixFileReader != NULL) 00120 delete _pMixFileReader; 00121 } 00122 //------------------------------------------------------------------------- 00123 00124 #endif // !defined(ALIZE_MixtureFileReader_cpp) 00125
1.7.2