Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse files- a.wav +0 -0
- out.wav +0 -0
- paraformer_logs/log/info.log +34 -0
- speech.py +3 -2
a.wav
CHANGED
Binary files a/a.wav and b/a.wav differ
|
|
out.wav
CHANGED
Binary files a/out.wav and b/out.wav differ
|
|
paraformer_logs/log/info.log
CHANGED
@@ -289,3 +289,37 @@
|
|
289 |
[INFO] 2024-02-18 22:17:12,908 [D:\DD\paraformer\runtime\python\utils\singleton.py:29] get_instance: create PuncOrtInferRuntimeSession instance finished
|
290 |
[INFO] 2024-02-18 22:17:12,909 [D:\DD\paraformer\runtime\python\utils\singleton.py:29] get_instance: create CT_Transformer instance finished
|
291 |
[INFO] 2024-02-18 22:17:12,909 [D:\DD\paraformer\runtime\python\cttPunctuator.py:26] __init__: Offline punctuator instance initialized.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
289 |
[INFO] 2024-02-18 22:17:12,908 [D:\DD\paraformer\runtime\python\utils\singleton.py:29] get_instance: create PuncOrtInferRuntimeSession instance finished
|
290 |
[INFO] 2024-02-18 22:17:12,909 [D:\DD\paraformer\runtime\python\utils\singleton.py:29] get_instance: create CT_Transformer instance finished
|
291 |
[INFO] 2024-02-18 22:17:12,909 [D:\DD\paraformer\runtime\python\cttPunctuator.py:26] __init__: Offline punctuator instance initialized.
|
292 |
+
[INFO] 2024-02-19 01:21:34,107 [D:\DD\paraformer\runtime\python\utils\singleton.py:26] get_instance: creating Campplus instance
|
293 |
+
[INFO] 2024-02-19 01:21:34,742 [D:\DD\paraformer\runtime\python\utils\singleton.py:29] get_instance: create Campplus instance finished
|
294 |
+
[INFO] 2024-02-19 01:21:38,229 [D:\DD\paraformer\runtime\python\paraformerInfer.py:51] __init__: Load onnx model dir at D:\DD\paraformer\onnx\asr_offline
|
295 |
+
[INFO] 2024-02-19 01:21:38,229 [D:\DD\paraformer\runtime\python\utils\singleton.py:26] get_instance: creating ParaformerOfflineModel instance
|
296 |
+
[INFO] 2024-02-19 01:21:38,243 [D:\DD\paraformer\runtime\python\utils\singleton.py:26] get_instance: creating AsrOfflineOrtInferRuntimeSession instance
|
297 |
+
[INFO] 2024-02-19 01:21:42,003 [D:\DD\paraformer\runtime\python\utils\singleton.py:29] get_instance: create AsrOfflineOrtInferRuntimeSession instance finished
|
298 |
+
[INFO] 2024-02-19 01:21:42,004 [D:\DD\paraformer\runtime\python\utils\singleton.py:29] get_instance: create ParaformerOfflineModel instance finished
|
299 |
+
[INFO] 2024-02-19 01:21:42,014 [D:\DD\paraformer\runtime\python\utils\singleton.py:26] get_instance: creating VadOrtInferRuntimeSession instance
|
300 |
+
[INFO] 2024-02-19 01:21:42,069 [D:\DD\paraformer\runtime\python\utils\singleton.py:29] get_instance: create VadOrtInferRuntimeSession instance finished
|
301 |
+
[INFO] 2024-02-19 01:21:42,071 [D:\DD\paraformer\runtime\python\cttPunctuator.py:24] __init__: Initializing punctuator instance with offline mode.
|
302 |
+
[INFO] 2024-02-19 01:21:42,072 [D:\DD\paraformer\runtime\python\utils\singleton.py:26] get_instance: creating CT_Transformer instance
|
303 |
+
[INFO] 2024-02-19 01:21:42,073 [D:\DD\paraformer\runtime\python\model\punc\punctuator.py:52] __init__: Loading config file D:\DD\paraformer\onnx\punc\config.pkl
|
304 |
+
[INFO] 2024-02-19 01:21:42,191 [D:\DD\paraformer\runtime\python\model\punc\punctuator.py:56] __init__: Loading config file D:\DD\paraformer\onnx\punc\config.pkl finished, takes 0.1165003776550293 s
|
305 |
+
[INFO] 2024-02-19 01:21:42,297 [D:\DD\paraformer\runtime\python\utils\singleton.py:26] get_instance: creating PuncOrtInferRuntimeSession instance
|
306 |
+
[INFO] 2024-02-19 01:21:46,213 [D:\DD\paraformer\runtime\python\utils\singleton.py:29] get_instance: create PuncOrtInferRuntimeSession instance finished
|
307 |
+
[INFO] 2024-02-19 01:21:46,214 [D:\DD\paraformer\runtime\python\utils\singleton.py:29] get_instance: create CT_Transformer instance finished
|
308 |
+
[INFO] 2024-02-19 01:21:46,215 [D:\DD\paraformer\runtime\python\cttPunctuator.py:26] __init__: Offline punctuator instance initialized.
|
309 |
+
[INFO] 2024-02-19 01:22:25,930 [D:\DD\paraformer\runtime\python\utils\singleton.py:26] get_instance: creating Campplus instance
|
310 |
+
[INFO] 2024-02-19 01:22:26,513 [D:\DD\paraformer\runtime\python\utils\singleton.py:29] get_instance: create Campplus instance finished
|
311 |
+
[INFO] 2024-02-19 01:22:30,357 [D:\DD\paraformer\runtime\python\paraformerInfer.py:51] __init__: Load onnx model dir at D:\DD\paraformer\onnx\asr_offline
|
312 |
+
[INFO] 2024-02-19 01:22:30,358 [D:\DD\paraformer\runtime\python\utils\singleton.py:26] get_instance: creating ParaformerOfflineModel instance
|
313 |
+
[INFO] 2024-02-19 01:22:30,364 [D:\DD\paraformer\runtime\python\utils\singleton.py:26] get_instance: creating AsrOfflineOrtInferRuntimeSession instance
|
314 |
+
[INFO] 2024-02-19 01:22:33,933 [D:\DD\paraformer\runtime\python\utils\singleton.py:29] get_instance: create AsrOfflineOrtInferRuntimeSession instance finished
|
315 |
+
[INFO] 2024-02-19 01:22:33,934 [D:\DD\paraformer\runtime\python\utils\singleton.py:29] get_instance: create ParaformerOfflineModel instance finished
|
316 |
+
[INFO] 2024-02-19 01:22:33,941 [D:\DD\paraformer\runtime\python\utils\singleton.py:26] get_instance: creating VadOrtInferRuntimeSession instance
|
317 |
+
[INFO] 2024-02-19 01:22:33,977 [D:\DD\paraformer\runtime\python\utils\singleton.py:29] get_instance: create VadOrtInferRuntimeSession instance finished
|
318 |
+
[INFO] 2024-02-19 01:22:33,978 [D:\DD\paraformer\runtime\python\cttPunctuator.py:24] __init__: Initializing punctuator instance with offline mode.
|
319 |
+
[INFO] 2024-02-19 01:22:33,978 [D:\DD\paraformer\runtime\python\utils\singleton.py:26] get_instance: creating CT_Transformer instance
|
320 |
+
[INFO] 2024-02-19 01:22:33,979 [D:\DD\paraformer\runtime\python\model\punc\punctuator.py:52] __init__: Loading config file D:\DD\paraformer\onnx\punc\config.pkl
|
321 |
+
[INFO] 2024-02-19 01:22:34,051 [D:\DD\paraformer\runtime\python\model\punc\punctuator.py:56] __init__: Loading config file D:\DD\paraformer\onnx\punc\config.pkl finished, takes 0.07100677490234375 s
|
322 |
+
[INFO] 2024-02-19 01:22:34,134 [D:\DD\paraformer\runtime\python\utils\singleton.py:26] get_instance: creating PuncOrtInferRuntimeSession instance
|
323 |
+
[INFO] 2024-02-19 01:22:38,115 [D:\DD\paraformer\runtime\python\utils\singleton.py:29] get_instance: create PuncOrtInferRuntimeSession instance finished
|
324 |
+
[INFO] 2024-02-19 01:22:38,116 [D:\DD\paraformer\runtime\python\utils\singleton.py:29] get_instance: create CT_Transformer instance finished
|
325 |
+
[INFO] 2024-02-19 01:22:38,117 [D:\DD\paraformer\runtime\python\cttPunctuator.py:26] __init__: Offline punctuator instance initialized.
|
speech.py
CHANGED
@@ -1,10 +1,11 @@
|
|
1 |
import os
|
|
|
2 |
|
3 |
import gradio as gr
|
4 |
import numpy as np
|
5 |
import soundfile as sf
|
6 |
-
#import torch
|
7 |
|
|
|
8 |
# import csv
|
9 |
# import json
|
10 |
# import math
|
@@ -20,9 +21,9 @@ from speechbrain.pretrained.interfaces import foreign_class
|
|
20 |
# import scipy.io.wavfile as wav
|
21 |
from paraformer import AudioReader, CttPunctuator, FSMNVad, ParaformerOffline
|
22 |
|
|
|
23 |
# import sounddevice as sd
|
24 |
# import time
|
25 |
-
# import time
|
26 |
|
27 |
|
28 |
os.environ["no_proxy"] = "localhost,127.0.0.1,::1"
|
|
|
1 |
import os
|
2 |
+
from sys import path
|
3 |
|
4 |
import gradio as gr
|
5 |
import numpy as np
|
6 |
import soundfile as sf
|
|
|
7 |
|
8 |
+
# import torch
|
9 |
# import csv
|
10 |
# import json
|
11 |
# import math
|
|
|
21 |
# import scipy.io.wavfile as wav
|
22 |
from paraformer import AudioReader, CttPunctuator, FSMNVad, ParaformerOffline
|
23 |
|
24 |
+
path.append(r"./pretrained_models")
|
25 |
# import sounddevice as sd
|
26 |
# import time
|
|
|
27 |
|
28 |
|
29 |
os.environ["no_proxy"] = "localhost,127.0.0.1,::1"
|