Instructions to use 3funnn/wav2vec2-base-common-voice with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use 3funnn/wav2vec2-base-common-voice with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="3funnn/wav2vec2-base-common-voice")# Load model directly from transformers import AutoProcessor, AutoModelForCTC processor = AutoProcessor.from_pretrained("3funnn/wav2vec2-base-common-voice") model = AutoModelForCTC.from_pretrained("3funnn/wav2vec2-base-common-voice", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload processor
Browse files- preprocessor_config.json +10 -0
- tokenizer_config.json +1 -0
preprocessor_config.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"do_normalize": true,
|
| 3 |
+
"feature_extractor_type": "Wav2Vec2FeatureExtractor",
|
| 4 |
+
"feature_size": 1,
|
| 5 |
+
"padding_side": "right",
|
| 6 |
+
"padding_value": 0.0,
|
| 7 |
+
"processor_class": "Wav2Vec2Processor",
|
| 8 |
+
"return_attention_mask": false,
|
| 9 |
+
"sampling_rate": 16000
|
| 10 |
+
}
|
tokenizer_config.json
CHANGED
|
@@ -39,6 +39,7 @@
|
|
| 39 |
"eos_token": "</s>",
|
| 40 |
"model_max_length": 1000000000000000019884624838656,
|
| 41 |
"pad_token": "[PAD]",
|
|
|
|
| 42 |
"replace_word_delimiter_char": " ",
|
| 43 |
"target_lang": null,
|
| 44 |
"tokenizer_class": "Wav2Vec2CTCTokenizer",
|
|
|
|
| 39 |
"eos_token": "</s>",
|
| 40 |
"model_max_length": 1000000000000000019884624838656,
|
| 41 |
"pad_token": "[PAD]",
|
| 42 |
+
"processor_class": "Wav2Vec2Processor",
|
| 43 |
"replace_word_delimiter_char": " ",
|
| 44 |
"target_lang": null,
|
| 45 |
"tokenizer_class": "Wav2Vec2CTCTokenizer",
|