Datasets:
Vu Anh
Claude
commited on
Commit
·
af61bfc
0
Parent(s):
Initial commit: Vietnamese IPA Dataset
Browse files- Created comprehensive Vietnamese IPA dataset with 50 common words
- Added IPA transcriptions with tone marks for each word
- Generated MP3 audio files using Google Text-to-Speech
- Implemented Python scripts for dataset management and audio generation
- Added Hugging Face compatible README with proper dataset card format
- Set up project with uv package manager
- Applied ruff linting and formatting standards
- Included example usage script for interactive exploration
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
This view is limited to 50 files because it contains too many changes.
See raw diff
- .python-version +1 -0
- README.md +204 -0
- audio/an.mp3 +0 -0
- audio/anh.mp3 +0 -0
- audio/ba.mp3 +0 -0
- audio/ba_number.mp3 +0 -0
- audio/ba_tone.mp3 +0 -0
- audio/ban.mp3 +0 -0
- audio/bon.mp3 +0 -0
- audio/cam_on.mp3 +0 -0
- audio/cay.mp3 +0 -0
- audio/chi.mp3 +0 -0
- audio/chieu.mp3 +0 -0
- audio/cho.mp3 +0 -0
- audio/co.mp3 +0 -0
- audio/con.mp3 +0 -0
- audio/dem.mp3 +0 -0
- audio/dep.mp3 +0 -0
- audio/duong.mp3 +0 -0
- audio/em.mp3 +0 -0
- audio/gio.mp3 +0 -0
- audio/hai.mp3 +0 -0
- audio/hoa.mp3 +0 -0
- audio/hoc.mp3 +0 -0
- audio/la.mp3 +0 -0
- audio/lam.mp3 +0 -0
- audio/me.mp3 +0 -0
- audio/meo.mp3 +0 -0
- audio/mot.mp3 +0 -0
- audio/mua.mp3 +0 -0
- audio/nam.mp3 +0 -0
- audio/nang.mp3 +0 -0
- audio/ngay.mp3 +0 -0
- audio/nha.mp3 +0 -0
- audio/nuoc.mp3 +0 -0
- audio/ong.mp3 +0 -0
- audio/pho.mp3 +0 -0
- audio/sach.mp3 +0 -0
- audio/sang.mp3 +0 -0
- audio/sinh.mp3 +0 -0
- audio/thang.mp3 +0 -0
- audio/thay.mp3 +0 -0
- audio/toi.mp3 +0 -0
- aud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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- vi
|
| 4 |
+
pretty_name: Vietnamese IPA Dataset
|
| 5 |
+
tags:
|
| 6 |
+
- audio
|
| 7 |
+
- text-to-speech
|
| 8 |
+
- vietnamese
|
| 9 |
+
- ipa
|
| 10 |
+
- phonetics
|
| 11 |
+
- pronunciation
|
| 12 |
+
license: mit
|
| 13 |
+
task_categories:
|
| 14 |
+
- text-to-speech
|
| 15 |
+
- automatic-speech-recognition
|
| 16 |
+
size_categories:
|
| 17 |
+
- n<1K
|
| 18 |
+
---
|
| 19 |
+
|
| 20 |
+
# Vietnamese IPA Dataset
|
| 21 |
+
|
| 22 |
+
A comprehensive Vietnamese IPA (International Phonetic Alphabet) dataset with word pronunciations and MP3 audio files for text-to-speech and pronunciation learning applications.
|
| 23 |
+
|
| 24 |
+
## Dataset Description
|
| 25 |
+
|
| 26 |
+
### Dataset Summary
|
| 27 |
+
|
| 28 |
+
This dataset contains 50 common Vietnamese words with their IPA (International Phonetic Alphabet) transcriptions and corresponding audio files. It's designed for:
|
| 29 |
+
- Text-to-speech systems development
|
| 30 |
+
- Vietnamese pronunciation learning
|
| 31 |
+
- Phonetic research
|
| 32 |
+
- Language learning applications
|
| 33 |
+
|
| 34 |
+
### Supported Tasks
|
| 35 |
+
|
| 36 |
+
- **Text-to-Speech**: Generate Vietnamese speech from text
|
| 37 |
+
- **Pronunciation Learning**: Learn correct Vietnamese pronunciation with IPA
|
| 38 |
+
- **Phonetic Analysis**: Study Vietnamese phonetics with accurate IPA transcriptions
|
| 39 |
+
|
| 40 |
+
### Languages
|
| 41 |
+
|
| 42 |
+
Vietnamese (`vi`)
|
| 43 |
+
|
| 44 |
+
## Dataset Structure
|
| 45 |
+
|
| 46 |
+
### Data Instances
|
| 47 |
+
|
| 48 |
+
Each instance contains:
|
| 49 |
+
- A Vietnamese word or phrase
|
| 50 |
+
- Its IPA transcription with tone marks
|
| 51 |
+
- Path to the corresponding MP3 audio file
|
| 52 |
+
|
| 53 |
+
### Data Fields
|
| 54 |
+
|
| 55 |
+
- `word` (string): Vietnamese word or phrase
|
| 56 |
+
- `ipa` (string): IPA transcription with tone marks
|
| 57 |
+
- `audio_file` (string): Path to MP3 audio file
|
| 58 |
+
|
| 59 |
+
### Data Splits
|
| 60 |
+
|
| 61 |
+
The dataset contains a single training split with 50 examples.
|
| 62 |
+
|
| 63 |
+
## Dataset Creation
|
| 64 |
+
|
| 65 |
+
### Curation Rationale
|
| 66 |
+
|
| 67 |
+
This dataset was created to provide a simple, accessible resource for Vietnamese pronunciation with accurate IPA transcriptions and audio, addressing the lack of small-scale Vietnamese phonetic datasets.
|
| 68 |
+
|
| 69 |
+
### Source Data
|
| 70 |
+
|
| 71 |
+
#### Initial Data Collection
|
| 72 |
+
|
| 73 |
+
Words were selected from common Vietnamese vocabulary including:
|
| 74 |
+
- Greetings and basic phrases
|
| 75 |
+
- Family terms
|
| 76 |
+
- Numbers
|
| 77 |
+
- Time expressions
|
| 78 |
+
- Common nouns and verbs
|
| 79 |
+
|
| 80 |
+
### Annotations
|
| 81 |
+
|
| 82 |
+
#### Annotation Process
|
| 83 |
+
|
| 84 |
+
IPA transcriptions were created following standard Vietnamese phonetic conventions, including tone marks:
|
| 85 |
+
- ˧˧ (33): Level tone (ngang)
|
| 86 |
+
- ˨˩ (21): Falling tone (huyền)
|
| 87 |
+
- ˧˩ˀ (32ˀ): Falling-rising tone (hỏi)
|
| 88 |
+
- ˧˥ (35): Rising tone (sắc)
|
| 89 |
+
- ˧˩˧ (313): Broken tone (ngã)
|
| 90 |
+
- ˨˩ˀ (21ˀ): Drop tone (nặng)
|
| 91 |
+
|
| 92 |
+
Audio files were generated using Google Text-to-Speech (gTTS) for consistency.
|
| 93 |
+
|
| 94 |
+
## Usage
|
| 95 |
+
|
| 96 |
+
### Quick Start
|
| 97 |
+
|
| 98 |
+
```python
|
| 99 |
+
import pandas as pd
|
| 100 |
+
|
| 101 |
+
# Load the dataset
|
| 102 |
+
df = pd.read_csv('vietnamese_ipa_dataset.csv')
|
| 103 |
+
|
| 104 |
+
# Access word, IPA, and audio file
|
| 105 |
+
for idx, row in df.iterrows():
|
| 106 |
+
word = row['word']
|
| 107 |
+
ipa = row['ipa']
|
| 108 |
+
audio_file = row['audio_file']
|
| 109 |
+
print(f"{word}: {ipa} -> {audio_file}")
|
| 110 |
+
```
|
| 111 |
+
|
| 112 |
+
### With Hugging Face Datasets
|
| 113 |
+
|
| 114 |
+
```python
|
| 115 |
+
from datasets import load_dataset
|
| 116 |
+
|
| 117 |
+
# Load from Hugging Face Hub (once uploaded)
|
| 118 |
+
dataset = load_dataset("username/vietnamese-ipa-dataset")
|
| 119 |
+
|
| 120 |
+
# Access the data
|
| 121 |
+
for example in dataset['train']:
|
| 122 |
+
print(f"{example['word']}: {example['ipa']}")
|
| 123 |
+
```
|
| 124 |
+
|
| 125 |
+
### Local Development
|
| 126 |
+
|
| 127 |
+
This project uses `uv` for dependency management:
|
| 128 |
+
|
| 129 |
+
```bash
|
| 130 |
+
# Install dependencies
|
| 131 |
+
uv sync
|
| 132 |
+
|
| 133 |
+
# Generate audio files
|
| 134 |
+
uv run python generate_audio.py generate
|
| 135 |
+
|
| 136 |
+
# Display dataset
|
| 137 |
+
uv run python generate_audio.py display
|
| 138 |
+
|
| 139 |
+
# Add new word
|
| 140 |
+
uv run python generate_audio.py add "xin lỗi" "sin˧˧ loj˧˩"
|
| 141 |
+
|
| 142 |
+
# Interactive example
|
| 143 |
+
uv run python example_usage.py
|
| 144 |
+
```
|
| 145 |
+
|
| 146 |
+
## Example Data
|
| 147 |
+
|
| 148 |
+
| Word | IPA | Audio File |
|
| 149 |
+
|------|-----|------------|
|
| 150 |
+
| xin chào | sin˧˧ caːw˨˩ | audio/xin_chao.mp3 |
|
| 151 |
+
| cảm ơn | kaːm˧˩ ʔəːn˧˧ | audio/cam_on.mp3 |
|
| 152 |
+
| Việt Nam | viət˧˩ˀ naːm˧˧ | audio/viet_nam.mp3 |
|
| 153 |
+
| nước | nɨək˧˥ | audio/nuoc.mp3 |
|
| 154 |
+
| yêu | iəw˧˧ | audio/yeu.mp3 |
|
| 155 |
+
|
| 156 |
+
## Considerations for Using the Data
|
| 157 |
+
|
| 158 |
+
### Social Impact
|
| 159 |
+
|
| 160 |
+
This dataset promotes Vietnamese language learning and preservation through accurate phonetic representations.
|
| 161 |
+
|
| 162 |
+
### Limitations
|
| 163 |
+
|
| 164 |
+
- Limited to 50 common words (suitable for basic applications)
|
| 165 |
+
- Audio generated via TTS, not native speaker recordings
|
| 166 |
+
- IPA transcriptions follow Northern Vietnamese dialect
|
| 167 |
+
- May not capture all regional pronunciation variations
|
| 168 |
+
|
| 169 |
+
### Recommendations
|
| 170 |
+
|
| 171 |
+
- For production systems, consider native speaker recordings
|
| 172 |
+
- Expand vocabulary for comprehensive coverage
|
| 173 |
+
- Add regional dialect variations if needed
|
| 174 |
+
|
| 175 |
+
## Additional Information
|
| 176 |
+
|
| 177 |
+
### Dataset Curators
|
| 178 |
+
|
| 179 |
+
Created for educational and research purposes in Vietnamese phonetics and pronunciation.
|
| 180 |
+
|
| 181 |
+
### Licensing Information
|
| 182 |
+
|
| 183 |
+
This dataset is released under the MIT License.
|
| 184 |
+
|
| 185 |
+
### Citation Information
|
| 186 |
+
|
| 187 |
+
If you use this dataset, please cite:
|
| 188 |
+
|
| 189 |
+
```bibtex
|
| 190 |
+
@dataset{vietnamese_ipa_2025,
|
| 191 |
+
title = {Vietnamese IPA Dataset},
|
| 192 |
+
year = {2025},
|
| 193 |
+
publisher = {GitHub},
|
| 194 |
+
url = {https://github.com/yourusername/vietnamese-ipa-dataset}
|
| 195 |
+
}
|
| 196 |
+
```
|
| 197 |
+
|
| 198 |
+
### Contributions
|
| 199 |
+
|
| 200 |
+
Contributions are welcome! Please feel free to:
|
| 201 |
+
- Add more words with IPA transcriptions
|
| 202 |
+
- Improve existing IPA transcriptions
|
| 203 |
+
- Add native speaker recordings
|
| 204 |
+
- Include regional dialect variations
|
audio/an.mp3
ADDED
|
Binary file (5.76 kB). View file
|
|
|
audio/anh.mp3
ADDED
|
Binary file (5.76 kB). View file
|
|
|
audio/ba.mp3
ADDED
|
Binary file (6.34 kB). View file
|
|
|
audio/ba_number.mp3
ADDED
|
Binary file (6.34 kB). View file
|
|
|
audio/ba_tone.mp3
ADDED
|
Binary file (6.91 kB). View file
|
|
|
audio/ban.mp3
ADDED
|
Binary file (5.76 kB). View file
|
|
|
audio/bon.mp3
ADDED
|
Binary file (6.53 kB). View file
|
|
|
audio/cam_on.mp3
ADDED
|
Binary file (7.87 kB). View file
|
|
|
audio/cay.mp3
ADDED
|
Binary file (6.14 kB). View file
|
|
|
audio/chi.mp3
ADDED
|
Binary file (6.14 kB). View file
|
|
|
audio/chieu.mp3
ADDED
|
Binary file (7.1 kB). View file
|
|
|
audio/cho.mp3
ADDED
|
Binary file (6.91 kB). View file
|
|
|
audio/co.mp3
ADDED
|
Binary file (6.34 kB). View file
|
|
|
audio/con.mp3
ADDED
|
Binary file (6.14 kB). View file
|
|
|
audio/dem.mp3
ADDED
|
Binary file (5.95 kB). View file
|
|
|
audio/dep.mp3
ADDED
|
Binary file (5.38 kB). View file
|
|
|
audio/duong.mp3
ADDED
|
Binary file (6.72 kB). View file
|
|
|
audio/em.mp3
ADDED
|
Binary file (5.76 kB). View file
|
|
|
audio/gio.mp3
ADDED
|
Binary file (6.72 kB). View file
|
|
|
audio/hai.mp3
ADDED
|
Binary file (6.34 kB). View file
|
|
|
audio/hoa.mp3
ADDED
|
Binary file (6.91 kB). View file
|
|
|
audio/hoc.mp3
ADDED
|
Binary file (5.57 kB). View file
|
|
|
audio/la.mp3
ADDED
|
Binary file (6.72 kB). View file
|
|
|
audio/lam.mp3
ADDED
|
Binary file (6.34 kB). View file
|
|
|
audio/me.mp3
ADDED
|
Binary file (6.34 kB). View file
|
|
|
audio/meo.mp3
ADDED
|
Binary file (6.91 kB). View file
|
|
|
audio/mot.mp3
ADDED
|
Binary file (5.57 kB). View file
|
|
|
audio/mua.mp3
ADDED
|
Binary file (6.72 kB). View file
|
|
|
audio/nam.mp3
ADDED
|
Binary file (5.95 kB). View file
|
|
|
audio/nang.mp3
ADDED
|
Binary file (6.53 kB). View file
|
|
|
audio/ngay.mp3
ADDED
|
Binary file (6.34 kB). View file
|
|
|
audio/nha.mp3
ADDED
|
Binary file (6.91 kB). View file
|
|
|
audio/nuoc.mp3
ADDED
|
Binary file (5.76 kB). View file
|
|
|
audio/ong.mp3
ADDED
|
Binary file (5.76 kB). View file
|
|
|
audio/pho.mp3
ADDED
|
Binary file (7.1 kB). View file
|
|
|
audio/sach.mp3
ADDED
|
Binary file (5.76 kB). View file
|
|
|
audio/sang.mp3
ADDED
|
Binary file (6.91 kB). View file
|
|
|
audio/sinh.mp3
ADDED
|
Binary file (6.53 kB). View file
|
|
|
audio/thang.mp3
ADDED
|
Binary file (6.72 kB). View file
|
|
|
audio/thay.mp3
ADDED
|
Binary file (6.72 kB). View file
|
|
|
audio/toi.mp3
ADDED
|
Binary file (5.95 kB). View file
|
|
|
audio/toi_tone.mp3
ADDED
|
Binary file (6.91 kB). View file
|
|
|
audio/troi.mp3
ADDED
|
Binary file (7.3 kB). View file
|
|
|
audio/trua.mp3
ADDED
|
Binary file (6.91 kB). View file
|
|
|
audio/truong.mp3
ADDED
|
Binary file (6.91 kB). View file
|
|
|
audio/uong.mp3
ADDED
|
Binary file (6.53 kB). View file
|
|
|
audio/viec.mp3
ADDED
|
Binary file (5.57 kB). View file
|
|
|
audio/viet_nam.mp3
ADDED
|
Binary file (8.06 kB). View file
|
|
|