# ################################ # Model: Wav2Vec + DNN + CTC + Softmax # Authors: # Gaelle Laperriere 2023 # ################################ wav2vec_url: LeBenchmark/wav2vec2-FR-3K-large # Feature parameters: sample_rate: 16000 feats_dim: 1024 # Model parameters: activation: !name:torch.nn.LeakyReLU dnn_blocks: 3 dnn_neurons: 512 log_softmax: !new:torch.nn.LogSoftmax dim: -1 # Decoding parameters: blank_index: 0 # Outputs: output_neurons: 141 # ------ Functions and classes wav2vec2: !new:speechbrain.lobes.models.huggingface_transformers.wav2vec2.Wav2Vec2 source: !ref output_norm: True freeze: True save_path: wav2vec2_checkpoint enc: !new:speechbrain.lobes.models.VanillaNN.VanillaNN input_shape: [null, null, !ref ] activation: !ref dnn_blocks: !ref dnn_neurons: !ref output_lin: !new:speechbrain.nnet.linear.Linear input_size: !ref n_neurons: !ref bias: True model: !new:torch.nn.ModuleList - [!ref , !ref ] tokenizer: !new:speechbrain.dataio.encoder.CTCTextEncoder encoder: !new:speechbrain.nnet.containers.LengthsCapableSequential wav2vec2: !ref enc: !ref output_lin: !ref log_softmax: !ref decoding_function: !name:speechbrain.decoders.ctc_greedy_decode blank_id: !ref modules: encoder: !ref pretrainer: !new:speechbrain.utils.parameter_transfer.Pretrainer loadables: wav2vec2: !ref model: !ref tokenizer: !ref