Original
kotoba-tech / kotoba-whisper-v1.0
kotoba-whisper-v1.0 を、 ONNX にエクスポートして試してみました。
おんちゃんのブログに詳しく書いています。
transformer asr japanese サンプルがある。kotoba-whisper-v1.0 を ONNX に変換
$ optimum-cli export onnx --model kotoba-tech/kotoba-whisper-v1.0 --task automatic-speech-recognition kotoba-whisper-v1.0_onnx/
$ python onnx-pred.py
$ python onnx2qauntize.py
$ python onnx-pred_pro.py
$ python kotoba-whisper-v1-sample.py
$ python sample2-pro.py
$ python sample2-pro_mic_my.py
$ python onnx_pred_pro_mic_my.py
mic_stream.py
# using for class
from mic_stream import MicStream
from queue import Queue
data_queue = Queue()
mic_stream=MicStream(data_queue,level_th=3500.0,level_stop_th=3500.0,max_sec=3,low_sec=1.5)
stopper = mic_stream.start()
while True:
try:
if not data_queue.empty():
#print('get queue')
audio_data = data_queue.get()
except KeyboardInterrupt:
stopper()
break
18 commits
Python
100.0%
Original
kotoba-tech / kotoba-whisper-v1.0
kotoba-whisper-v1.0 を、 ONNX にエクスポートして試してみました。
おんちゃんのブログに詳しく書いています。
transformer asr japanese サンプルがある。kotoba-whisper-v1.0 を ONNX に変換
$ optimum-cli export onnx --model kotoba-tech/kotoba-whisper-v1.0 --task automatic-speech-recognition kotoba-whisper-v1.0_onnx/
$ python onnx-pred.py
$ python onnx2qauntize.py
$ python onnx-pred_pro.py
$ python kotoba-whisper-v1-sample.py
$ python sample2-pro.py
$ python sample2-pro_mic_my.py
$ python onnx_pred_pro_mic_my.py
mic_stream.py
# using for class
from mic_stream import MicStream
from queue import Queue
data_queue = Queue()
mic_stream=MicStream(data_queue,level_th=3500.0,level_stop_th=3500.0,max_sec=3,low_sec=1.5)
stopper = mic_stream.start()
while True:
try:
if not data_queue.empty():
#print('get queue')
audio_data = data_queue.get()
except KeyboardInterrupt:
stopper()
break
18 commits
Python
100.0%