Quiz Space

Deep Learning Practice · Quiz 2 · 16 Mar 2025 · January 2025 term

Question 18: Below is a snippet for fine-tuning SpeechT5 for Text-to-…

Question 18

+2 marksOne or more correct options

Below is a snippet for fine-tuning SpeechT5 for Text-to-Speech (TTS):

python
from transformers import SpeechT5Processor, SpeechT5ForTextToSpeech, Trainer, TrainingArguments
processor = SpeechT5Processor.from_pretrained("microsoft/speecht5_tts")
model = SpeechT5ForTextToSpeech.from_pretrained("microsoft/speecht5_tts")
training_args = TrainingArguments(
output_dir="./speechT5-finetuned",
per_device_train_batch_size=8,
gradient_accumulation_steps=2,
learning_rate=3e-5,
num_train_epochs=3,
save_strategy="epoch"
)

Based on the above data, answer the given subquestions.

What additional preprocessing is required when fine-tuning SpeechT5 on low-resource languages?

Select all that apply.

  1. A

    Use phoneme-based tokenization instead of direct text tokenization.

  2. B

    Train on speaker embeddings that include multiple dialects.

  3. C

    Convert all text to uppercase for better model accuracy.

  4. D

    Increase the hidden size of the transformer layers to accommodate new languages.

Show answer

Correct answers

  • A

    Use phoneme-based tokenization instead of direct text tokenization.

  • B

    Train on speaker embeddings that include multiple dialects.

Question 18 of 19 in the IIT Madras BS Deep Learning Practice (Deep Learning Practice) Quiz 2 paper sat on 16 Mar 2025, in the January 2025 term (IIT M DEGREE AN EXAM QDB2 16 Mar 2025). It carries 2 marks.

More questions from this paper

  1. Q1Consider the following code using Wav2Vec2Processor to process an audio sample: What will the printed shape be?
  2. Q2Consider the following code snippet: What is the primary mistake in this code?
  3. Q3You have a model that predicts transcriptions for audio clips. You calculate Word Error Rate (WER) using the jiwer pack…
  4. Q4What type of language modeling objective does the Whisper model use during training?
  5. Q5Why is Wav2Vec2CTCTokenizer used instead of directly using Wav2Vec2Processor for tokenization?
  6. Q6Figure question
  7. Q7Which of the following correctly describes the end-to-end ASR workflow when training a Wav2Vec2 model?
  8. Q8Which of the following statements are True?
  9. Q9You transcribed an audio recording using Whisper and applied speaker diarization. However, you notice that the transcri…
  10. Q10Consider the following Whisper transcription function: Which of the following statements are correct about this code?
  11. Q11A speaker diarization pipeline typically consists of multiple components.\ Which of the following components are essent…
  12. Q12Figure question
  13. Q13The following code snippet uses librosa to process an audio file: If audio_data.shape outputs (320000,), how long (in s…
  14. Q14Below is a snippet for loading a SpeechBrain speaker verification model: The speaker verification model uses x-vector e…
  15. Q15Consider the following 1D Convolutional Neural Network code: Based on the above data, answer the given subquestions. Wh…
  16. Q16Consider the following 1D Convolutional Neural Network code: Based on the above data, answer the given subquestions. Wh…
  17. Q17Below is a snippet for fine-tuning SpeechT5 for Text-to-Speech (TTS): Based on the above data, answer the given subques…
  18. Q19Below is a snippet for fine-tuning SpeechT5 for Text-to-Speech (TTS): Based on the above data, answer the given subques…