Skip to content

Commit

Permalink
remove traces of voxforge, please install bob.db.voxforge to use voxf…
Browse files Browse the repository at this point in the history
…orge
  • Loading branch information
183amir committed Dec 23, 2016
1 parent 61bec4a commit a033ac3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 13 deletions.
2 changes: 1 addition & 1 deletion MANIFEST.in
@@ -1,4 +1,4 @@
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
2 changes: 0 additions & 2 deletions bob/bio/spear/database/__init__.py
Expand Up @@ -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
Expand All @@ -43,7 +42,6 @@ def __appropriate__(*args):
__appropriate__(
AudioBioFile,
MobioBioDatabase,
VoxforgeBioDatabase,
ASVspoofBioDatabase,
AVspoofBioDatabase,
VoicePABioDatabase,
Expand Down
12 changes: 3 additions & 9 deletions bob/bio/spear/database/database.py
Expand Up @@ -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
Expand All @@ -20,10 +16,8 @@ def __init__(self, client_id, path, file_id):
"""
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
1 change: 0 additions & 1 deletion databases.txt

This file was deleted.

0 comments on commit a033ac3

Please sign in to comment.