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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
//! # Parakeet TDT
//!
//! NVIDIA's Parakeet TDT speech recognizer: a `FastConformer` encoder and a
//! token-and-duration transducer. `parakeet-tdt-0.6b-v3` is the reference
//! checkpoint; `FermionResearch`'s Phonon-2 is a re-quantized derivative with
//! the same architecture.
//!
//! - [`blocks`]: the model, [`ParakeetTdt`], built from a
//! [`ParakeetTdtConfig`]; its encoder is the shared
//! [`SubsampledEncoder`](crate::blocks::transformers::encoders::SubsampledEncoder)
//! a
//! [`ConformerEncoderConfig`](crate::blocks::transformers::encoders::conformer::ConformerEncoderConfig)
//! builds.
//! - [`ParakeetFrontEnd`]: the feature extractor, waveforms to normalized
//! log-mels, built from a [`ParakeetFrontEndConfig`]: `NeMo`'s
//! [`NemoMelFrontEnd`](crate::kits::speech::nemo::NemoMelFrontEnd) under its
//! defaults.
//! - [`TdtGreedyDecoder`]: greedy decoding of the transducer, batched, to
//! [`TdtHypothesis`] tokens with their frames.
//! - [`ParakeetVocabulary`]: the `SentencePiece` pieces, as a
//! [`Detokenizer`](crate::kits::support::tokens::Detokenizer) and as
//! transcripts.
//! - [`ParakeetConstruct`]: a loaded model with its front end and vocabulary,
//! and [`transcribe`](ParakeetConstruct::transcribe).
//! - [`ParakeetEngine`]: a construct as the
//! [`asr_driver`](crate::kits::speech::asr::driver) core's engine, over
//! [`ParakeetFeatures`], its front end streamed; a [`ParakeetStreamDriver`]
//! streams audio through it, under any
//! [`EmissionPolicy`](crate::kits::speech::asr::driver::EmissionPolicy).
//! - [`pretrained`] (features `store` and `cache`): the index of named
//! checkpoints, `fermion/phonon-2` the default, and the factory that loads
//! one into a construct. `read_phonon2_archive` (feature `store`) reads
//! Phonon-2's archive through the shared
//! [`fermion`](crate::data::formats::fermion) readers.
//! - [`weights`] (feature `store`): loading tensors named as `transformers`'
//! `ParakeetForTDT` state dict, the names every Parakeet checkpoint format
//! here is read under.
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
/// Parakeet's feature extractor: `NeMo`'s mel front end, whose defaults are
/// `parakeet-tdt-0.6b-v3`'s.
pub type ParakeetFrontEnd = crateNemoMelFrontEnd;
/// Config for [`ParakeetFrontEnd`]: `NeMo`'s, its defaults
/// `parakeet-tdt-0.6b-v3`'s.
pub type ParakeetFrontEndConfig = crateNemoMelFrontEndConfig;
/// Parakeet's front end, streamed.
pub type ParakeetFeatures = crateNemoMelFeatures;
pub use crateNemoMelFrontEndMeta as ParakeetFrontEndMeta;
pub use ;