[voice] add support for whisper-1 model

This commit is contained in:
wanggang
2023-03-08 11:32:27 +08:00
parent 882e6c3576
commit d7a8854fa1
4 changed files with 13 additions and 7 deletions

View File

@@ -3,6 +3,7 @@
google voice service
"""
import pathlib
import subprocess
import time
import speech_recognition
@@ -12,7 +13,6 @@ from voice.voice import Voice
class GoogleVoice(Voice):
tmpFilePath = './tmp/'
recognizer = speech_recognition.Recognizer()
engine = pyttsx3.init()