Coverage for src/bob/bio/spear/config/database/voxforge.py: 100%
6 statements
« prev ^ index » next coverage.py v7.3.2, created at 2023-12-06 22:04 +0100
« prev ^ index » next coverage.py v7.3.2, created at 2023-12-06 22:04 +0100
1#!/usr/bin/env python
2# @author: Yannick Dayer <yannick.dayer@idiap.ch>
3# @date: Wed 16 Jun 2021 17:20:16 UTC+02
5"""VoxForge CSV database interface default configuration
7VoxForge is an open speech dataset that was set up to collect transcribed speech for
8use with Free and Open Source Speech Recognition Engines. (http://www.voxforge.org/)
10This database interface uses a subset of the full dataset used for speaker recognition.
11The list of data files in the subset is defined by a CSV file for each protocol. Use
12the ``bob db voxforge-download`` command to retrieve those data files if needed, and
13set the config with the correct path with ``bob config set bob.db.voxforge.directory``.
15The protocol definition files are available at
16https://www.idiap.ch/software/bob/data/bob/bob.bio.spear/ and downloaded automatically
17(by default into ``bob_data_folder`` which is configurable with ``bob config``).
20Usage
21-----
23Feed this file (also defined as a ``voxforge`` resource) to ``bob bio pipelines`` as
24configuration::
26 $ bob bio pipeline simple voxforge <pipeline_name> -vv
27"""
29from bob.bio.spear.database import VoxforgeDatabase
31default_protocol = "Default"
33if "protocol" not in locals():
34 protocol = default_protocol
36database = VoxforgeDatabase(protocol=protocol)