mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-08 09:32:20 +00:00
Update doc to add a link to Nadira Povey's YouTube channel. (#492)
* Update doc to add a link to Nadira Povey's YouTube channel. * fix a typo
This commit is contained in:
parent
116d0cf26d
commit
d99796898c
65
.github/workflows/build-doc.yml
vendored
Normal file
65
.github/workflows/build-doc.yml
vendored
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
# Copyright 2022 Xiaomi Corp. (author: Fangjun Kuang)
|
||||||
|
|
||||||
|
# See ../../LICENSE for clarification regarding multiple authors
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
# refer to https://github.com/actions/starter-workflows/pull/47/files
|
||||||
|
|
||||||
|
# You can access it at https://k2-fsa.github.io/icefall/
|
||||||
|
name: Generate doc
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
- doc
|
||||||
|
pull_request:
|
||||||
|
types: [labeled]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-doc:
|
||||||
|
if: github.event.label.name == 'doc' || github.event_name == 'push'
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest]
|
||||||
|
python-version: ["3.8"]
|
||||||
|
steps:
|
||||||
|
# refer to https://github.com/actions/checkout
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Setup Python ${{ matrix.python-version }}
|
||||||
|
uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python-version }}
|
||||||
|
|
||||||
|
- name: Display Python version
|
||||||
|
run: python -c "import sys; print(sys.version)"
|
||||||
|
|
||||||
|
- name: Build doc
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
cd docs
|
||||||
|
python3 -m pip install -r ./requirements.txt
|
||||||
|
make html
|
||||||
|
touch build/html/.nojekyll
|
||||||
|
|
||||||
|
- name: Deploy
|
||||||
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
publish_dir: ./docs/build/html
|
||||||
|
publish_branch: gh-pages
|
@ -10,6 +10,10 @@ using <https://github.com/k2-fsa/k2>.
|
|||||||
You can use <https://github.com/k2-fsa/sherpa> to deploy models
|
You can use <https://github.com/k2-fsa/sherpa> to deploy models
|
||||||
trained with icefall.
|
trained with icefall.
|
||||||
|
|
||||||
|
You can try pre-trained models from within your browser without the need
|
||||||
|
to download or install anything by visiting <https://huggingface.co/spaces/k2-fsa/automatic-speech-recognition>
|
||||||
|
See <https://k2-fsa.github.io/icefall/huggingface/spaces.html> for more details.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
Please refer to <https://icefall.readthedocs.io/en/latest/installation/index.html>
|
Please refer to <https://icefall.readthedocs.io/en/latest/installation/index.html>
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
sphinx_rtd_theme
|
sphinx_rtd_theme
|
||||||
sphinx
|
sphinx
|
||||||
|
sphinxcontrib-youtube==1.1.0
|
||||||
|
@ -32,8 +32,9 @@ release = "0.1"
|
|||||||
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
||||||
# ones.
|
# ones.
|
||||||
extensions = [
|
extensions = [
|
||||||
"sphinx_rtd_theme",
|
|
||||||
"sphinx.ext.todo",
|
"sphinx.ext.todo",
|
||||||
|
"sphinx_rtd_theme",
|
||||||
|
"sphinxcontrib.youtube",
|
||||||
]
|
]
|
||||||
|
|
||||||
# Add any paths that contain templates here, relative to this directory.
|
# Add any paths that contain templates here, relative to this directory.
|
||||||
|
13
docs/source/huggingface/index.rst
Normal file
13
docs/source/huggingface/index.rst
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
Huggingface
|
||||||
|
===========
|
||||||
|
|
||||||
|
This section describes how to find pre-trained models.
|
||||||
|
It also demonstrates how to try them from within your browser
|
||||||
|
without installing anything by using
|
||||||
|
`Huggingface spaces <https://huggingface.co/spaces/k2-fsa/automatic-speech-recognition>`_.
|
||||||
|
|
||||||
|
.. toctree::
|
||||||
|
:maxdepth: 2
|
||||||
|
|
||||||
|
pretrained-models
|
||||||
|
spaces
|
BIN
docs/source/huggingface/pic/hugging-face-sherpa-2.png
Normal file
BIN
docs/source/huggingface/pic/hugging-face-sherpa-2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 455 KiB |
BIN
docs/source/huggingface/pic/hugging-face-sherpa-3.png
Normal file
BIN
docs/source/huggingface/pic/hugging-face-sherpa-3.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 392 KiB |
BIN
docs/source/huggingface/pic/hugging-face-sherpa.png
Normal file
BIN
docs/source/huggingface/pic/hugging-face-sherpa.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 426 KiB |
17
docs/source/huggingface/pretrained-models.rst
Normal file
17
docs/source/huggingface/pretrained-models.rst
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
Pre-trained models
|
||||||
|
==================
|
||||||
|
|
||||||
|
We have uploaded pre-trained models for all recipes in ``icefall``
|
||||||
|
to `<https://huggingface.co/>`_.
|
||||||
|
|
||||||
|
You can find them by visiting the following link:
|
||||||
|
|
||||||
|
`<https://huggingface.co/models?search=icefall>`_.
|
||||||
|
|
||||||
|
You can also find links of pre-trained models for a specific recipe
|
||||||
|
by looking at the corresponding ``RESULTS.md``. For instance:
|
||||||
|
|
||||||
|
- `<https://github.com/k2-fsa/icefall/blob/master/egs/librispeech/ASR/RESULTS.md>`_
|
||||||
|
- `<https://github.com/k2-fsa/icefall/blob/master/egs/aishell/ASR/RESULTS.md>`_
|
||||||
|
- `<https://github.com/k2-fsa/icefall/blob/master/egs/gigaspeech/ASR/RESULTS.md>`_
|
||||||
|
- `<https://github.com/k2-fsa/icefall/blob/master/egs/wenetspeech/ASR/RESULTS.md>`_
|
65
docs/source/huggingface/spaces.rst
Normal file
65
docs/source/huggingface/spaces.rst
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
Huggingface spaces
|
||||||
|
==================
|
||||||
|
|
||||||
|
We have integrated the server framework
|
||||||
|
`sherpa <http://github.com/k2-fsa/sherpa>`_
|
||||||
|
with `Huggingface spaces <https://huggingface.co/spaces/k2-fsa/automatic-speech-recognition>`_
|
||||||
|
so that you can try pre-trained models from within your browser
|
||||||
|
without the need to download or install anything.
|
||||||
|
|
||||||
|
All you need is a browser, which can be run on Windows, macOS, Linux, or even on your
|
||||||
|
iPad and your phone.
|
||||||
|
|
||||||
|
Start your browser and visit the following address:
|
||||||
|
|
||||||
|
`<https://huggingface.co/spaces/k2-fsa/automatic-speech-recognition>`_
|
||||||
|
|
||||||
|
and you will see a page like the following screenshot:
|
||||||
|
|
||||||
|
.. image:: ./pic/hugging-face-sherpa.png
|
||||||
|
:alt: screenshot of `<https://huggingface.co/spaces/k2-fsa/automatic-speech-recognition>`_
|
||||||
|
:target: https://huggingface.co/spaces/k2-fsa/automatic-speech-recognition
|
||||||
|
|
||||||
|
You can:
|
||||||
|
|
||||||
|
1. Select a language for recognition. Currently, we provide pre-trained models
|
||||||
|
from ``icefall`` for the following languages: ``Chinese``, ``English``, and
|
||||||
|
``Chinese+English``.
|
||||||
|
2. After selecting the target language, you can select a pre-trained model
|
||||||
|
corresponding to the language.
|
||||||
|
3. Select the decoding method. Currently, it provides ``greedy search``
|
||||||
|
and ``modified_beam_search``.
|
||||||
|
4. If you selected ``modified_beam_search``, you can choose the number of
|
||||||
|
active paths during the search.
|
||||||
|
5. Either upload a file or record your speech for recognition.
|
||||||
|
6. Click the button ``Submit for recognition``.
|
||||||
|
7. Wait for a moment and you will get the recognition results.
|
||||||
|
|
||||||
|
The following screenshot shows an example when selecting ``Chinese+English``:
|
||||||
|
|
||||||
|
.. image:: ./pic/hugging-face-sherpa-3.png
|
||||||
|
:alt: screenshot of `<https://huggingface.co/spaces/k2-fsa/automatic-speech-recognition>`_
|
||||||
|
:target: https://huggingface.co/spaces/k2-fsa/automatic-speech-recognition
|
||||||
|
|
||||||
|
|
||||||
|
In the bottom part of the page, you can find a table of examples. You can click
|
||||||
|
one of them and then click ``Submit for recognition``.
|
||||||
|
|
||||||
|
.. image:: ./pic/hugging-face-sherpa-2.png
|
||||||
|
:alt: screenshot of `<https://huggingface.co/spaces/k2-fsa/automatic-speech-recognition>`_
|
||||||
|
:target: https://huggingface.co/spaces/k2-fsa/automatic-speech-recognition
|
||||||
|
|
||||||
|
YouTube Video
|
||||||
|
-------------
|
||||||
|
|
||||||
|
We provide the following YouTube video demonstrating how to use
|
||||||
|
`<https://huggingface.co/spaces/k2-fsa/automatic-speech-recognition>`_.
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
To get the latest news of `next-gen Kaldi <https://github.com/k2-fsa>`_, please subscribe
|
||||||
|
the following YouTube channel by `Nadira Povey <https://www.youtube.com/channel/UC_VaumpkmINz1pNkFXAN9mw>`_:
|
||||||
|
|
||||||
|
`<https://www.youtube.com/channel/UC_VaumpkmINz1pNkFXAN9mw>`_
|
||||||
|
|
||||||
|
.. youtube:: ElN3r9dkKE4
|
@ -23,3 +23,4 @@ speech recognition recipes using `k2 <https://github.com/k2-fsa/k2>`_.
|
|||||||
installation/index
|
installation/index
|
||||||
recipes/index
|
recipes/index
|
||||||
contributing/index
|
contributing/index
|
||||||
|
huggingface/index
|
||||||
|
@ -474,3 +474,19 @@ The decoding log is:
|
|||||||
**Congratulations!** You have successfully setup the environment and have run the first recipe in ``icefall``.
|
**Congratulations!** You have successfully setup the environment and have run the first recipe in ``icefall``.
|
||||||
|
|
||||||
Have fun with ``icefall``!
|
Have fun with ``icefall``!
|
||||||
|
|
||||||
|
YouTube Video
|
||||||
|
-------------
|
||||||
|
|
||||||
|
We provide the following YouTube video showing how to install ``icefall``.
|
||||||
|
It also shows how to debug various problems that you may encounter while
|
||||||
|
using ``icefall``.
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
To get the latest news of `next-gen Kaldi <https://github.com/k2-fsa>`_, please subscribe
|
||||||
|
the following YouTube channel by `Nadira Povey <https://www.youtube.com/channel/UC_VaumpkmINz1pNkFXAN9mw>`_:
|
||||||
|
|
||||||
|
`<https://www.youtube.com/channel/UC_VaumpkmINz1pNkFXAN9mw>`_
|
||||||
|
|
||||||
|
.. youtube:: LVmrBD0tLfE
|
||||||
|
@ -70,6 +70,17 @@ To run stage 2 to stage 5, use:
|
|||||||
All generated files by ``./prepare.sh``, e.g., features, lexicon, etc,
|
All generated files by ``./prepare.sh``, e.g., features, lexicon, etc,
|
||||||
are saved in ``./data`` directory.
|
are saved in ``./data`` directory.
|
||||||
|
|
||||||
|
We provide the following YouTube video showing how to run ``./prepare.sh``.
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
To get the latest news of `next-gen Kaldi <https://github.com/k2-fsa>`_, please subscribe
|
||||||
|
the following YouTube channel by `Nadira Povey <https://www.youtube.com/channel/UC_VaumpkmINz1pNkFXAN9mw>`_:
|
||||||
|
|
||||||
|
`<https://www.youtube.com/channel/UC_VaumpkmINz1pNkFXAN9mw>`_
|
||||||
|
|
||||||
|
.. youtube:: ofEIoJL-mGM
|
||||||
|
|
||||||
|
|
||||||
Training
|
Training
|
||||||
--------
|
--------
|
||||||
|
@ -45,6 +45,16 @@ To run stage 2 to stage 5, use:
|
|||||||
|
|
||||||
$ ./prepare.sh --stage 2 --stop-stage 5
|
$ ./prepare.sh --stage 2 --stop-stage 5
|
||||||
|
|
||||||
|
We provide the following YouTube video showing how to run ``./prepare.sh``.
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
To get the latest news of `next-gen Kaldi <https://github.com/k2-fsa>`_, please subscribe
|
||||||
|
the following YouTube channel by `Nadira Povey <https://www.youtube.com/channel/UC_VaumpkmINz1pNkFXAN9mw>`_:
|
||||||
|
|
||||||
|
`<https://www.youtube.com/channel/UC_VaumpkmINz1pNkFXAN9mw>`_
|
||||||
|
|
||||||
|
.. youtube:: ofEIoJL-mGM
|
||||||
|
|
||||||
Training
|
Training
|
||||||
--------
|
--------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user