For example, "listening" is a combination of having a speaker and the speech_to_text service. Capabilities are combinations of hardware and Watson services that enable TJBot's functionality. TJBot has a number of capabilities that you can use to bring him to life. HorizontalFlip: false // flips the image horizontally, should not need to be overridden VerticalFlip: false, // flips the image vertically, may need to set to 'true' if the camera is installed upside-down Text: 0.1 // only list text tags with confidence > 0.5 Object: 0.5, // only list image tags with confidence > 0.5 SpeakerDeviceId: "plughw:0,0" // plugged-in USB card 1, device 0 see aplay -l for a list of playback devices Voice: undefined, // use a specific voice if undefined, a voice is chosen based on robot.gender and speak.language ServoPin: 7 // corresponds to BCM 7 / physical PIN 26 Set this to a value in seconds e.g 120 to end connection after 120 seconds of silence InactivityTimeout: -1, // -1 to never timeout or break the connection. MicrophoneDeviceId: "plughw:1,0", // plugged-in USB card 1, device 0 see arecord -l for a list of recording devices Level: 'info' // valid levels are 'error', 'warn', 'info', 'verbose', 'debug', 'silly' The entire list of hardware devices supported by tjbot lib and the configuration parameters are shown below. The default configuration of TJBot uses English as the main language with a male voice. In addition, this robot is configured to listen in Japanese and speak in English (using a female voice). This will configure your TJBot as a female robot having an LED, servo, microphone, and speaker, and with the Watson speech_to_text and text_to_speech services. Var tj = new TJBot(hardware, configuration, credentials) Ubuntu), but this usage is not officially supported. It may be possible to develop and test portions of this library on other Linux-based systems (e.g. Note: The TJBot library was developed for use on Raspberry Pi. To use these services, you will need to specify credentials for each of the Watson services you are interested in using. Similarly, speaking and listening are powered by the Watson Text to Speech and Watson Speech to Text services. For example, "seeing" is powered by the Watson Visual Recognition service. Some of TJBot's capabilities require specific IBM Watson services. This library can be used to create your own recipes for TJBot. Node.js library that encapsulates TJBot's basic capabilities: seeing, listening, speaking, shining, etc.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |