Skip to content

Commit e126c30

Browse files
committed
updated readme and changelog to reflect changes in text to speech and conversation
1 parent b6bb66c commit e126c30

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
Change Log
22
==========
3+
## Version 0.8.0
4+
_2016-08-12_
5+
6+
* Fixed: Removed tag stripping from `ToSpeech()` method of the `TextToSpeech` service.
7+
* New: The `Conversation` service now accepts full conversation payload in overloaded `Message()` method.
8+
39
## Version 0.7.0
410
_2016-07-29_
511

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,16 +96,20 @@ void HandleOnRecognize (SpeechResultList result)
9696
```
9797

9898
### Text to Speech
99-
Use the [Text to Speech][text_to_speech] service to get the available voices to synthesize.
99+
Use the [Text to Speech][text_to_speech] service to get the available voices to synthesize. The Text to Speech service also supports Speech Synthesis Markup Language ([SSML][ssml]). In addition, the service supports a service-specific [expressive SSML][expressive_ssml] element.
100100

101101
```cs
102102
TextToSpeech m_TextToSpeech = new TextToSpeech();
103103
string m_TestString = "Hello! This is Text to Speech!";
104+
string m_ExpressiveText = "<speak version=\"1.0\"><prosody pitch=\"150Hz\">Hello! This is the </prosody><say-as interpret-as=\"letters\">IBM</say-as> Watson <express-as type=\"GoodNews\">Unity</express-as></prosody><say-as interpret-as=\"letters\">SDK</say-as>!</speak>";
104105

105106
void Start ()
106107
{
107108
m_TextToSpeech.Voice = VoiceType.en_GB_Kate;
108109
m_TextToSpeech.ToSpeech(m_TestString, HandleToSpeechCallback);
110+
111+
m_TextToSpeech.Voice = VoiceType.en_US_Allison;
112+
m_TextToSpeech.ToSpeech(m_ExpressiveText, HandleToSpeechCallback);
109113
}
110114

111115
void HandleToSpeechCallback (AudioClip clip)
@@ -344,7 +348,7 @@ private string m_Input = "Can you unlock the door?";
344348

345349
void Start () {
346350
Debug.Log("User: " + m_Input);
347-
m_Conversation.Message(m_WorkspaceID, m_Input, OnMessage);
351+
m_Conversation.Message(OnMessage, m_WorkspaceID, m_Input);
348352
}
349353

350354
void OnMessage (DataModels.MessageResponse resp)
@@ -2134,3 +2138,5 @@ See [CONTRIBUTING.md](.github/CONTRIBUTING.md).
21342138
[conversation_tooling]: https://www.ibmwatsonconversation.com
21352139
[retrieve_and_rank]: http://www.ibm.com/watson/developercloud/retrieve-and-rank/api/v1/
21362140
[document_conversion]: http://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/document-conversion/api/v1/
2141+
[expressive_ssml]: http://www.ibm.com/watson/developercloud/doc/text-to-speech/http.shtml#expressive
2142+
[ssml]: http://www.ibm.com/watson/developercloud/doc/text-to-speech/SSML.shtml

0 commit comments

Comments
 (0)