Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/espnet/espnet
/ types & classes
Types & classes
1,556 in github.com/espnet/espnet
⨍
Functions
9,880
◇
Types & classes
1,556
↳
Endpoints
142
↓ 194 callers
Class
ClassChoices
Helper class to manage the options for variable objects and its configuration. Example: >>> class A: ... def __init__(self, foo=3):
espnet2/train/class_choices.py:9
↓ 65 callers
Class
LayerNorm
Layer normalization module. Args: nout (int): Output dim size. dim (int): Dimension to be normalized.
espnet2/legacy/nets/pytorch_backend/transformer/layer_norm.py:12
↓ 47 callers
Class
CTC
CTC module. Args: odim: dimension of outputs encoder_output_size: number of encoder projection units dropout_rate: dropou
espnet2/asr/ctc.py:9
↓ 47 callers
Class
ESPnetLightningModule
ESPnet3 LightningModule wrapper for model training and data integration. This wrapper keeps the common ESPnet3 model contract unchanged: ```
espnet3/components/modeling/lightning_module.py:28
↓ 43 callers
Class
ArgumentParser
Simple implementation of ArgumentParser supporting config file This class is originated from https://github.com/bw2/ConfigArgParse, but this
espnet2/utils/config_argparse.py:7
↓ 38 callers
Class
CommonCollateFn
Functor class of common_collate_fn()
espnet2/train/collate_fn.py:15
↓ 38 callers
Class
Reporter
Reporter class. Examples: >>> reporter = Reporter() >>> with reporter.observe('train') as sub_reporter: ... for batc
espnet2/train/reporter.py:273
↓ 35 callers
Class
TokenIDConverter
espnet2/text/token_id_converter.py:8
↓ 34 callers
Class
NOTE
espnet2/fileio/score_scp.py:21
↓ 33 callers
Class
DatadirWriter
Writer class to create kaldi like data directory. Examples: >>> with DatadirWriter("output") as writer: ... # output/sub.txt
espnet2/fileio/datadir_writer.py:8
↓ 30 callers
Class
ConformerEncoder
Conformer encoder module. Args: input_size (int): Input dimension. output_size (int): Dimension of attention. attention_h
espnet2/asr/encoder/conformer_encoder.py:53
↓ 24 callers
Class
Conv1d
Conv1d module with customized initialization.
espnet2/gan_tts/wavenet/residual_block.py:17
↓ 24 callers
Class
Encoder
Encoder module of Spectrogram prediction network. This is a module of encoder of Spectrogram prediction network in Singing Tacotron, which de
espnet2/svs/singing_tacotron/encoder.py:20
↓ 24 callers
Class
Hypothesis
Hypothesis data type.
espnet2/legacy/nets/beam_search.py:15
↓ 22 callers
Class
STFTEncoder
STFT encoder for speech enhancement and separation
espnet2/enh/encoder/stft_encoder.py:8
↓ 22 callers
Class
TransformerDecoder
espnet2/asr/decoder/transformer_decoder.py:393
↓ 20 callers
Class
BeamSearch
Beam search implementation.
espnet2/legacy/nets/beam_search.py:34
↓ 20 callers
Class
Hypothesis
Default hypothesis definition for Transducer search algorithms.
espnet2/asr/transducer/beam_search_transducer.py:22
↓ 20 callers
Class
MultiHeadedAttention
Multi-Head Attention layer inheriting SequenceModule. Comparing default MHA module in ESPnet, this module returns additional dummy state and
espnet2/asr/state_spaces/attention.py:12
↓ 19 callers
Class
DataOrganizer
Organizes training, validation, and test datasets into a unified interface. This class constructs combined datasets for training and validation,
espnet3/components/data/data_organizer.py:101
↓ 19 callers
Class
DummyMultiModel
test/espnet3/components/modeling/test_model_with_optim_scheduler.py:189
↓ 19 callers
Class
Stft
espnet2/layers/stft.py:12
↓ 18 callers
Class
CombinedDataset
Combines multiple datasets into a single unified dataset-like interface. This class supports seamless access to multiple datasets as if they were
espnet3/components/data/dataset.py:12
↓ 18 callers
Class
LengthBonus
Length bonus in beam search.
espnet2/legacy/nets/scorers/length_bonus.py:10
↓ 18 callers
Class
OpenAIWhisperTokenIDConverter
espnet2/text/whisper_token_id_converter.py:20
↓ 18 callers
Class
PITSolver
espnet2/enh/loss/wrappers/pit_solver.py:10
↓ 18 callers
Class
TransformerEncoder
Transformer encoder.
espnet2/asr/encoder/beats_encoder.py:464
↓ 17 callers
Class
BranchformerEncoder
Branchformer encoder module.
espnet2/asr/encoder/branchformer_encoder.py:296
↓ 17 callers
Class
DiscriminatorAdversarialLoss
Discriminator adversarial loss module.
espnet2/gan_tts/hifigan/loss.py:78
↓ 17 callers
Class
ESPnet3LightningTrainer
A wrapper around Lightning's Trainer to provide ESPnet3-specific integration. This trainer ensures compatibility with ESPnet's dataloader, callba
espnet3/components/trainers/trainer.py:32
↓ 17 callers
Class
GeneratorAdversarialLoss
Generator adversarial loss module.
espnet2/gan_tts/hifigan/loss.py:18
↓ 17 callers
Class
JointNetwork
Transducer joint network module. Args: output_size: Output size. encoder_size: Encoder output size. decoder_size: Decoder
espnet2/asr_transducer/joint_network.py:8
↓ 17 callers
Class
SingingScoreWriter
Writer class for 'score.scp' Examples: key1 /some/path/score.json key2 /some/path/score.json key3 /some/path/score.json
espnet2/fileio/score_scp.py:327
↓ 16 callers
Class
ESPnetDataset
Pytorch Dataset class for ESPNet. Examples: >>> dataset = ESPnetDataset([('wav.scp', 'input', 'sound'), ...
espnet2/train/dataset.py:442
↓ 16 callers
Class
ESPnetEnhancementModel
Speech enhancement or separation Frontend model
espnet2/enh/espnet_model.py:28
↓ 16 callers
Class
NpyScpWriter
Writer class for a scp file of numpy file. Examples: key1 /some/path/a.npy key2 /some/path/b.npy key3 /some/path/c.npy
espnet2/fileio/npy_scp.py:11
↓ 15 callers
Class
FeatureMatchLoss
Feature matching loss module.
espnet2/gan_tts/hifigan/loss.py:156
↓ 15 callers
Class
STFTDecoder
STFT decoder for speech enhancement and separation
espnet2/enh/decoder/stft_decoder.py:10
↓ 14 callers
Class
Conv2dSubsampling
Convolutional 2D subsampling (to 1/4 length). Args: idim (int): Input dimension. odim (int): Output dimension. dropout_ra
espnet2/legacy/nets/pytorch_backend/transformer/subsampling.py:386
↓ 14 callers
Class
MultiConvConformerEncoder
Multiconvformer encoder module. Link to the paper: https://arxiv.org/abs/2407.03718 Args: input_size (int): Input dimension.
espnet2/asr/encoder/multiconvformer_encoder.py:48
↓ 13 callers
Class
CommonPreprocessor
espnet2/train/preprocessor.py:138
↓ 13 callers
Class
Conv2DActNorm
Basic Conv2D + activation + instance norm building block.
espnet2/enh/layers/tcndenseunet.py:6
↓ 13 callers
Class
DataIteratorFactory
Factory for creating data iterators for SpeechLM training. This class manages batching, data sharding across GPUs, and provides DataLoader in
espnet2/speechlm/dataloader/iterator.py:21
↓ 13 callers
Class
DataLoaderBuilder
Builder class for constructing training and validation DataLoaders in ESPnet3. This class provides a unified interface for setting up PyTorch or
espnet3/components/data/dataloader.py:81
↓ 13 callers
Class
Phonemizer
Phonemizer module for various languages. This is wrapper module of https://github.com/bootphon/phonemizer. You can define various g2p modules
espnet2/text/phoneme_tokenizer.py:361
↓ 13 callers
Class
PositionalEncoding
Positional encoding. Args: d_model (int): Embedding dimension. dropout_rate (float): Dropout rate. max_len (int): Maximum
espnet2/legacy/nets/pytorch_backend/transformer/embedding.py:38
↓ 13 callers
Class
PositionwiseFeedForward
Positionwise feed forward layer. Args: idim (int): Input dimenstion. hidden_units (int): The number of hidden units. drop
espnet2/legacy/nets/pytorch_backend/transformer/positionwise_feed_forward.py:12
↓ 12 callers
Class
EBranchformerEncoder
E-Branchformer encoder module.
espnet2/asr/encoder/e_branchformer_encoder.py:186
↓ 12 callers
Class
IterableESPnetDataset
Pytorch Dataset class for ESPNet. Examples: >>> dataset = IterableESPnetDataset([('wav.scp', 'input', 'sound'), ...
espnet2/train/iterable_dataset.py:68
↓ 12 callers
Class
LinearDecoder
espnet2/asr/decoder/linear_decoder.py:16
↓ 12 callers
Class
SoundScpReader
Reader class for 'wav.scp'. Examples: wav.scp is a text file that looks like the following: key1 /some/path/a.wav key2 /
espnet2/fileio/sound_scp.py:81
↓ 12 callers
Class
Speech2Text
Speech2Text class Examples: >>> import soundfile >>> speech2text = Speech2Text("asr_config.yml", "asr.pth") >>> audio, ra
espnet2/bin/asr_inference.py:73
↓ 12 callers
Class
VITS
VITS module (generator + discriminator). This is a module of VITS described in `Conditional Variational Autoencoder with Adversarial Learning
espnet2/gan_svs/vits/vits.py:60
↓ 11 callers
Class
Conv2dSubsampling6
Convolutional 2D subsampling (to 1/6 length). Args: idim (int): Input dimension. odim (int): Output dimension. dropout_ra
espnet2/legacy/nets/pytorch_backend/transformer/subsampling.py:692
↓ 11 callers
Class
Conv2dSubsampling8
Convolutional 2D subsampling (to 1/8 length). Args: idim (int): Input dimension. odim (int): Output dimension. dropout_ra
espnet2/legacy/nets/pytorch_backend/transformer/subsampling.py:783
↓ 11 callers
Class
DiscreteAudioIO
Discrete audio I/O using combined codec and SSL tokenizers. This class handles audio encoding/decoding using both: 1. Codec tokens (acoustic/
espnet2/speechlm/model/speechlm/multimodal_io/audio.py:60
↓ 11 callers
Class
EBranchformerCTCEncoder
E-Branchformer encoder module. Compared to the original encoder in e_branchformer_encoder.py, this variant supports additional cross-attentio
espnet2/asr/encoder/e_branchformer_ctc_encoder.py:202
↓ 11 callers
Class
Hypothesis
Default hypothesis definition for Transducer search algorithms.
espnet2/asr/transducer/beam_search_transducer_streaming.py:23
↓ 11 callers
Class
PQMF
PQMF module. This module is based on `Near-perfect-reconstruction pseudo-QMF banks`_. .. _`Near-perfect-reconstruction pseudo-QMF banks`:
espnet2/gan_tts/melgan/pqmf.py:59
↓ 11 callers
Class
Postnet
Postnet module for Spectrogram prediction network. This is a module of Postnet in Spectrogram prediction network, which described in `Natural
espnet2/legacy/nets/pytorch_backend/tacotron2/decoder.py:149
↓ 11 callers
Class
RNN
RNN module. :param int idim: dimension of inputs :param int elayers: number of encoder layers :param int cdim: number of rnn units (resul
espnet2/legacy/nets/pytorch_backend/rnn/encoders.py:96
↓ 11 callers
Class
SoundScpWriter
Writer class for 'wav.scp' Args: outdir: scpfile: format: The output audio format multi_columns: Save multi chann
espnet2/fileio/sound_scp.py:166
↓ 11 callers
Class
TextReader
Dict-like text reader supporting plain and JSONL formats. Plain format: <id> <text content> JSONL format: {"id": "<id>", "text": "<text conte
espnet2/speechlm/dataloader/multimodal_loader/text_loader.py:113
↓ 11 callers
Class
TooShortUttError
Raised when the utt is too short for subsampling. Args: message (str): Message for error catch actual_size (int): the short size
espnet2/legacy/nets/pytorch_backend/transformer/subsampling.py:14
↓ 11 callers
Class
TransformerEncoder
Transformer encoder module. Args: input_size: input dim output_size: dimension of attention attention_heads: the number o
espnet2/asr/encoder/transformer_encoder.py:43
↓ 11 callers
Class
TransformerLM
espnet2/lm/transformer_lm.py:12
↓ 10 callers
Class
CTCPrefixScorer
Decoder interface wrapper for CTCPrefixScore.
espnet2/legacy/nets/scorers/ctc.py:10
↓ 10 callers
Class
Conv2dSubsampling2
Convolutional 2D subsampling (to 1/2 length). Args: idim (int): Input dimension. odim (int): Output dimension. dropout_ra
espnet2/legacy/nets/pytorch_backend/transformer/subsampling.py:590
↓ 10 callers
Class
Descriptor
egs2/TEMPLATE/asr1/steps/libs/nnet3/xconfig/utils.py:187
↓ 10 callers
Class
DummyProvider
test/espnet3/systems/base/test_inference_runner.py:7
↓ 10 callers
Class
DummyRunner
test/espnet3/systems/base/test_inference_runner.py:11
↓ 10 callers
Class
EncoderLayer
Encoder layer module. Args: size (int): Input dimension. self_attn (torch.nn.Module): Self-attention module instance.
espnet2/legacy/nets/pytorch_backend/conformer/encoder_layer.py:16
↓ 10 callers
Class
FrequencyDomainL1
espnet2/enh/loss/criterions/tf_domain.py:210
↓ 10 callers
Class
NIN
espnet2/enh/layers/ncsnpp_utils/layers.py:659
↓ 10 callers
Class
NeuralBeamformer
espnet2/enh/separator/neural_beamformer.py:12
↓ 10 callers
Class
OpenAIWhisperTokenizer
espnet2/text/whisper_tokenizer.py:38
↓ 10 callers
Class
S2STAttentionLoss
attention-based label smoothing loss for S2ST.
espnet2/s2st/losses/attention_loss.py:11
↓ 9 callers
Class
BeamSearchTransducer
Beam search implementation for Transducer.
espnet2/asr/transducer/beam_search_transducer.py:43
↓ 9 callers
Class
ConformerPostEncoder
Hugging Face Transformers PostEncoder.
espnet2/slu/postencoder/conformer_postencoder.py:39
↓ 9 callers
Class
Conv1d1x1
1x1 Conv1d with customized initialization.
espnet2/gan_tts/wavenet/residual_block.py:31
↓ 9 callers
Class
Conv2dSubsampling1
Similar to Conv2dSubsampling module, but without any subsampling performed. Args: idim (int): Input dimension. odim (int): Output
espnet2/legacy/nets/pytorch_backend/transformer/subsampling.py:488
↓ 9 callers
Class
DefaultFrontend
Conventional frontend structure for ASR. Stft -> WPE -> MVDR-Beamformer -> Power-spec -> Log-Mel-Fbank
espnet2/asr/frontend/default.py:17
↓ 9 callers
Class
DurationPredictor
espnet2/gan_svs/vits/duration_predictor.py:12
↓ 9 callers
Class
GlobalMVN
Apply global mean and variance normalization TODO(kamo): Make this class portable somehow Args: stats_file: npy file norm_me
espnet2/layers/global_mvn.py:13
↓ 9 callers
Class
Hypothesis
Default hypothesis definition for Transducer search algorithms. Args: score: Total log-probability. yseq: Label sequence as integ
espnet2/asr_transducer/beam_search_transducer.py:14
↓ 9 callers
Class
LabelSmoothingLoss
Label-smoothing loss. :param int size: the number of class :param int padding_idx: ignored class id :param float smoothing: smoothing rat
espnet2/legacy/nets/pytorch_backend/transformer/label_smoothing_loss.py:13
↓ 9 callers
Class
LengthRegulator
Length Regulator
espnet2/gan_svs/vits/length_regulator.py:17
↓ 9 callers
Class
NgramFullScorer
Fullscorer for ngram.
espnet2/legacy/nets/scorers/ngram.py:62
↓ 9 callers
Class
NgramPartScorer
Partialscorer for ngram.
espnet2/legacy/nets/scorers/ngram.py:82
↓ 9 callers
Class
RNNDecoder
espnet2/asr/decoder/rnn_decoder.py:82
↓ 9 callers
Class
SConv1d
Conv1d with some builtin handling of asymmetric or causal padding and normalization.
espnet2/gan_codec/shared/encoder/seanet.py:158
↓ 9 callers
Class
SISNRLoss
SI-SNR (or named SI-SDR) loss A more stable SI-SNR loss with clamp from `fast_bss_eval`. Attributes: clamp_db: float cla
espnet2/enh/loss/criterions/time_domain.py:224
↓ 9 callers
Class
SeparateSpeech
SeparateSpeech class Examples: >>> import soundfile >>> separate_speech = SeparateSpeech("enh_config.yml", "enh.pth") >>>
espnet2/bin/enh_inference.py:90
↓ 9 callers
Class
SequenceIterFactory
Build iterator for each epoch. This class simply creates pytorch DataLoader except for the following points: - The random seed is decided acc
espnet2/iterators/sequence_iter_factory.py:35
↓ 9 callers
Class
SequentialRNNLM
Sequential RNNLM. See also: https://github.com/pytorch/examples/blob/4581968193699de14b56527296262dd76ab43557/word_language_model/model.p
espnet2/lm/seq_rnn_lm.py:12
↓ 9 callers
Class
TextCleaner
Text cleaner. Examples: >>> cleaner = TextCleaner("tacotron") >>> cleaner("(Hello-World); & jr. & dr.") 'HELLO WORLD,
espnet2/text/cleaner.py:27
↓ 9 callers
Class
TransducerDecoder
(RNN-)Transducer decoder module. Args: vocab_size: Output dimension. layers_type: (RNN-)Decoder layers type. num_layers:
espnet2/asr/decoder/transducer_decoder.py:12
↓ 9 callers
Class
Utterance
egs2/owsm_v1/s2t1/local/utils.py:142
↓ 8 callers
Class
AverageCheckpointsCallback
A custom callback for weight averaging over the top-K checkpoints. This can be useful to smooth out fluctuations in weights across the best-perfo
espnet3/components/callbacks/default_callbacks.py:24
↓ 8 callers
Class
ConvEncoder
Convolutional encoder for speech enhancement and separation
espnet2/enh/encoder/conv_encoder.py:6
next →
1–100 of 1,556, ranked by callers