Source code for bob.db.voxforge.query

#!/usr/bin/env python
# vim: set fileencoding=utf-8 :
# @author: Elie Khoruy <Elie.Khoury@idiap.ch>
# @date: Thu Aug 22 17:49:19 CEST 2013
#
# Copyright (C) 2012-2014 Idiap Research Institute, Martigny, Switzerland
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

import bob.bio.base
from bob.bio.spear.database import AudioBioFile


[docs]class Database(bob.bio.base.database.FileListBioDatabase): """Wrapper class for the subVoxforge database for speaker recognition (http://www.voxforge.org/). this class defines a simple protocol for training, dev and and by splitting the audio files of the database in three main parts. """ def __init__(self, original_directory=None, original_extension=None): # call base class constructor from pkg_resources import resource_filename folder = resource_filename(__name__, 'lists') super(Database, self).__init__(folder, 'voxforge', bio_file_class=AudioBioFile, original_directory=original_directory, original_extension=original_extension)