# modules params # (nb_tokens, blank_index, bos_index and eos_index must be constistent with # pretrained tokenizer) nb_tokens: 500 blank_index: 0 sample_rate: 16000 wav2vec2_hub: LeBenchmark/wav2vec2-FR-7K-large wav2vec_output_dim: 1024 nb_enc_neurons: 1024 enc_drop_out: 0.25 ## modules tokenizer: !new:sentencepiece.SentencePieceProcessor wav2vec2: !new:speechbrain.lobes.models.huggingface_wav2vec.HuggingFaceWav2Vec2 source: !ref output_norm: True freeze: True save_path: pretrained_models enc: !new:speechbrain.nnet.containers.Sequential input_shape: [null, null, !ref ] linear1: !name:speechbrain.nnet.linear.Linear n_neurons: !ref bias: True bn1: !name:speechbrain.nnet.normalization.BatchNorm1d activation: !new:torch.nn.LeakyReLU drop: !new:torch.nn.Dropout p: !ref linear2: !name:speechbrain.nnet.linear.Linear n_neurons: !ref bias: True bn2: !name:speechbrain.nnet.normalization.BatchNorm1d activation2: !new:torch.nn.LeakyReLU drop2: !new:torch.nn.Dropout p: !ref linear3: !name:speechbrain.nnet.linear.Linear n_neurons: !ref bias: True bn3: !name:speechbrain.nnet.normalization.BatchNorm1d activation3: !new:torch.nn.LeakyReLU ctc_lin: !new:speechbrain.nnet.linear.Linear input_size: !ref n_neurons: !ref decoding_function: !name:speechbrain.decoders.ctc_greedy_decode blank_id: !ref encoder: !new:speechbrain.nnet.containers.LengthsCapableSequential wav2vec2: !ref enc: !ref ctc_lin: !ref modules: encoder: !ref asr_model: !new:torch.nn.ModuleList - [!ref , !ref ] pretrainer: !new:speechbrain.utils.parameter_transfer.Pretrainer loadables: wav2vec2: !ref asr: !ref tokenizer: !ref