on-wechat-gpt / voice /voice.py
oliver2023's picture
Duplicate from linhj07/chatgpt-on-wechat
0dc9888
"""
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