Wav2Vec2 Customization

I have applied Wav2Vec2 model on Bangla dataset by following this link: Fine-Tune Wav2Vec2 for English ASR in Hugging Face with 🤗 Transformers

Since this model is blackbox, I cannot understand how to customize it’s loss function Can you please give me a hint?