Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I integrate Bluemix Conversation and Speech-To-Text and Text-To-Speech

I would like to use the Bluemix Conversation sample application
and add speech input and output to it. There are other sample applications for Bluemix TTS and STT available. What are options to integrate these 3 functions and which of them are recommended for beginners?

like image 722
jpsstack Avatar asked Jul 25 '16 13:07

jpsstack


2 Answers

There are no immediate plans to provide a 'simple' sample app which demonstrates combining Watson STT (Speech to Text), Conversation, and TTS (Text to Speech). Longer term it is definitely on the radar.

In the immediate term, to get an idea as to how to do this, please take a look at the car-dashboard app code:

  • https://github.com/watson-developer-cloud/car-dashboard/blob/master/ui/index.html#L85
  • https://github.com/watson-developer-cloud/car-dashboard/tree/master/ui/ibm
  • https://github.com/watson-developer-cloud/car-dashboard/tree/master/speech
  • https://github.com/watson-developer-cloud/car-dashboard/blob/master/ui/ibm/stream_speech_to_text.js#L34

The car dashboard app uses the IBM Watson Speech JS SDK: https://github.com/watson-developer-cloud/speech-javascript-sdk

Hopefully this helps.

like image 58
Dan O'Connor Avatar answered Sep 20 '22 23:09

Dan O'Connor


This is an old question, but IBM Watson is still evolving so this may be a more up-to-date answer.

You have 2 options.

You can simply have your app submit an HTTP REST request (either GET or POST) by following this tutorial

Or you can leverage a language-specific SDK.

If you're using nodejs, then check out this example.

For java, see this example.

Edit

Here's an example git project I created to integrate text-to-speech to the conversation-simple sample app: conversation-simple-with-text-to-speech

Here's the specific commit where the integration was added: commit 3564aeb

like image 34
kane Avatar answered Sep 20 '22 23:09

kane