Skip to content

Watson Developer Cloud Unity SDK v0.12.0 #169

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 37 commits into from
Nov 4, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
b5f3506
added mimetype to train and update classifier
mediumTaj Sep 7, 2016
843f511
updaetd inline documentation to account for mimetype
mediumTaj Sep 8, 2016
b8e48df
callback on null classifiers in service status check in visual recogn…
mediumTaj Sep 9, 2016
5a1886b
access of ConfigLaded, public static function to clear APIKey from VR
mediumTaj Sep 9, 2016
28cdabe
expose setting RequestedWidth, RequestedHeight and RequestedFPS in th…
mediumTaj Sep 12, 2016
9b6f20b
Exposed set RawImage in WebCamDisplayWidget
mediumTaj Sep 14, 2016
cbcbf0e
fixed mistake on last commit
mediumTaj Sep 14, 2016
ff69ebf
Merge branch 'develop' into feature-vrTrainingMimeType
mediumTaj Oct 7, 2016
93a201d
Merge pull request #161 from watson-developer-cloud/feature-vrTrainin…
mediumTaj Oct 7, 2016
91d53b6
example of stt streaming
mediumTaj Oct 24, 2016
7ea8f3b
split personality insights directory to v2 and v3. v3 data models
mediumTaj Oct 24, 2016
6e266e9
personality insights v3 GetProfile and UnitTest
mediumTaj Oct 25, 2016
5350afb
added example for personality insights v3
mediumTaj Oct 25, 2016
666df85
updated readme and changelog
mediumTaj Oct 25, 2016
4cd9df5
removed long text string from readme and example, define dataPath and…
mediumTaj Oct 25, 2016
dac9ead
revised string
mediumTaj Oct 25, 2016
7122943
separating Content-Language from Accept-Language
mediumTaj Oct 25, 2016
92091f7
fix language references
mediumTaj Oct 25, 2016
5318405
formatting
mediumTaj Oct 25, 2016
d55e742
formatting, trace recording device to console
mediumTaj Oct 25, 2016
7b10cac
Merge pull request #165 from watson-developer-cloud/de-1021-personali…
germanattanasio Oct 26, 2016
040e8ab
Merge branch 'develop' into feature-sttStreamingTest
germanattanasio Oct 26, 2016
c273f0f
Merge pull request #164 from watson-developer-cloud/feature-sttStream…
germanattanasio Oct 26, 2016
cc203d5
Merge branch 'develop' into feature-sttStreamingTest
mediumTaj Oct 26, 2016
230d15e
Merge pull request #166 from watson-developer-cloud/feature-sttStream…
mediumTaj Oct 26, 2016
3797720
add editorconfig file, apply formatting to service examples
mediumTaj Oct 26, 2016
f0e55f0
forrmat widgetExamples and unittest scripts
mediumTaj Oct 26, 2016
d6b3829
format debug, logging, connector, and unit tests
mediumTaj Oct 26, 2016
7d07646
format utils
mediumTaj Oct 26, 2016
4b9abca
format widgets
mediumTaj Oct 26, 2016
4260495
format travis scripts
mediumTaj Oct 26, 2016
f4a59d9
reformat services
mediumTaj Oct 26, 2016
1da8659
Merge pull request #167 from watson-developer-cloud/feature-codeForma…
germanattanasio Oct 26, 2016
b0e3b62
updated changelog, versioned user-agent
mediumTaj Nov 4, 2016
4d179f1
removed delete customization in integration test - working fine in Un…
mediumTaj Nov 4, 2016
f5d687d
updated readme for personality insights description
mediumTaj Nov 4, 2016
2dca2e4
Merge pull request #168 from watson-developer-cloud/feature-releasePr…
germanattanasio Nov 4, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
; Top-most EditorConfig file
root = true

; Unix-style newlines
[*]
end_of_line = LF

; 2-column space indentation
[*.cs]
indent_style = space
indent_size = 2
11 changes: 8 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
Change Log
==========
## Version 0.12.0
_2016-11-4_
* New: Added streaming `SpeechToText` example.
* New: Abstraction for `Personality Insights V3`

## Version 0.11.0
_2016_10_27_
_2016-10-27_
* New: Abstracted `Speech to Text` customization methods.

## Version 0.10.0
_2016_09_23_
_2016-09-23_

* New: Added `similarity search` to the `Visual Recognition` service.
* Fix: `Touch Widget` improvmements.
* Fix: `Touch Widget` improvements.
* Fix: Disabled 3rd Party plugin warnings.
* Fix: Removed `Conversation` Message overload method that takes only input and conversationID.
* Fix: Rewrote `Conversation` example script to show how to create MessageRequest object.
Expand Down
282 changes: 282 additions & 0 deletions Examples/ServiceExamples/ExampleStreaming.unity
Original file line number Diff line number Diff line change
@@ -0,0 +1,282 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!29 &1
SceneSettings:
m_ObjectHideFlags: 0
m_PVSData:
m_PVSObjectsArray: []
m_PVSPortalsArray: []
m_OcclusionBakeSettings:
smallestOccluder: 5
smallestHole: 0.25
backfaceThreshold: 100
--- !u!104 &2
RenderSettings:
m_ObjectHideFlags: 0
serializedVersion: 7
m_Fog: 0
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
m_FogMode: 3
m_FogDensity: 0.01
m_LinearFogStart: 0
m_LinearFogEnd: 300
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
m_AmbientIntensity: 1
m_AmbientMode: 0
m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0}
m_HaloStrength: 0.5
m_FlareStrength: 1
m_FlareFadeSpeed: 3
m_HaloTexture: {fileID: 0}
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
m_DefaultReflectionMode: 0
m_DefaultReflectionResolution: 128
m_ReflectionBounces: 1
m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 0}
m_IndirectSpecularColor: {r: 0.4469244, g: 0.4967847, b: 0.575083, a: 1}
--- !u!157 &3
LightmapSettings:
m_ObjectHideFlags: 0
serializedVersion: 7
m_GIWorkflowMode: 0
m_GISettings:
serializedVersion: 2
m_BounceScale: 1
m_IndirectOutputScale: 1
m_AlbedoBoost: 1
m_TemporalCoherenceThreshold: 1
m_EnvironmentLightingMode: 0
m_EnableBakedLightmaps: 1
m_EnableRealtimeLightmaps: 1
m_LightmapEditorSettings:
serializedVersion: 4
m_Resolution: 2
m_BakeResolution: 40
m_TextureWidth: 1024
m_TextureHeight: 1024
m_AO: 0
m_AOMaxDistance: 1
m_CompAOExponent: 1
m_CompAOExponentDirect: 0
m_Padding: 2
m_LightmapParameters: {fileID: 0}
m_LightmapsBakeMode: 1
m_TextureCompression: 1
m_DirectLightInLightProbes: 1
m_FinalGather: 0
m_FinalGatherFiltering: 1
m_FinalGatherRayCount: 256
m_ReflectionCompression: 2
m_LightingDataAsset: {fileID: 0}
m_RuntimeCPUUsage: 25
--- !u!196 &4
NavMeshSettings:
serializedVersion: 2
m_ObjectHideFlags: 0
m_BuildSettings:
serializedVersion: 2
agentRadius: 0.5
agentHeight: 2
agentSlope: 45
agentClimb: 0.4
ledgeDropHeight: 0
maxJumpAcrossDistance: 0
accuratePlacement: 0
minRegionArea: 2
cellSize: 0.16666667
manualCellSize: 0
m_NavMeshData: {fileID: 0}
--- !u!1 &1159842907
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 1159842909}
- 108: {fileID: 1159842908}
m_Layer: 0
m_Name: Directional Light
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!108 &1159842908
Light:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1159842907}
m_Enabled: 1
serializedVersion: 7
m_Type: 1
m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1}
m_Intensity: 1
m_Range: 10
m_SpotAngle: 30
m_CookieSize: 10
m_Shadows:
m_Type: 2
m_Resolution: -1
m_CustomResolution: -1
m_Strength: 1
m_Bias: 0.05
m_NormalBias: 0.4
m_NearPlane: 0.2
m_Cookie: {fileID: 0}
m_DrawHalo: 0
m_Flare: {fileID: 0}
m_RenderMode: 0
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_Lightmapping: 4
m_AreaSize: {x: 1, y: 1}
m_BounceIntensity: 1
m_ShadowRadius: 0
m_ShadowAngle: 0
--- !u!4 &1159842909
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1159842907}
m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261}
m_LocalPosition: {x: 0, y: 3, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 1
--- !u!1 &1391086061
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 1391086066}
- 20: {fileID: 1391086065}
- 92: {fileID: 1391086064}
- 124: {fileID: 1391086063}
- 81: {fileID: 1391086062}
m_Layer: 0
m_Name: Main Camera
m_TagString: MainCamera
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!81 &1391086062
AudioListener:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1391086061}
m_Enabled: 1
--- !u!124 &1391086063
Behaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1391086061}
m_Enabled: 1
--- !u!92 &1391086064
Behaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1391086061}
m_Enabled: 1
--- !u!20 &1391086065
Camera:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1391086061}
m_Enabled: 1
serializedVersion: 2
m_ClearFlags: 1
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
m_NormalizedViewPortRect:
serializedVersion: 2
x: 0
y: 0
width: 1
height: 1
near clip plane: 0.3
far clip plane: 1000
field of view: 60
orthographic: 0
orthographic size: 5
m_Depth: -1
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingPath: -1
m_TargetTexture: {fileID: 0}
m_TargetDisplay: 0
m_TargetEye: 3
m_HDR: 0
m_OcclusionCulling: 1
m_StereoConvergence: 10
m_StereoSeparation: 0.022
m_StereoMirrorMode: 0
--- !u!4 &1391086066
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1391086061}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 1, z: -10}
m_LocalScale: {x: 1, y: 1, z: 1}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
--- !u!1 &1646685149
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 1646685151}
- 114: {fileID: 1646685150}
m_Layer: 0
m_Name: ExampleStreaming
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1646685150
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1646685149}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 6c5299c1c838a8c44b49ecc9254704e0, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!4 &1646685151
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1646685149}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 2
8 changes: 8 additions & 0 deletions Examples/ServiceExamples/ExampleStreaming.unity.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

37 changes: 19 additions & 18 deletions Examples/ServiceExamples/Scripts/ExampleAlchemyDataNews.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,30 +16,31 @@
*/

using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using IBM.Watson.DeveloperCloud.Services.AlchemyAPI.v1;
using IBM.Watson.DeveloperCloud.Logging;
using System;

public class ExampleAlchemyDataNews : MonoBehaviour {
private AlchemyAPI m_AlchemyAPI = new AlchemyAPI();

void Start () {
LogSystem.InstallDefaultReactors();
public class ExampleAlchemyDataNews : MonoBehaviour
{
private AlchemyAPI m_AlchemyAPI = new AlchemyAPI();

string[] returnFields = {Fields.ENRICHED_URL_ENTITIES, Fields.ENRICHED_URL_KEYWORDS};
Dictionary<string, string> queryFields = new Dictionary<string, string>();
queryFields.Add(Fields.ENRICHED_URL_RELATIONS_RELATION_SUBJECT_TEXT, "Obama");
queryFields.Add(Fields.ENRICHED_URL_CLEANEDTITLE, "Washington");
void Start()
{
LogSystem.InstallDefaultReactors();

if (!m_AlchemyAPI.GetNews(OnGetNews, returnFields, queryFields))
Log.Debug("ExampleAlchemyData", "Failed to get news!");
}
string[] returnFields = { Fields.ENRICHED_URL_ENTITIES, Fields.ENRICHED_URL_KEYWORDS };
Dictionary<string, string> queryFields = new Dictionary<string, string>();
queryFields.Add(Fields.ENRICHED_URL_RELATIONS_RELATION_SUBJECT_TEXT, "Obama");
queryFields.Add(Fields.ENRICHED_URL_CLEANEDTITLE, "Washington");

private void OnGetNews(NewsResponse newsData, string data)
{
if(newsData != null)
Log.Debug("ExampleAlchemyData", "status: {0}", newsData.status);
}
if (!m_AlchemyAPI.GetNews(OnGetNews, returnFields, queryFields))
Log.Debug("ExampleAlchemyData", "Failed to get news!");
}

private void OnGetNews(NewsResponse newsData, string data)
{
if (newsData != null)
Log.Debug("ExampleAlchemyData", "status: {0}", newsData.status);
}
}
Loading