mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-07-20 05:27:59 +08:00
[voice] add support for whisper-1 model
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user