Example #1
0
    def __init__(self):
        RecognizeCallback.__init__(self)
        self.dataString = ""
        self.dataList = []

        self.__WatsonSentencePublisher = rospy.Publisher(
            '/emerald_ai/io/speech_to_text', String, queue_size=10)
        self.__WatsonWordPublisher = rospy.Publisher(
            '/emerald_ai/io/speech_to_text/word', String, queue_size=10)
        self.__WatsonSentencePartPublisher = rospy.Publisher(
            '/emerald_ai/io/speech_to_text/data', String, queue_size=10)
Example #2
0
    def __init__(self, key, url):
        """Call super constructors and auth to IBM sdk by creating sdk stt interface

        Args:
            url (str): The IBM API url can be found in service credentials of stt service
            key (str): The IBM API key can be found in service credentials of stt service

        """
        ProcessService.__init__(self)
        RecognizeCallback.__init__(self)
        self.url = url
        self.key = key
        self.interface = SpeechToTextV1(iam_apikey=self.key, url=self.url)
 def __init__(self):
     RecognizeCallback.__init__(self)
 def __init__(self):
     RecognizeCallback.__init__(self)
Example #5
0
 def __init__(self, parent):
     RecognizeCallback.__init__(self)
     self._parent = parent
 def __init__(self):
     RecognizeCallback.__init__(self)
     self.error = None
     self.transcript = None
Example #7
0
 def __init__(self):
     self.transcribedText = ''
     RecognizeCallback.__init__(self)
Example #8
0
    def __init__(self):
        """initialize the callback
        :return: None
        """

        RecognizeCallback.__init__(self)
Example #9
0
 def __init__(self):
     RecognizeCallback.__init__(self)
     self.text = ""
Example #10
0
 def __init__(self):
     RecognizeCallback.__init__(self)
     self.my_data = None
     self.my_transcript = None
Example #11
0
 def __init__(self):
     RecognizeCallback.__init__(self)
     print("Callback set.")