mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-02-20 01:30:01 +08:00
16 lines
345 B
Python
16 lines
345 B
Python
"""
|
|
Voice service abstract class
|
|
"""
|
|
|
|
class Voice(object):
|
|
def voiceToText(self, voice_file):
|
|
"""
|
|
Send voice to voice service and get text
|
|
"""
|
|
raise NotImplementedError
|
|
|
|
def textToVoice(self, text):
|
|
"""
|
|
Send text to voice service and get voice
|
|
"""
|
|
raise NotImplementedError |