webchat / voice /voice.py
hhz520's picture
Upload 170 files
61517de
raw
history blame contribute delete
No virus
347 Bytes
"""
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