https://github.com/ai4bharat/svarah

Swarah: Indian-English speech dataset collected across the country

https://github.com/ai4bharat/svarah

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.6%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

Swarah: Indian-English speech dataset collected across the country

Basic Info
  • Host: GitHub
  • Owner: AI4Bharat
  • Language: Python
  • Default Branch: master
  • Homepage:
  • Size: 17.6 KB
Statistics
  • Stars: 34
  • Watchers: 6
  • Forks: 1
  • Open Issues: 4
  • Releases: 0
Created about 3 years ago · Last pushed about 1 year ago
Metadata Files
Readme

README.md

Svarah: An Indic accented English speech dataset

India is the second largest English-speaking country in the world with a speaker base of roughly 130 million. Unfortunately, Indian speakers find a very poor representation in existing English ASR benchmarks such as LibriSpeech, Switchboard, Speech Accent Archive, etc. We address this gap by creating Svarah, a benchmark that contains 9.6 hours of transcribed English audio from 117 speakers across 65 districts across 19 states in India, resulting in a diverse range of accents. The collective set of native languages spoken by the speakers covers 19 of the 22 constitutionally recognized languages of India, belonging to 4 different language families. Svarah includes both read speech and spontaneous conversational data, covering a variety of domains such as history, culture, tourism, government, sports, etc. It also contains data corresponding to popular use cases such as ordering groceries, making digital payments, and using government services (e.g., checking pension claims, checking passport status, etc.). The resulting diversity in vocabulary as well as use cases allows a more robust evaluation of ASR systems for real-world applications.

We evaluate 6 open source ASR models and 2 commercial ASR systems on Svarah and show that there is clear scope for improvement on Indian accents. The results obtained are as shown in Table 1.

Resources

|Datasets | Benchmark | | - | - | | Svarah | link |

Tutorial

  • Sample structure of manifest file

Applicable to svarah_manifest.json & saa_l1_manifest.json

``` {"audiofilepath": , "duration": , "text": } {"audiofilepath": , "duration": , "text": }

``` - Running evaluation scripts

For azure and google cloud evaluations, you will be required to add your key associated with the services offered by each. For others, you can run the following :

python eval_<hf_model>.py --manifest <manifest path> For processing audio filepaths, kindly change them as per your directory structure in the scripts.

  • Meta statistics of speakers

The meta_speaker_stats.csv file consists of 11 columns which describes some meta statistics of speakers involved in Svarah:

  • speaker_id -- unique speaker identifier
  • duration -- duration of audio recorded (seconds)
  • text -- transcript of audio
  • gender -- "Male" / "Female"
  • age-group -- speaker's age group (18-30, 30-45, 45-60 & 60+ )
  • primary_language -- speaker's primary language
  • native_place_state -- speaker's native state
  • native_place_district -- speaker's native district
  • highest_qualification -- speaker's highest education qualification
  • job_category -- speakers's job category (Part Time, Full Time, Other)
  • occupation_domain -- speaker's domain of occupation (Education and Research, Healthcare [Medical & Pharma], Government, Technology and Services, Information and Media, Financial Services [Banking and Insurance], Transportation and Logistics, Entertainment, Social service, Manufacturing & Retail )

    • Svarah folder tree

    Svarah ├── audio │   ├── <filename>.wav │ └── <filename>.txt │ . │ . │ . ├── svarah_manifest.json ├── saa_l1_manifest.json └── meta_speaker_stats.csv


Table 1: WER comparison

Table 1 depicts WER's of different models on (i) Svarah that contains data from Indian speakers and (ii) SAA_L1, LibriSpeech Clean (Libri) which contain data from native English speakers.

| | # Params. | Svarah | SAA_L1 | LibriSpeech | |-----------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------|--------|---------|-------| | Whisperbase | 74M | 13.6 | 2.9 | 4.2 | | Whispermedium | 769M | 8.3 | 1.7 | 3.1 | | Whisperlarge | 1550M | 7.2 | 1.6 | 2.7 | | Wav2Vec2large | 317M | 24.9 | 3.1 | 1.8 | | HuBERTlarge | 316M | 25.6 | 3.2 | 2.0 | | WavLMlarge | 300M | 33.7 | 9.2 | 3.4 | | Data2Veclarge | 313M | 24.5 | 2.5 | 1.8 | | Conformerlarge | 120M | 14.6 | 1.1 | 2.1 | | AzureUS | - | 20.9 | 24.2 | - | | AzureIN | - | 21.3 | 30.1 | - | | GoogleUS | - | 30.0 | 16.8 | - | | GoogleIN | - | 20.7 | 63.7 | - |


Table 2: Accent-wise split of Svarah

Table 2: Number of hours and Number of tokens in each accent

| Accent | # Hours |# Tokens | |---------------|-------------------|--------------------| | Assamese | 0.26 | 869 | | Bengali | 0.33 | 1024 | | Bodo | 0.63 | 1520 | | Dogri | 0.44 | 1262 | | Gujarati | 0.37 | 1051 | | Hindi | 0.40 | 1068 | | Kannada | 0.71 | 1892 | | Kashmiri | 0.40 | 1310 | | Konkani | 0.54 | 1325 | | Maithili | 0.76 | 1662 | | Malayalam | 0.68 | 1711 | | Marathi | 0.30 | 948 | | Nepali | 1.16 | 2236 | | Odia | 0.61 | 1548 | | Punjabi | 0.27 | 820 | | Sindhi | 0.18 | 536 | | Tamil | 0.44 | 1352 | | Telugu | 0.50 | 1311 | | Urdu | 0.64 | 1814 |


Citation

If you benefit from this dataset, kindly cite as follows:

@misc{javed2023svarah, title={Svarah: Evaluating English ASR Systems on Indian Accents}, author={Tahir Javed and Sakshi Joshi and Vignesh Nagarajan and Sai Sundaresan and Janki Nawale and Abhigyan Raman and Kaushal Bhogale and Pratyush Kumar and Mitesh M. Khapra}, year={2023}, eprint={2305.15760}, archivePrefix={arXiv}, primaryClass={cs.CL} }

Owner

  • Name: AI4Bhārat
  • Login: AI4Bharat
  • Kind: organization
  • Email: opensource@ai4bharat.org
  • Location: India

Artificial-Intelligence-For-Bhārat : Building open-source AI solutions for India!

GitHub Events

Total
  • Issues event: 1
  • Watch event: 10
  • Push event: 1
Last Year
  • Issues event: 1
  • Watch event: 10
  • Push event: 1

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 5
  • Total pull requests: 0
  • Average time to close issues: 20 minutes
  • Average time to close pull requests: N/A
  • Total issue authors: 5
  • Total pull request authors: 0
  • Average comments per issue: 0.2
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 2
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 2
  • Pull request authors: 0
  • Average comments per issue: 0.5
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • abcnorio (1)
  • Waseem0912-coder (1)
  • littleGiant-28 (1)
  • svandiekendialpad (1)
  • Sharaddition (1)
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels