Initial Commit

This commit is contained in:
2025-07-04 20:33:06 +03:00
commit 8f09347ae0
9219 changed files with 2447903 additions and 0 deletions
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: fa5b1e45038614147909d00d7914e82b
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,173 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: ae5a46bda3295124c99b0e6537ac7252, type: 3}
m_Name: Live Understanding - WitConfiguration
m_EditorClassIdentifier:
_clientAccessToken: JYSZFUVTNXFZ4N3LAHJMDS6JOET2IBVP
_appInfo:
name: voicesdk_samples_shapes
id: 04b6d9fc-60b7-4d9e-8473-9290b9d1243f
lang: en
isPrivate: 0
createdAt: 2023-04-04T10:35:19-0700
trainingStatus: 1
lastTrainDuration: 36
lastTrainedAt: 2023-04-04T10:36:17-0700
nextTrainAt: 2023-04-04T10:35:41-0700
intents:
- id: 196347333139222
name: change_color
entities:
- name: color:color
id: 629054192387147
- name: shape:shape
id: 239839848416213
entities:
- name: color
id: 183423817885903
lookups:
- free-text
- keywords
roles:
- name: color
id: 629054192387147
keywords:
- keyword: black
synonyms:
- black
- keyword: blue
synonyms:
- blue
- keyword: brown
synonyms:
- brown
- keyword: gold
synonyms:
- gold
- keyword: green
synonyms:
- green
- keyword: magenta
synonyms:
- magenta
- keyword: maroon
synonyms:
- maroon
- red
- keyword: orange
synonyms:
- orange
- keyword: pink
synonyms:
- pink
- keyword: purple
synonyms:
- purple
- keyword: red
synonyms:
- red
- keyword: violet
synonyms:
- violet
- keyword: white
synonyms:
- white
- keyword: yellow
synonyms:
- yellow
- name: shape
id: 2277400329106527
lookups:
- keywords
roles:
- name: shape
id: 239839848416213
keywords:
- keyword: capsule
synonyms:
- capsule
- keyword: cube
synonyms:
- cube
- square
- keyword: cylinder
synonyms:
- cylinder
- tube
- keyword: sphere
synonyms:
- ball
- sphere
traits: []
voices:
- name: Charlie
locale: en_US
gender: male
styles:
- default
- soft
- fast
- projected
- name: Cooper
locale: en_US
gender: male
styles:
- default
- soft
- formal
- fast
- projected
- name: Prospector
locale: en_US
gender: male
styles:
- default
- name: Rebecca
locale: en_US
gender: female
styles:
- default
- soft
- formal
- fast
- projected
- name: Vampire
locale: en_US
gender: male
styles:
- default
- soft
- formal
- fast
- projected
composer:
canvases: []
_configurationId: 4e21a24e472ab684e84db753427d5687
timeoutMS: 10000
endpointConfiguration:
_uriScheme:
_authority:
_port: 0
_witApiVersion:
_message:
_speech:
_dictation:
_synthesize:
_event:
_converse:
isDemoOnly: 1
useConduit: 0
_manifestLocalPath:
excludedAssemblies:
- Oculus.Voice.Demo, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
- Meta.WitAi.Samples, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
relaxedResolution: 0
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: c0e2e0312d2a4094e8ec9d778f08e326
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 39670f1c7d5f53949b4cbbd6ae757ba8
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: feb647f55272ed243b403e8d49d2b78d
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,80 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Shapes
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
m_ValidKeywords: []
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailMask:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailNormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _BumpScale: 1
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _GlossMapScale: 1
- _Glossiness: 0.5
- _GlossyReflections: 1
- _Metallic: 0
- _Mode: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _UVSec: 0
- _ZWrite: 1
m_Colors:
- _Color: {r: 0, g: 0, b: 0, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
m_BuildTextureStacks: []
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: c308d59ea4c8e9b40a439c30d47d6089
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,84 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Skybox
m_Shader: {fileID: 106, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords: _SUNDISK_HIGH_QUALITY
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailMask:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailNormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
- _AtmosphereThickness: 1.54
- _BumpScale: 1
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _Exposure: 1
- _GlossMapScale: 1
- _Glossiness: 0.5
- _GlossyReflections: 1
- _Metallic: 0
- _Mode: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _SunDisk: 2
- _SunSize: 0
- _SunSizeConvergence: 5
- _UVSec: 0
- _ZWrite: 1
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _GroundColor: {r: 1, g: 1, b: 1, a: 1}
- _SkyTint: {r: 0.3773585, g: 0.2076738, b: 0, a: 1}
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: cb59a6597e9b4674c91427326a27be17
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: ec6d4a3244d6e6d4488431c42f74acd6
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,83 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* Licensed under the Oculus SDK License Agreement (the "License");
* you may not use the Oculus SDK except in compliance with the License,
* which is provided at the time of installation or download, or which
* otherwise accompanies this software in either electronic or hard copy form.
*
* You may obtain a copy of the License at
*
* https://developer.oculus.com/licenses/oculussdk/
*
* Unless required by applicable law or agreed to in writing, the Oculus SDK
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
using Meta.WitAi;
using Meta.WitAi.Data;
using UnityEngine;
namespace Meta.Voice.Samples.LiveUnderstanding
{
public class LiveUnderstandingColorChanger : MonoBehaviour
{
[Tooltip("Changes the color of all renderers inside this container")]
[SerializeField] private Transform _container;
// Constants
private const string COLOR_SET_INTENT_ID = "change_color";
private const string COLOR_ENTITY_ID = "color:color";
// On validate callback
public void OnValidatePartialResponse(VoiceSession sessionData)
{
string intentName = sessionData.response.GetIntentName();
if (string.Equals(intentName, COLOR_SET_INTENT_ID))
{
string[] colorNames = sessionData.response.GetAllEntityValues(COLOR_ENTITY_ID);
if (colorNames != null && colorNames.Length > 0)
{
OnValidateColorSet(sessionData, colorNames[0]);
}
}
}
// Validate & set color
public void OnValidateColorSet(VoiceSession sessionData, string color)
{
Color c;
if (TryGetColor(color, out c))
{
SetColor(c);
sessionData.validResponse = true;
}
}
// Try to get a color
private bool TryGetColor(string colorName, out Color color)
{
// Check default
if (ColorUtility.TryParseHtmlString(colorName, out color))
{
return true;
}
// Failed
return false;
}
// Set color
public void SetColor(Color newColor)
{
Renderer[] renderers = _container.GetComponentsInChildren<Renderer>(true);
foreach (var r in renderers)
{
r.material.color = newColor;
}
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 225433a0c6686a24e85a3ab0e1d0630e
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,16 @@
{
"name": "Meta.Voice.Samples.LiveUnderstanding",
"references": [
"GUID:4504b1a6e0fdcc3498c30b266e4a63bf",
"GUID:1c28d8b71ced07540b7c271537363cc6"
],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: baaa3b50d57e56447bac374c0e7aa2f2
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant: