Skip to content

Commit

Permalink
Merge pull request #486 from chughts/sessfix
Browse files Browse the repository at this point in the history
Assistant V1 and V2 Fixes
  • Loading branch information
chughts committed Dec 14, 2020
2 parents 9235457 + adb5de1 commit dcdb4a9
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 3 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ Node-RED Watson Nodes for IBM Cloud
<a href="https://cla-assistant.io/watson-developer-cloud/node-red-node-watson"><img src="https://cla-assistant.io/readme/badge/watson-developer-cloud/node-red-node-watson" alt="CLA assistant" /></a>


### New in version 0.9.3
- Assistant V1 - Fix alternateIntents setting.
- Assistant V2 - Allow return of request session id.
- Update list of supported languages in Speech to Text, Text to Speech and Translation nodes.

### New in version 0.9.2
- Assistant V2 - Fix bug session expiry bug.

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-red-node-watson",
"version": "0.9.2",
"version": "0.9.3",
"description": "A collection of Node-RED nodes for IBM Watson services",
"dependencies": {
"async": "^1.5.2",
Expand Down
4 changes: 2 additions & 2 deletions services/assistant/v2.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
<div class="form-row">
<label>&nbsp;</label>
<input type="checkbox" id="node-input-persist-session-id" style="display: inline-block; width: auto; vertical-align: top;">
<label for="node-input-persist-session-id" style="width: 70%;">Set to true to return session_id that was provided with request.</label>
<label for="node-input-persist-session-id" style="width: 70%;">Return session_id from request.</label>
</div>

<div class="form-tips" id="assistantv2-form-tips">
Expand All @@ -120,7 +120,7 @@
a session_id need not be provided, to reset the session_id in single-session mode
send a null value as the session_id.
Format: String </li>
<li><code>msg.params.reset_session</code> (optional): Will force a session reset
<li><code>msg.params.reset_session</code> (optional): Will force a session reset
Format: Any </li>
<li><code>msg.params.assistant_id</code> : unique identifier of the assistant to be used. Could be also configured in the node. Format: String </li>
<li><code>msg.params.timeout</code> (optional): The timeout period (in millisecond) for Watson request. Leave empty or set to 0 to disable. </li>
Expand Down
18 changes: 18 additions & 0 deletions services/language_translator/v3-doc.html
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,9 @@

doctor.LANGUAGES = { 'ar' : 'Arabic',
'arz': 'Spoken Arabic',
'eu' : 'Basque',
'bn' : 'Bengali',
'bs' : 'Bosnian',
'bg' : 'Bulgarian',
'ca' : 'Catalan',
'cs' : 'Czech',
Expand All @@ -221,6 +224,7 @@
'es' : 'Spanish',
'et' : 'Estonian',
'fr' : 'French',
'fr-CA' : 'French Canadian',
'fi' : 'Finnish',
'ga' : 'Galican',
'he' : 'Hebrew',
Expand All @@ -230,21 +234,35 @@
'id' : 'Indonesian',
'it' : 'Italian',
'de' : 'German',
'gu' : 'Gujarati',
'ja' : 'Japanese',
'lv' : 'Latvian',
'lt' : 'Lithuanian',
'ms' : 'Malay',
'ml' : 'Malayalam',
'mt' : 'Maltese',
'cnr' : 'Montenegrin',
'ne' : 'Nepali',
'pt' : 'Portuguese',
'ko' : 'Korean',
'nb' : 'Norwegian Bokmål',
'nl' : 'Dutch',
'pl' : 'Polish',
'ro' : 'Romanian',
'ru' : 'Russian',
'sr' : 'Serbian',
'si' : 'Sinhalese',
'sk' : 'Slovak',
'sl' : 'Slovenian',
'sv' : 'Swedish',
'ta' : 'Tamil',
'te' : 'Telugu',
'th' : 'Thai',
'tr' : 'Turkish',
'uk' : 'Ukrainian',
'ur' : 'Urdu',
'vi' : 'Vietnamese',
'cy' : 'Welsh',
'zh' : 'Chinese',
'zh-TW' : 'Taiwanese',
'zht' : 'Traditional Chinese'
Expand Down
18 changes: 18 additions & 0 deletions services/language_translator/v3.html
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,9 @@

tor.LANGUAGES = { 'ar' : 'Arabic',
'arz': 'Spoken Arabic',
'eu' : 'Basque',
'bn' : 'Bengali',
'bs' : 'Bosnian',
'bg' : 'Bulgarian',
'ca' : 'Catalan',
'cs' : 'Czech',
Expand All @@ -239,8 +242,10 @@
'es' : 'Spanish',
'et' : 'Estonian',
'fr' : 'French',
'fr-CA' : 'French Canadian',
'fi' : 'Finnish',
'ga' : 'Galican',
'gu' : 'Gujarati',
'he' : 'Hebrew',
'hi' : 'Hindi',
'hr' : 'Croatian',
Expand All @@ -249,20 +254,33 @@
'it' : 'Italian',
'de' : 'German',
'ja' : 'Japanese',
'lv' : 'Latvian',
'lt' : 'Lithuanian',
'ms' : 'Malay',
'ml' : 'Malayalam',
'mt' : 'Maltese',
'cnr' : 'Montenegrin',
'ne' : 'Nepali',
'pt' : 'Portuguese',
'ko' : 'Korean',
'nb' : 'Norwegian Bokmål',
'nl' : 'Dutch',
'pl' : 'Polish',
'ro' : 'Romanian',
'ru' : 'Russian',
'sr' : 'Serbian',
'si' : 'Sinhalese',
'sk' : 'Slovak',
'sl' : 'Slovenian',
'sv' : 'Swedish',
'ta' : 'Tamil',
'te' : 'Telugu',
'th' : 'Thai',
'tr' : 'Turkish',
'uk' : 'Ukrainian',
'ur' : 'Urdu',
'vi' : 'Vietnamese',
'cy' : 'Welsh',
'zh' : 'Chinese',
'zh-TW' : 'Taiwanese',
'zht' : 'Traditional Chinese'
Expand Down
3 changes: 3 additions & 0 deletions services/speech_to_text/v1.html
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,9 @@
'pt-BR': 'Portuguese Braziilian',
'en-UK': 'UK English',
'en-GB': 'UK English',
'en-AU': 'Australian English',
'de-DE': 'German',
'fr-CA': 'French Canadian',
'fr-FR': 'French',
'nl-NL': 'Dutch',
'it-IT': 'Italian',
Expand All @@ -238,6 +240,7 @@
'es-AR': 'Spanish (Argentinian)',
'es-PE': 'Spanish (Peruvian)',
'ar-AR': 'Arablic',
'ar-MS': 'Arablic (MS)',
'ko-KR': 'Korean',
'ja-JP': 'Japanese'
};
Expand Down
3 changes: 3 additions & 0 deletions services/text_to_speech/v1.html
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@
//tts.voice_selected = '';
tts.LANGUAGES = { 'en-US': 'US English',
'en-GB': 'UK English',
'en-AU': 'Australian English',
'pt-BR': 'Portuguese Brazilian',
'fr-FR': 'French',
'it-IT': 'Italian',
Expand All @@ -131,6 +132,8 @@
'es-LA': 'Latin American Spanish',
'es-US': 'US Spanish',
'ar-AR': 'Arablic',
'ar-MS': 'Arablic (MS)',
'ko-KR': 'Korean',
'ja-JP': 'Japanese'
};

Expand Down

0 comments on commit dcdb4a9

Please sign in to comment.