Skip to content
Snippets Groups Projects
Commit a033ac3e authored by Amir Mohammadi's avatar Amir Mohammadi
Browse files

remove traces of voxforge, please install bob.db.voxforge to use voxforge

parent 61bec4a8
Branches
Tags
1 merge request!24Fix the filelist db interfaces
Pipeline #
include README.rst bootstrap-buildout.py buildout.cfg develop.cfg COPYING version.txt requirements.txt databases.txt
include README.rst bootstrap-buildout.py buildout.cfg develop.cfg COPYING version.txt requirements.txt
recursive-include doc *.py *.rst
recursive-include bob/bio/spear/test/data *.hdf5 *.wav
recursive-include bob/bio/spear/config/database *.py *.lst
......@@ -21,7 +21,6 @@
from .database import AudioBioFile
from .mobio import MobioBioDatabase
from .voxforge import VoxforgeBioDatabase
from .asvspoof import ASVspoofBioDatabase
from .avspoof import AVspoofBioDatabase
from .voicepa import VoicePABioDatabase
......@@ -43,7 +42,6 @@ def __appropriate__(*args):
__appropriate__(
AudioBioFile,
MobioBioDatabase,
VoxforgeBioDatabase,
ASVspoofBioDatabase,
AVspoofBioDatabase,
VoicePABioDatabase,
......
......@@ -3,10 +3,6 @@
# Tiago de Freitas Pereira <tiago.pereira@idiap.ch>
# Wed 20 July 14:43:22 CEST 2016
"""
Verification API for bob.db.voxforge
"""
from bob.bio.base.database.file import BioFile
import scipy
import numpy
......@@ -20,10 +16,8 @@ class AudioBioFile(BioFile):
"""
super(AudioBioFile, self).__init__(client_id=client_id, path=path, file_id=file_id)
def load(self, directory=None, extension='.wav'):
def load(self, directory=None, extension='.wav'):
rate, audio = scipy.io.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
data = numpy.cast['float'](audio)
return rate, data
bob.db.voxforge
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment