author2
1Instructables6,112Views22CommentsJoined November 10th, 2016
Developer, Designer, Researcher

Achievements

  • TJBot - Build a Talking Robot With Watson Conversation

    Hi Luke,The error above indicates you may be posting audio to the speech to text services that is above the normal payload. Normally this should not occur after a single short sentence (which is well below the limit). I just tested the STT service locally and it does work fine at my location.A few things I would suggest ...- If possible, please do try out a new set of STT credentials (it is possibly that your current credentials are in being used in a different application hence the limits)- Also try the to run the STT sample and let me know if you still have the same issue.- Please open an issue on Github - its easier to follow up there and track our discussion. https://github.com/ibmtjbot/tjbot/issues/new- Victor.

    View Instructable »
  • TJBot - Build a Talking Robot With Watson Conversation

    Hi Alan,The above error is helpful in troubleshooting. The way the TJBot library is designed, there should be no call to "pulse" or LED since "led" is not specified as a config parameter in the conversation.js recipe.The correct way to disable LED is to not have it in the config parameter.var hardware = ['microphone', 'speaker'];One thing we can try is to uninstall and reinstall your node_modules.sudo rm -rf node_modulesnpm install.I see you have posted on gitub, lets continue the conversation therehttps://github.com/ibmtjbot/tjbot/issues/37-V.

    Hi Ooduc,Glad you were able to resolve the credentials issue!We have fixed the "no text crash".To get the latest update you can run reinstall the libary by running the code below.rm -rf node_modulesnpm install-V.

    It might be the case that your json file might be corrupted?Perhaps consider downloading a new copy of the file and uploading that?-V.

    View Instructable »
  • TJBot - Build a Talking Robot With Watson Conversation

    Hi RobertR337,It appears you have created your dialog to have two consecutive turns ( user, TJ, TJ, user). Does the user say anything between these turns? Usually each party has a SINGLE turn - user, TJ, user, TJ, user, TJ etc. To maintain this pattern ... will the following work?user: .. lets to to marsTJ: okay heading to @planet(mars) sounds great. Are you ready to go?user: awesome! Firing up rocket, checking sensors and gadgets. Launching in three. two. one. zero ...Does this help? Im unsure I fully understand the issue. Please also see this link for a quick primer on designing a conversation dialog. https://www.ibm.com/watson/developercloud/doc/conversation/dialog-build.htmlBtw .. we can move this conversation to github.Thanks.

    View Instructable »
  • TJBot - Build a Talking Robot With Watson Conversation

    HI tejasking62It appears there is an issue playing audio through your speaker. The first thing to confirm is to ensure that your raspberry is able to play audio through bluetooth. If not, I'd recommend you play audio via an audio jack or usb audio.Next, please check for your speaker device id ... you can do this by running the following in command line aplay -L (it should list bluetooth speaker as a pulseaudio device) .. node your device id. For example if your device id is 2, you use the -D plughw:2,0 parameter in playing audio. If it is 3 -D plughw:2,0Finally, you can modify the way you play audio by adding your microphone device id. In conversation.js (line 163) add your device id parameter to the aplay command.var create_audio = exec('aplay -D plughw:0,0 output.wav', function (er...

    see more »

    HI tejasking62It appears there is an issue playing audio through your speaker. The first thing to confirm is to ensure that your raspberry is able to play audio through bluetooth. If not, I'd recommend you play audio via an audio jack or usb audio.Next, please check for your speaker device id ... you can do this by running the following in command line aplay -L (it should list bluetooth speaker as a pulseaudio device) .. node your device id. For example if your device id is 2, you use the -D plughw:2,0 parameter in playing audio. If it is 3 -D plughw:2,0Finally, you can modify the way you play audio by adding your microphone device id. In conversation.js (line 163) add your device id parameter to the aplay command.var create_audio = exec('aplay -D plughw:0,0 output.wav', function (error, stdout, stderr)Feel free to post a new issue for further followup on githubhttps://github.com/ibmtjbot/tjbot/issues/new-V.

    View Instructable »
  • TJBot - Use your voice to control a light with Watson

    Hi MauricioM82,You are correct, the issue is definitely related to the app having difficulty setting up audio. For arecord on command line, do you pass any parameters for your app to work correctly ? For example if your sound input might be listed with an unexpected hardware ID or might need several parameters to work. To find out your hardware device ID run arecord -L ,and then specify that as a parameter when you instantiate the mic in stt.js.In the sample apps we provide, we use the mic npm library (https://www.npmjs.com/package/mic) to record audio. You can provide hardware options when you instantiate your mic to record audio e.g var micInstance = mic({ 'rate': '44100', 'channels': '2', 'debug': false, 'exitOnSilence': 6, 'device': 'plughw:1,0' });A related issue (solved) on reco...

    see more »

    Hi MauricioM82,You are correct, the issue is definitely related to the app having difficulty setting up audio. For arecord on command line, do you pass any parameters for your app to work correctly ? For example if your sound input might be listed with an unexpected hardware ID or might need several parameters to work. To find out your hardware device ID run arecord -L ,and then specify that as a parameter when you instantiate the mic in stt.js.In the sample apps we provide, we use the mic npm library (https://www.npmjs.com/package/mic) to record audio. You can provide hardware options when you instantiate your mic to record audio e.g var micInstance = mic({ 'rate': '44100', 'channels': '2', 'debug': false, 'exitOnSilence': 6, 'device': 'plughw:1,0' });A related issue (solved) on recording from a bluetooth and usb mic can be found here https://github.com/ibmtjbot/tjbot/issues/12

    Great!We use the RGB Neopixel LED based on the ws2812 protocol.https://www.adafruit.com/products/1734Really look forward to seeing what you build! Pictures, videos ? You can share on twitter #tjbotV.

    View Instructable »
  • Build a talking robot with Watson Conversation

    HI CallistoB,This tends to occur when the pi needs some time to synchronize a datastream sent over hdmi in some cases. This time is usually fixed so you can add some initial text that plays first e.g (Hello there. Hello what can I do for you?). Another alternative is to use a 3.5mm audio output or usb audio.Please see the link below for additional information.www.instructables.com/id/Build-a-Talking-Robot-Wit...

    View Instructable »
  • Build a Waving Robot using Watson Services - TJBot Edition

    Hi ...The right way to install pigpio (and all other dependencies) would be to run npm install ... in your home directory. Have you been able to do this ?-V

    From your description, all appears to be ok!I just looked through the config.default.js file, and see there are some case difference (error on my part ... missed that in a recent change). Its possible that in our config file the variable name case might be slightly difference from whats used in wave.js. Specifically ... should be exports.STTPassword and not exports.STTpassword.... sorry about this ...Please give it a try and let me know ....Also feel free to reach out on tjbot@us.ibm.com or open an issue directly on the github repository ... https://github.com/victordibia/tjwave/issues/new . I look forward to seeing what you build .. post on twitter (#tjbot)exports.STTPassword = ''; // Speech to text passwordexports.STTUsername = ''; // Speech to text usernameexports.STTCustomization...

    see more »

    From your description, all appears to be ok!I just looked through the config.default.js file, and see there are some case difference (error on my part ... missed that in a recent change). Its possible that in our config file the variable name case might be slightly difference from whats used in wave.js. Specifically ... should be exports.STTPassword and not exports.STTpassword.... sorry about this ...Please give it a try and let me know ....Also feel free to reach out on tjbot@us.ibm.com or open an issue directly on the github repository ... https://github.com/victordibia/tjwave/issues/new . I look forward to seeing what you build .. post on twitter (#tjbot)exports.STTPassword = ''; // Speech to text passwordexports.STTUsername = ''; // Speech to text usernameexports.STTCustomizationid = '' // Speech to text Customization id (if you are using a customized language model)//Credentials for Watson Text to Speech serviceexports.TTSPassword = ''; // Text to speech passwordexports.TTSUsername = '';// Credentials for Watson Conversation serviceexports.ConPassword = ''; // conversation service passwordexports.ConUsername = ''; // conversation service usernameexports.ConWorkspace = ''; // Conversation workspace id// Credentials for Vision Apiexports.VisionKey = '';exports.VisionVersion = '2016-05-19';exports.version = 'v1';

    Hi,Glad you could get the arm and LED moving!The error you see suggests that your credentials have not been entered into config.js or you may have entered it into a config.js file in a different directory.Please ensure that your credentials are in the file exactly named config.js and not config.default.js or config.sample.js. Also ensure that you have config.js in the correct folder. This should work out well.best.-V

    View Instructable »
  • Build a talking robot with Watson Conversation

    Hi Pedro,Thanks for sharing the error above.From your screenshot, it appears you have only mentioned your keyword and have not said anything else. For example "Watson how are you doing" will send the text "how are you doing" to the conversation api. Saying only "Watson" will send an empty text to the conversation api, hence your error. Another good way to get quick help is to open an issue describing your problem on github (https://github.com/ibmtjbot/tjbot/issues/new)Best.V.

    View Instructable »
  • Build a talking robot with Watson Conversation

    Hi Xmrrobot,Its super cool that you are working on this! Sorry about the error, I'm happy to help you troubleshoot this. A few things1.) Verify you have the correct credentials in config.js (make sure its not empty also)2.) Verify that you have an active internet connection on your pi (pop open a browser window verify you are able to open google.com or any other webpage)3.) If the above doesnt work, send us a copy of your project files at (tjbot [@] us.ibm.com).Victor.

    View Instructable »
    • Build a Waving Robot using Watson Services - TJBot Edition
      1,075 views
      19 favorites
      2 comments
  • Build a talking robot with Watson Conversation

    Hi AlexanderT78,Can you paste your conversation.js code, just to verify you have the recent file?To be completely sure, try downloading the project again from github, adding you credentials and running again.Victor.

    View Instructable »
  • Build a talking robot with Watson Conversation

    Hi Alexander,Thanks for reporting this. There was a speech to text parameter (smart_formatting) that was incorrectly specified as string. This has now been corrected (conversation.js, line 91). Please pull the repo again to test.Victor

    View Instructable »
  • victordibia followed Makeblock Robotics8 months ago
      • How to Use Scratch or Arduino to Program a MBot
      • 3D Capture B by Makeblock
      •  How to do a cartoon project with Airblock and paper cups
  • Build a Waving Robot using Watson Services - TJBot Edition

    Hi,Thanks! More info on tjbot can be found here .. https://www.ibm.com/blogs/research/2016/11/calling-makers-meet-tj-bot/ .There are also some really nice instructables on it too https://www.instructables.com/howto/tjbot/

    View Instructable »
  • victordibia made the instructable Build TJ Bot out of Cardboard9 months ago
    Build TJ Bot out of Cardboard

    Awesome process piecing each part of the lasercut TJBot together!

    View Instructable »
  • Use your voice to control a light with Watson

    Hi MarkK236,Can you confirm you have set up your bluemix speech to text credentials correctly in config.js?Usually if your speech-to-text credentials are incorrect (or missing), you will get this error. Please see step 5 for how to add your Bluemix credentials to config.jshttps://www.instructables.com/id/Use-Your-Voice-to-...Please let me know if this helps!V.

    View Instructable »