示例#1
0
def test_timit():
    database = SpearBioDatabase("timit", protocol="2", data_path="dummy/")

    _check_database(
        database,
        n_train=3696,
        n_dev_references=168,
        n_dev_references_samples=8,
        n_dev_probes=336,
        n_dev_probes_samples=1,
    )
示例#2
0
def test_mobio_female():
    database = SpearBioDatabase("mobio", protocol="female", data_path="dummy/")

    _check_database(
        database,
        n_train=2496,
        n_dev_references=18,
        n_dev_references_samples=5,
        n_dev_probes=1890,
        n_dev_probes_samples=1,
        n_eval_references=20,
        n_eval_references_samples=5,
        n_eval_probes=2100,
        n_eval_probes_samples=1,
    )
示例#3
0
def test_mobio_male():
    database = SpearBioDatabase("mobio", protocol="male", data_path="dummy/")

    _check_database(
        database,
        n_train=7104,
        n_dev_references=24,
        n_dev_references_samples=5,
        n_dev_probes=2520,
        n_dev_probes_samples=1,
        n_eval_references=38,
        n_eval_references_samples=5,
        n_eval_probes=3990,
        n_eval_probes_samples=1,
    )
示例#4
0
def test_nist_sre04to16():
    database = SpearBioDatabase("nist_sre04to16",
                                protocol="core",
                                data_path="dummy/")

    _check_database(
        database,
        n_train=71728,
        n_dev_references=80,
        n_dev_references_samples=None,  # Variable sample count
        n_dev_probes=1207,
        n_dev_probes_samples=1,
        n_eval_references=802,
        n_eval_references_samples=None,  # Variable sample count
        n_eval_probes=9294,
        n_eval_probes_samples=1,
    )
示例#5
0
def test_voicepa_licit():
    database = SpearBioDatabase("voicepa",
                                protocol="grandtest-licit",
                                data_path="dummy/")

    _check_database(
        database,
        n_train=4973,
        n_dev_references=14,
        n_dev_references_samples=None,  # Variable sample count
        n_dev_probes=4225,
        n_dev_probes_samples=1,
        n_eval_references=16,
        n_eval_references_samples=None,  # Variable sample count
        n_eval_probes=4708,
        n_eval_probes_samples=1,
    )
示例#6
0
def test_voxforge():
    database = SpearBioDatabase("voxforge",
                                protocol="Default",
                                data_path="dummy/")

    _check_database(
        database,
        n_train=3148,
        n_dev_references=10,
        n_dev_references_samples=None,  # Variable sample count
        n_dev_probes=300,
        n_dev_probes_samples=1,
        n_eval_references=10,
        n_eval_references_samples=None,  # Variable sample count
        n_eval_probes=300,
        n_eval_probes_samples=1,
    )
示例#7
0
def test_voicepa_spoof():
    database = SpearBioDatabase("voicepa",
                                protocol="grandtest-spoof",
                                data_path="dummy/")

    _check_database(
        database,
        n_train=115730,
        n_dev_references=14,
        n_dev_references_samples=None,  # Variable sample count
        n_dev_probes=115740,
        n_dev_probes_samples=1,
        n_eval_references=16,
        n_eval_references_samples=None,  # Variable sample count
        n_eval_probes=129988,
        n_eval_probes_samples=1,
    )
示例#8
0
def test_avspoof_spoof():
    database = SpearBioDatabase("avspoof",
                                protocol="spoof",
                                data_path="dummy/")

    _check_database(
        database,
        n_train=56470,
        n_dev_references=14,
        n_dev_references_samples=None,  # Variable sample count
        n_dev_probes=56470,
        n_dev_probes_samples=1,
        n_eval_references=16,
        n_eval_references_samples=None,  # Variable sample count
        n_eval_probes=63380,
        n_eval_probes_samples=1,
    )
示例#9
0
def test_asvspoof_spoof():
    database = SpearBioDatabase("asvspoof",
                                protocol="spoof",
                                data_path="dummy/")

    _check_database(
        database,
        n_train=None,
        n_dev_references=20,
        n_dev_references_samples=5,
        n_dev_probes=28500,
        n_dev_probes_samples=1,
        n_eval_references=26,
        n_eval_references_samples=5,
        n_eval_probes=104000,
        n_eval_probes_samples=1,
    )
示例#10
0
Bob does not provide the data files for its databases.
After downloading the NIST-SRE database files, configure their location using::

    $ bob config set bob.db.nist_sre04to16.directory /path/to/nist-sre-root/

This folder (pointed to by the ``bob config`` command) should contain the following
subfolders:
    - ``nist_sre/SRE16``: used for dev and eval groups for enrollment and scoring.
    - ``Switchboard_2_Phase_II/dbase``: used for training.
    - ``Switchboard_2_Phase_III/dbase``: used for training.
    - ``Switchboard_Cellular_Part1/dbase``: used for training.
    - ``Switchboard_Cellular_Part2/dbase``: used for training.
    - ``nist_sre/SRE04``: used for training.
    - ``nist_sre/SRE05``: used for training.
    - ``nist_sre/SRE06``: used for training.
    - ``nist_sre/SRE08``: used for training.
    - ``nist_sre/SRE10``: used for training.
"""

from bob.bio.spear.database import SpearBioDatabase

if "protocol" not in locals():
    protocol = "core"

database = SpearBioDatabase(
    "nist_sre04to16",
    protocol=protocol,
    data_ext=".sph",
    force_sample_rate=16000,
)
示例#11
0
#!/usr/bin/env python
# @author: Yannick Dayer <*****@*****.**>
# @date: Mon 13 Feb 2022 16:34:27 UTC+01
"""Mini Subset of VoxForge CSV database interface default configuration

VoxForge is an open speech dataset that was set up to collect transcribed speech for
use with Free and Open Source Speech Recognition Engines. (http://www.voxforge.org/)

This database interface uses a subset of the full dataset used for speaker recognition.
The list of data files in the subset is defined by a CSV file for each protocol. Use
the ``bob db voxforge-download`` command to retrieve those data files if needed, and
set the config with the correct path with ``bob config set bob.db.voxforge.directory``.

The protocol definition files are available at
https://www.idiap.ch/software/bob/data/bob/bob.bio.spear/ and downloaded automatically
(by default into ``bob_data_folder`` which is configurable with ``bob config``).


Usage
-----

Feed this file (also defined as a ``mini-voxforge`` resource) to ``bob bio pipelines``
as configuration::

    $ bob bio pipeline simple mini-voxforge <pipeline_name> -vv
"""

from bob.bio.spear.database import SpearBioDatabase

database = SpearBioDatabase("voxforge", protocol="Mini")
示例#12
0
VoxForge is an open speech dataset that was set up to collect transcribed speech for
use with Free and Open Source Speech Recognition Engines. (http://www.voxforge.org/)

This database interface uses a subset of the full dataset used for speaker recognition.
The list of data files in the subset is defined by a CSV file for each protocol. Use
the ``bob db voxforge-download`` command to retrieve those data files if needed, and
set the config with the correct path with ``bob config set bob.db.voxforge.directory``.

The protocol definition files are available at
https://www.idiap.ch/software/bob/data/bob/bob.bio.spear/ and downloaded automatically
(by default into ``bob_data_folder`` which is configurable with ``bob config``).


Usage
-----

Feed this file (also defined as a ``voxforge`` resource) to ``bob bio pipelines`` as
configuration::

    $ bob bio pipeline simple voxforge <pipeline_name> -vv
"""

from bob.bio.spear.database import SpearBioDatabase

default_protocol = "Default"

if "protocol" not in locals():
    protocol = default_protocol

database = SpearBioDatabase("voxforge", protocol=protocol)
示例#13
0
#!/usr/bin/env python

from bob.bio.spear.database import SpearBioDatabase

database_licit = SpearBioDatabase(
    "voicepa",
    protocol="grandtest-licit",
)

database_spoof = SpearBioDatabase(
    "voicepa",
    protocol="grandtest-spoof",
)
示例#14
0
#!/usr/bin/env python

from bob.bio.spear.database import SpearBioDatabase

database_licit = SpearBioDatabase(
    "asvspoof2017",
    protocol="competition-licit",
)

database_spoof = SpearBioDatabase(
    "asvspoof2017",
    protocol="competition-spoof",
)
#!/usr/bin/env python

from bob.bio.spear.database import SpearBioDatabase

database = SpearBioDatabase("mobio", protocol="female")
示例#16
0
#!/usr/bin/env python

from bob.bio.spear.database import SpearBioDatabase

default_protocol = "2"

if "protocol" not in locals():
    protocol = default_protocol

database = SpearBioDatabase(
    "timit",
    protocol=protocol,
)
示例#17
0
#!/usr/bin/env python
# @author: Yannick Dayer <*****@*****.**>
# @date: Fri 24 Jun 2022 17:55:05 UTC+02

"""VoxCeleb CSV database interface default configuration"""

from bob.bio.spear.database import SpearBioDatabase

database = SpearBioDatabase(
    "voxceleb",
    protocol="voxceleb1",
)
示例#18
0
#!/usr/bin/env python

from bob.bio.spear.database import SpearBioDatabase

database_licit = SpearBioDatabase(
    "avspoof",
    protocol="licit",
)

database_spoof = SpearBioDatabase(
    "avspoof",
    protocol="spoof",
)