Automatic Speech Recognition
Transformers
PyTorch
Safetensors
English
speecht5
audio
speech
speech2text
ASR
asr
ASR-punctuation-sensitive
encoder-decoder-for-asr
Instructions to use seba3y/speecht5-asr-punctuation-sensitive with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use seba3y/speecht5-asr-punctuation-sensitive with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="seba3y/speecht5-asr-punctuation-sensitive")# Load model directly from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq processor = AutoProcessor.from_pretrained("seba3y/speecht5-asr-punctuation-sensitive") model = AutoModelForSpeechSeq2Seq.from_pretrained("seba3y/speecht5-asr-punctuation-sensitive", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload processor
Browse files- added_tokens.json +4 -0
- preprocessor_config.json +19 -0
- special_tokens_map.json +13 -0
- spm_char.model +3 -0
- tokenizer_config.json +12 -0
added_tokens.json
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"<ctc_blank>": 80,
|
| 3 |
+
"<mask>": 79
|
| 4 |
+
}
|
preprocessor_config.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"do_normalize": false,
|
| 3 |
+
"feature_extractor_type": "SpeechT5FeatureExtractor",
|
| 4 |
+
"feature_size": 1,
|
| 5 |
+
"fmax": 7600,
|
| 6 |
+
"fmin": 80,
|
| 7 |
+
"frame_signal_scale": 1.0,
|
| 8 |
+
"hop_length": 16,
|
| 9 |
+
"mel_floor": 1e-10,
|
| 10 |
+
"num_mel_bins": 80,
|
| 11 |
+
"padding_side": "right",
|
| 12 |
+
"padding_value": 0.0,
|
| 13 |
+
"processor_class": "SpeechT5Processor",
|
| 14 |
+
"reduction_factor": 2,
|
| 15 |
+
"return_attention_mask": true,
|
| 16 |
+
"sampling_rate": 16000,
|
| 17 |
+
"win_function": "hann_window",
|
| 18 |
+
"win_length": 64
|
| 19 |
+
}
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token": "<s>",
|
| 3 |
+
"eos_token": "</s>",
|
| 4 |
+
"mask_token": {
|
| 5 |
+
"content": "<mask>",
|
| 6 |
+
"lstrip": true,
|
| 7 |
+
"normalized": true,
|
| 8 |
+
"rstrip": false,
|
| 9 |
+
"single_word": false
|
| 10 |
+
},
|
| 11 |
+
"pad_token": "<pad>",
|
| 12 |
+
"unk_token": "<unk>"
|
| 13 |
+
}
|
spm_char.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7fcc48f3e225f627b1641db410ceb0c8649bd2b0c982e150b03f8be3728ab560
|
| 3 |
+
size 238473
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token": "<s>",
|
| 3 |
+
"clean_up_tokenization_spaces": true,
|
| 4 |
+
"eos_token": "</s>",
|
| 5 |
+
"model_max_length": 450,
|
| 6 |
+
"normalize": false,
|
| 7 |
+
"pad_token": "<pad>",
|
| 8 |
+
"processor_class": "SpeechT5Processor",
|
| 9 |
+
"sp_model_kwargs": {},
|
| 10 |
+
"tokenizer_class": "SpeechT5Tokenizer",
|
| 11 |
+
"unk_token": "<unk>"
|
| 12 |
+
}
|