--- language: - ur license: cc-by-4.0 task_categories: - text-to-speech - automatic-speech-recognition pretty_name: Urdu LjSpeech size_categories: - 10K0.1 seconds) - PCM format validation - Corrupted audio removal - Text-audio alignment verification ### Data Processing The dataset underwent several processing steps: 1. **Audio Validation:** Each audio sample was validated for: - Sufficient duration (minimum 0.1 seconds) - Valid PCM format (even byte length for 16-bit samples) - No corruption or empty data 2. **Batch Organization:** Files organized into ~1.5-2GB batches for efficient streaming and downloading 3. **Format Standardization:** All audio normalized to: - 22,050 Hz sampling rate - 16-bit PCM format - Mono channel ### Annotations Text transcriptions are in standard Urdu script (UTF-8 encoded) with proper diacritical marks where applicable. ## Usage ### Loading the Dataset ```python from datasets import load_dataset # Load the full dataset dataset = load_dataset("humairawan/Urdu-LjSpeech") # Load a specific batch dataset = load_dataset("humairawan/Urdu-LjSpeech", data_dir="batch_0") # Access samples sample = dataset['train'][0] print(sample['text']) # Print Urdu text audio_array = sample['audio']['array'] # Access audio waveform sampling_rate = sample['audio']['sampling_rate'] # Get sampling rate ``` ### Training a TTS Model ```python from datasets import load_dataset from transformers import SpeechT5ForTextToSpeech, SpeechT5Processor # Load dataset dataset = load_dataset("humairawan/Urdu-LjSpeech") # Initialize model and processor processor = SpeechT5Processor.from_pretrained("microsoft/speecht5_tts") model = SpeechT5ForTextToSpeech.from_pretrained("microsoft/speecht5_tts") # Your training code here... ``` ### Training an ASR Model ```python from datasets import load_dataset from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor # Load dataset dataset = load_dataset("humairawan/Urdu-LjSpeech") # Initialize model and processor processor = Wav2Vec2Processor.from_pretrained("facebook/wav2vec2-base") model = Wav2Vec2ForCTC.from_pretrained("facebook/wav2vec2-base") # Your training code here... ``` ## Considerations ### Ethical Considerations - This dataset is intended for research and development of Urdu language technologies - Users should be aware of potential biases in speaker representation - Commercial use should respect speaker rights and consent ## Citation If you use this dataset in your research or applications, please cite it using the following BibTeX entry: ``` @dataset{awan2024urdu_ljspeech, author = {Humair Munir}, title = {Urdu-LjSpeech: A High-Quality Urdu Speech Dataset for TTS and ASR}, month = dec, year = 2024, publisher = {Hugging Face}, url = {https://huggingface.co/datasets/humairawan/Urdu-LjSpeech}, note = {Derived from : https://huggingface.co/datasets/humair025/Urdu-LjSpeech} } ```