Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.kaldi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.kaldi
Commits
15bd9bb1
There was a problem fetching the pipeline summary.
Commit
15bd9bb1
authored
8 years ago
by
Amir Mohammadi
Browse files
Options
Downloads
Patches
Plain Diff
Fix docs
parent
f75a0030
No related branches found
No related tags found
1 merge request
!1
Add documentation
Pipeline
#
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.rst
+10
-13
10 additions, 13 deletions
README.rst
doc/index.rst
+13
-13
13 additions, 13 deletions
doc/index.rst
with
23 additions
and
26 deletions
README.rst
+
10
−
13
View file @
15bd9bb1
...
@@ -21,25 +21,22 @@
...
@@ -21,25 +21,22 @@
===========================
===========================
This package provides pythonic bindings for Kaldi_ functionality so it can be
This package provides pythonic bindings for Kaldi_ functionality so it can be
se
e
mlessly integrated with Python-based workflows. It is a part fo the signal-
processing and machine learning toolbox
se
a
mlessly integrated with Python-based workflows. It is a part fo the signal-
Bob_.
processing and machine learning toolbox
Bob_.
Installation
Installation
------------
------------
To install the package, install firt bob, and then install the bob.kaldi package:
This package depends on both Bob_ and Kaldi_. To install Bob_ follow our
installation_ instructions. Kaldi_ is also bundled in our conda channnels which
means you can install Kaldi_ using conda easily too. After you have installed
Bob_, please follow these instructions to install Kaldi_ too.
$ conda install bob kaldi
# BOB_ENVIRONMENT is the name of your conda enviroment.
$ source activate BOB_ENVIRONMENT
$ conda install kaldi
$ pip install bob.kaldi
$ pip install bob.kaldi
To be able to work properly, some dependent packages are required to be installed.
Please make sure that you have read the `Dependencies
<https://github.com/idiap/bob/wiki/Dependencies>`_ for your operating system.
This package also requires that Kaldi_ is properly installed alongside the
Python interpreter you're using, under the directory ``<PREFIX>/lib/kaldi``,
along with all necessary scripts and compiled binaries.
Documentation
Documentation
...
@@ -48,7 +45,7 @@ Documentation
...
@@ -48,7 +45,7 @@ Documentation
For further documentation on this package, please read the `Stable Version
For further documentation on this package, please read the `Stable Version
<http://pythonhosted.org/bob.kaldi/index.html>`_ or the `Latest Version
<http://pythonhosted.org/bob.kaldi/index.html>`_ or the `Latest Version
<https://www.idiap.ch/software/bob/docs/latest/bioidiap/bob.kaldi/master/index.html>`_
<https://www.idiap.ch/software/bob/docs/latest/bioidiap/bob.kaldi/master/index.html>`_
of the documentation. For a list of tutorials on this or the other packages o
b
of the documentation. For a list of tutorials on this or the other packages o
f
Bob_, or information on submitting issues, asking questions and starting
Bob_, or information on submitting issues, asking questions and starting
discussions, please visit its website.
discussions, please visit its website.
...
...
This diff is collapsed.
Click to expand it.
doc/index.rst
+
13
−
13
View file @
15bd9bb1
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
import bob.io.audio
import bob.io.audio
import tempfile
import tempfile
import os
import os
.. _bob.kaldi:
.. _bob.kaldi:
...
@@ -48,14 +48,14 @@ MFCC Extraction
...
@@ -48,14 +48,14 @@ MFCC Extraction
---------------
---------------
Two functions are implemented to extract MFCC features
Two functions are implemented to extract MFCC features
`bob.kaldi.mfcc` and `bob.kaldi.mfcc_from_path`. The former function
:py:any:
`bob.kaldi.mfcc` and
:py:any:
`bob.kaldi.mfcc_from_path`. The former function
accepts the speech samples as `numpy.ndarray`, whereas the latter the
accepts the speech samples as
:py:any:
`numpy.ndarray`, whereas the latter the
filename as `str`, returning the features as `numpy.ndarray`:
filename as
:py:any:
`str`, returning the features as
:py:any:
`numpy.ndarray`:
1. `bob.kaldi.mfcc`
1. `bob.kaldi.mfcc`
.. doctest::
.. doctest::
>>> sample = pkg_resources.resource_filename('bob.kaldi', 'test/data/sample16k.wav')
>>> sample = pkg_resources.resource_filename('bob.kaldi', 'test/data/sample16k.wav')
>>> data = bob.io.audio.reader(sample)
>>> data = bob.io.audio.reader(sample)
>>> feat = bob.kaldi.mfcc(data.load()[0], data.rate, normalization=False)
>>> feat = bob.kaldi.mfcc(data.load()[0], data.rate, normalization=False)
...
@@ -63,20 +63,20 @@ filename as `str`, returning the features as `numpy.ndarray`:
...
@@ -63,20 +63,20 @@ filename as `str`, returning the features as `numpy.ndarray`:
(317, 39)
(317, 39)
2. `bob.kaldi.mfcc_from_path`
2. `bob.kaldi.mfcc_from_path`
.. doctest::
.. doctest::
>>> sample = pkg_resources.resource_filename('bob.kaldi', 'test/data/sample16k.wav')
>>> sample = pkg_resources.resource_filename('bob.kaldi', 'test/data/sample16k.wav')
>>> feat = bob.kaldi.mfcc_from_path(sample)
>>> feat = bob.kaldi.mfcc_from_path(sample)
>>> print (feat.shape)
>>> print (feat.shape)
(317, 39)
(317, 39)
====================
====================
Speaker recognition
Speaker recognition
====================
====================
UBM training and evaluation
UBM training and evaluation
---------------------------
---------------------------
...
@@ -105,13 +105,13 @@ Following guide describes how to run whole speaker recognition experiments:
...
@@ -105,13 +105,13 @@ Following guide describes how to run whole speaker recognition experiments:
1. To run the UBM-GMM with MAP adaptation speaker recognition experiment, run:
1. To run the UBM-GMM with MAP adaptation speaker recognition experiment, run:
.. code-block:: sh
.. code-block:: sh
verify.py -d 'mobio-audio-male' -p 'energy-2gauss' -e 'mfcc-kaldi' -a 'gmm-kaldi' -s exp-gmm-kaldi --groups {dev,eval} -R '/your/work/directory/' -T '/your/temp/directory' -vv
verify.py -d 'mobio-audio-male' -p 'energy-2gauss' -e 'mfcc-kaldi' -a 'gmm-kaldi' -s exp-gmm-kaldi --groups {dev,eval} -R '/your/work/directory/' -T '/your/temp/directory' -vv
2. To run the ivector+plda speaker recognition experiment, run:
2. To run the ivector+plda speaker recognition experiment, run:
.. code-block:: sh
.. code-block:: sh
verify.py -d 'mobio-audio-male' -p 'energy-2gauss' -e 'mfcc-kaldi' -a 'ivector-plda-kaldi' -s exp-ivector-plda-kaldi --groups {dev,eval} -R '/your/work/directory/' -T '/your/temp/directory' -vv
verify.py -d 'mobio-audio-male' -p 'energy-2gauss' -e 'mfcc-kaldi' -a 'ivector-plda-kaldi' -s exp-ivector-plda-kaldi --groups {dev,eval} -R '/your/work/directory/' -T '/your/temp/directory' -vv
3. Results:
3. Results:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment