File size: 347 Bytes
61517de
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
"""
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