mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-07-20 13:47:15 +08:00
[voice] add google voice support
This commit is contained in:
@@ -11,7 +11,7 @@ class Channel(object):
|
||||
"""
|
||||
raise NotImplementedError
|
||||
|
||||
def handle(self, msg):
|
||||
def handle_text(self, msg):
|
||||
"""
|
||||
process received msg
|
||||
:param msg: message object
|
||||
@@ -29,3 +29,6 @@ class Channel(object):
|
||||
|
||||
def build_reply_content(self, query, context=None):
|
||||
return Bridge().fetch_reply_content(query, context)
|
||||
|
||||
def build_void_text(self, voice_file):
|
||||
return Bridge().fetch_voice_to_text(voice_file)
|
||||
|
||||
Reference in New Issue
Block a user