Instructions to use nrshoudi/wav2vec2-large-xls-r-300m-Arabic-phoneme with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nrshoudi/wav2vec2-large-xls-r-300m-Arabic-phoneme with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="nrshoudi/wav2vec2-large-xls-r-300m-Arabic-phoneme")# Load model directly from transformers import AutoProcessor, AutoModelForCTC processor = AutoProcessor.from_pretrained("nrshoudi/wav2vec2-large-xls-r-300m-Arabic-phoneme") model = AutoModelForCTC.from_pretrained("nrshoudi/wav2vec2-large-xls-r-300m-Arabic-phoneme", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| { | |
| "[PAD]": 34, | |
| "[UNK]": 33, | |
| "|": 0, | |
| "ء": 1, | |
| "آ": 2, | |
| "أ": 3, | |
| "إ": 4, | |
| "ا": 5, | |
| "ب": 6, | |
| "ة": 7, | |
| "ت": 8, | |
| "ج": 9, | |
| "ح": 10, | |
| "خ": 11, | |
| "د": 12, | |
| "ذ": 13, | |
| "ر": 14, | |
| "س": 15, | |
| "ش": 16, | |
| "ص": 17, | |
| "ض": 18, | |
| "ط": 19, | |
| "ظ": 20, | |
| "ع": 21, | |
| "غ": 22, | |
| "ف": 23, | |
| "ق": 24, | |
| "ك": 25, | |
| "ل": 26, | |
| "م": 27, | |
| "ن": 28, | |
| "ه": 29, | |
| "و": 30, | |
| "ى": 31, | |
| "ي": 32 | |
| } | |