File size: 871 Bytes
d596074
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Two approaches
==============

Two approaches for FST-based forced alignment will be described:

  - `Kaldi`_-based
  - `k2`_-based

Note that the `Kaldi`_-based approach does not depend on `Kaldi`_ at all.
That is, you don't need to install `Kaldi`_ in order to use it. Instead,
we use `kaldi-decoder`_, which has ported the C++ decoding code from `Kaldi`_
without depending on it.

Differences between the two approaches
--------------------------------------

The following table compares the differences between the two approaches.

.. list-table::

 * - Features
   - `Kaldi`_-based
   - `k2`_-based
 * - Support CUDA
   - No
   - Yes
 * - Support CPU
   - Yes
   - Yes
 * - Support batch processing
   - No
   - Yes on CUDA; No on CPU
 * - Support streaming models
   - Yes
   - No
 * - Support C++ APIs
   - Yes
   - Yes
 * - Support Python APIs
   - Yes
   - Yes