# Path: bob/bio/spear/database/database.py
# class AudioBioFile(BioFile):
#     def __init__(self, client_id, path, file_id, **kwargs):
#         """
#         Initializes this File object with an File equivalent for
#         VoxForge database.
#         """
#         super(AudioBioFile, self).__init__(
#             client_id=client_id, path=path, file_id=file_id, **kwargs
#         )
# 
#     def load(self, directory=None, extension=".wav"):
#         rate, audio = wavfile.read(self.make_path(directory, extension))
#         # We consider there is only 1 channel in the audio file => data[0]
#         data = numpy.cast["float"](audio)
#         return rate, data


from bob.bio.base.database import ZTBioDatabase
from .database import AudioBioFile
        from bob.db.mobio.query import Database as LowLevelDatabase
    def tmodel_ids_with_protocol(self, protocol=None, groups=None, **kwargs):
        return self._db.tmodel_ids(protocol=protocol, groups=groups, **kwargs)

    def objects(
        self, groups=None, protocol=None, purposes=None, model_ids=None, **kwargs
    ):
        retval = self._db.objects(
            groups=groups,
            protocol=protocol,
            purposes=purposes,
            model_ids=model_ids,
            **kwargs
        )
        return [
            AudioBioFile(client_id=f.client_id, path=f.path, file_id=f.id)
            for f in retval
        ]

    def tobjects(self, groups=None, protocol=None, model_ids=None, **kwargs):
        retval = self._db.tobjects(
            groups=groups, protocol=protocol, model_ids=model_ids, **kwargs
        )
        return [
            AudioBioFile(client_id=f.client_id, path=f.path, file_id=f.id)
            for f in retval
        ]

    def zobjects(self, groups=None, protocol=None, **kwargs):
        retval = self._db.zobjects(groups=groups, protocol=protocol, **kwargs)
        return [

# Path: bob/bio/spear/database/database.py
# class AudioBioFile(BioFile):
#     def __init__(self, client_id, path, file_id, **kwargs):
#         """
#         Initializes this File object with an File equivalent for
#         VoxForge database.
#         """
#         super(AudioBioFile, self).__init__(
#             client_id=client_id, path=path, file_id=file_id, **kwargs
#         )
# 
#     def load(self, directory=None, extension=".wav"):
#         rate, audio = wavfile.read(self.make_path(directory, extension))
#         # We consider there is only 1 channel in the audio file => data[0]
#         data = numpy.cast["float"](audio)
#         return rate, data


# Path: bob/bio/spear/database/mobio.py
from bob.bio.base.database import ZTBioDatabase
from .database import AudioBioFile
        from bob.db.mobio.query import Database as LowLevelDatabase

    def tmodel_ids_with_protocol(self, protocol=None, groups=None, **kwargs):
        return self._db.tmodel_ids(protocol=protocol, groups=groups, **kwargs)

    def objects(
        self, groups=None, protocol=None, purposes=None, model_ids=None, **kwargs
    ):
        retval = self._db.objects(
            groups=groups,
            protocol=protocol,
            purposes=purposes,
            model_ids=model_ids,
            **kwargs
        )
        return [
            AudioBioFile(client_id=f.client_id, path=f.path, file_id=f.id)
            for f in retval
        ]

    def tobjects(self, groups=None, protocol=None, model_ids=None, **kwargs):
        retval = self._db.tobjects(
            groups=groups, protocol=protocol, model_ids=model_ids, **kwargs
        )
        return [
            AudioBioFile(client_id=f.client_id, path=f.path, file_id=f.id)
            for f in retval
        ]

    def zobjects(self, groups=None, protocol=None, **kwargs):
        retval = self._db.zobjects(groups=groups, protocol=protocol, **kwargs)
        return [

            AudioBioFile(client_id=f.client_id, path=f.path, file_id=f.id)