Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

SIC

SIC is a framework for quickly getting started with social robotics by making it simple to combine complex devices such as Nao’s and powerful services such as Google Dialogflow.

Installation

You can find the instructions on how to install the framework here: Install

API

The goal of SIC is to provide easy to use high level access to devices and services. Playing sound on

class DemoText2Speech(SICApplication):
    def run(self):
        # configure and connect services and devices
        conf = Text2SpeechConf(keyfile="path/to/google_key_file.json")
        tts = self.connect(Text2Speech, device_id='local', conf=conf)
        
        speaker = self.connect(DesktopSpeakers, device_id='local')
        
        # Convert text to audio and play audio
        audio = tts.request(GetSpeechRequest(text="Hello, how are you?"))
        speaker.send_message(audio)
        
        # wait for audio to complete
        time.sleep(10)
       
if __name__ == '__main__':
    test_app = DemoText2Speech()
    test_app.run()

  • No labels