How can I integrate Bluemix Conversation and Speech-To-Text and Text-To-Speech
Asked Answered
V

3

6

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?

Vista answered 25/7, 2016 at 13:4 Comment(3)
Bluemix and node? If there is not a hard committment to Bluemix, i'd suggest at least looking at the WebRTC samples which cover lots of speech features in a general fashion that may be simple and without the layer of IBM enterprise pixie stuff ( extra complexity may be distraction for learning how things work ). re: github.com/andrenatal/speechrtc webrtc.github.io/samples/src/content/getusermedia/record for examples. developer.ibm.com/answers/questions/174118/…Cementation
Hi Robert, thx, will look into this.Vista
@PeterSchleinitz thx for accepting my answer. I added my own sample project where you can see how I integrated TTS to the conversation-simple appLemming
H
5

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:

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

Hopefully this helps.

Hengel answered 25/7, 2016 at 23:50 Comment(0)
G
4

I did something along these lines with the Dialog service demo app and the Speech JS SDK a few months ago:

http://speech-dialog.mybluemix.net/

Full code is on github but almost all of the changes were in this commit.

Note that it was built on an older beta of the SDK. You can get the latest release from github releases or npm (for use with webpack/browserify/etc.) and there are lots of examples.

Genni answered 26/7, 2016 at 19:59 Comment(2)
The Dialog service is now deprecated. Is your code example still relevant?Lemming
Somewhat. The new Conversation service is basically a replacement for Dialog, and it has a more advanced demo with speech built-in: conversation-demo.mybluemix.net (using a newer version of the same SDK)Genni
L
4

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

Lemming answered 27/11, 2016 at 0:34 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.