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
+8
View File
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 0530e23eb440f324887aa74334894b91
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 3597726fd8c2c7e4592c2af5ac612809
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 1bf44bf29cbd02d42b5d097c98d86698
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,24 @@
%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: a0e3df96a2504a0085121315689deb30, type: 3}
m_Name: Built In Timer - Sample
m_EditorClassIdentifier:
title: Built-in NLP Timer Sample
description: This demo showcases the use of the built in NLP apps. You get these
when choosing a language instead of Custom App when creating your first wit config.
These built ins support some common voice commands like "Set a timer for 5 minutes."
tileImage: {fileID: 2800000, guid: 2a2ef91e171cab74e85d37b6b5487ad5, type: 3}
screenshot: {fileID: 0}
sceneReference: {fileID: 102900000, guid: 9e6f8accd4b079d40b3603449f318633, type: 3}
packageSampleName: Built-In Timer
sampleSetId: Voice SDK Samples
priority: 2
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 1105bef47c57816459598b667b5175b6
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

@@ -0,0 +1,135 @@
fileFormatVersion: 2
guid: 2a2ef91e171cab74e85d37b6b5487ad5
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMasterTextureLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 1
wrapV: 1
wrapW: 0
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
cookieLightType: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: cb2482d0309574547a6ca4bf80a3533f
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,23 @@
%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: a0e3df96a2504a0085121315689deb30, type: 3}
m_Name: Chess with Conduit - Sample
m_EditorClassIdentifier:
title: Chess with Conduit Sample
description: A sample that uses voice interactions to perform simple chess interactions.
This demo is also set up with Conduit for easier implementation and quicker performance.
tileImage: {fileID: 2800000, guid: 8d4779f100af3f5458fcd579406b3c9a, type: 3}
screenshot: {fileID: 0}
sceneReference: {fileID: 102900000, guid: bc6c1dc4788d56e40bd6ed2286344a1b, type: 3}
packageSampleName: Chess with Conduit
sampleSetId: Voice SDK Samples
priority: 6
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 55ab435aed4205c4d92a39036d22b62e
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

After

Width:  |  Height:  |  Size: 202 KiB

@@ -0,0 +1,135 @@
fileFormatVersion: 2
guid: 8d4779f100af3f5458fcd579406b3c9a
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMasterTextureLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 0
wrapV: 0
wrapW: 0
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
cookieLightType: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 274245fd34f40024abced03d79c11f6c
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,23 @@
%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: a0e3df96a2504a0085121315689deb30, type: 3}
m_Name: Light Traits - Sample
m_EditorClassIdentifier:
title: Light Traits Sample
description: A scene that demonstrates using traits to turn a light on or off with
voice.
tileImage: {fileID: 2800000, guid: c1711d6e3de49474c98e1c4311398598, type: 3}
screenshot: {fileID: 0}
sceneReference: {fileID: 102900000, guid: f6550828a620ba34aba5738d783f1006, type: 3}
packageSampleName: Light Traits
sampleSetId: Voice SDK Samples
priority: 5
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 11c95440a0e854a4aaa420f7d8d37527
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

After

Width:  |  Height:  |  Size: 215 KiB

@@ -0,0 +1,135 @@
fileFormatVersion: 2
guid: c1711d6e3de49474c98e1c4311398598
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMasterTextureLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 0
wrapV: 0
wrapW: 0
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
cookieLightType: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: d540318c9b295f14c9142c64852267c4
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,24 @@
%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: a0e3df96a2504a0085121315689deb30, type: 3}
m_Name: Live Understanding - Sample
m_EditorClassIdentifier:
title: Live Understanding Sample
description: A sample that demonstrates short response handling via live understanding.
Simply activate a voice interaction and state a color for an immediate deactivation
& color application.
tileImage: {fileID: 2800000, guid: 46f63a0a90188954eb3a578b4defe785, type: 3}
screenshot: {fileID: 0}
sceneReference: {fileID: 102900000, guid: 39670f1c7d5f53949b4cbbd6ae757ba8, type: 3}
packageSampleName: Live Understanding
sampleSetId: Voice SDK Samples
priority: 4
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 02a42dda8965d3a4d8b12a6058ebb1f2
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

After

Width:  |  Height:  |  Size: 248 KiB

@@ -0,0 +1,135 @@
fileFormatVersion: 2
guid: 46f63a0a90188954eb3a578b4defe785
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMasterTextureLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 0
wrapV: 0
wrapW: 0
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
cookieLightType: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 3f65b0b1babae1a46b965ba76470fb61
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,30 @@
%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: a0e3df96a2504a0085121315689deb30, type: 3}
m_Name: Shapes - Sample
m_EditorClassIdentifier:
title: Shapes Sample
description: 'This demo showcases the capabilities of the Voice SDK in recognizing
voice commands and translating them into actions within a 2D scene using inspector
based tools. It is best used in play mode in the editor so you can see how voice
commands are processed in real time.
In this demo, users can activate and
say the name of a shape and the color you would like it to change to. For example,
"Make the Cube Red"'
tileImage: {fileID: 2800000, guid: e227a4e87f5b251408b0035aeb15fcae, type: 3}
screenshot: {fileID: 0}
sceneReference: {fileID: 102900000, guid: e2afa732d18be6e43943396fdcda205d, type: 3}
packageSampleName: Shapes
sampleSetId: Voice SDK Samples
priority: 0
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 906babf5e5f629740962b197fabef88a
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

@@ -0,0 +1,140 @@
fileFormatVersion: 2
guid: e227a4e87f5b251408b0035aeb15fcae
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 11
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 0
wrapV: 0
wrapW: 0
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
applyGammaDecoding: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 4096
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 0
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 4096
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 0
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Android
maxTextureSize: 4096
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 0
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: WebGL
maxTextureSize: 4096
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 0
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 2985cc865353f7b4d873e3c918c35701
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,33 @@
%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: a0e3df96a2504a0085121315689deb30, type: 3}
m_Name: Shapes with Conduit - Sample
m_EditorClassIdentifier:
title: Shapes with Conduit Sample
description: 'This demo showcases the capabilities of the Voice SDK in recognizing
voice commands and translating them into actions within a 2D scene using Conduit
to trigger methods directly with [MatchIntent] annotations.
It is best
used in play mode in the editor so you can see how voice commands are processed
in real time.
In this demo, users can activate and say the name of a shape
and the color you would like it to change to. For example, "Make the Cube Red"'
tileImage: {fileID: 2800000, guid: 50d3d6b80001a124e80bddda429f963c, type: 3}
screenshot: {fileID: 0}
sceneReference: {fileID: 102900000, guid: 5aa24c94acb775043bd5c44d48c21d68, type: 3}
packageSampleName: Shapes with Conduit
sampleSetId: Voice SDK Samples
priority: 1
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 5757f344bdd268949b1dde4f5a3bb51c
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

@@ -0,0 +1,140 @@
fileFormatVersion: 2
guid: 50d3d6b80001a124e80bddda429f963c
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 11
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 0
wrapV: 0
wrapW: 0
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
applyGammaDecoding: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 4096
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 0
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 4096
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 0
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Android
maxTextureSize: 4096
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 0
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: WebGL
maxTextureSize: 4096
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 0
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 86a531381cbfe1241b00391e6748f564
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,23 @@
%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: a0e3df96a2504a0085121315689deb30, type: 3}
m_Name: TTS Voices - Sample
m_EditorClassIdentifier:
title: TTS Voices Sample
description: A sample scene for performing text-to-speech requests by customizing
two voices and having them speak.
tileImage: {fileID: 2800000, guid: 6a3a8152e0be7454fa26d9ba0ad6c0a7, type: 3}
screenshot: {fileID: 0}
sceneReference: {fileID: 102900000, guid: e99baad8337e84a4f93e76c76b8ce49b, type: 3}
packageSampleName: TTS Voices
sampleSetId: Voice SDK Samples
priority: 3
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 3b748d3e544c4de48a2574bc204af974
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

After

Width:  |  Height:  |  Size: 158 KiB

@@ -0,0 +1,135 @@
fileFormatVersion: 2
guid: 6a3a8152e0be7454fa26d9ba0ad6c0a7
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMasterTextureLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 0
wrapV: 0
wrapW: 0
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
cookieLightType: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,19 @@
%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: a249c5c9df69431f935e9e49b478eab4, type: 3}
m_Name: Voice Events Diagram
m_EditorClassIdentifier:
_displayName: Voice Events Diagram
_prefix: Documentation/
_context: {fileID: 11400000, guid: f2e797de12b196c40ad409b92d6394fc, type: 2}
_priority: 0
_image: {fileID: 2800000, guid: f9d0f3319db97e04181db42930d90a4f, type: 3}
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 6e58a9ace5b6fca4f9dd16688c7974cf
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
+8
View File
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 99f1150eff2851942ad6226802e42307
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: eecb7c4b510d577449bb41342bbc1b23
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 1bfb7ddc6964ad149808272cd3d23c6c
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 9ba9fc263f3e43f4980af677857ac268
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,23 @@
%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: a0e3df96a2504a0085121315689deb30, type: 3}
m_Name: Dictation - Sample
m_EditorClassIdentifier:
title: Dictation Sample
description: A simple dictation example that shows activation & continuous wit
powered dictation.
tileImage: {fileID: 2800000, guid: 2891b87fce4e6014fb1b139272e49719, type: 3}
screenshot: {fileID: 0}
sceneReference: {fileID: 102900000, guid: 3a8c4fc64087e144b845d1afe890c5ba, type: 3}
packageSampleName: Dictation
sampleSetId: Voice SDK Samples
priority: 100
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 94a69914db4e817499b358815448549e
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.

After

Width:  |  Height:  |  Size: 120 KiB

@@ -0,0 +1,92 @@
fileFormatVersion: 2
guid: 2891b87fce4e6014fb1b139272e49719
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 11
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 0
wrapV: 0
wrapW: 0
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
applyGammaDecoding: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: ce565818b48ace445bb96419f9c2646a
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,32 @@
fileFormatVersion: 2
guid: c752b70a94dcf04498081eda98206e9c
PluginImporter:
externalObjects: {}
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 0
isOverridable: 1
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
- first:
Android: Android
second:
enabled: 1
settings: {}
- first:
Any:
second:
enabled: 0
settings: {}
- first:
Editor: Editor
second:
enabled: 0
settings:
DefaultValueInitialized: true
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 1d52e6a286831c642b5fbb7d06f80182
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,67 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &7025344876703661356
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 3310282155954220998}
- component: {fileID: 1323671023378674162}
m_Layer: 0
m_Name: DictationService
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &3310282155954220998
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7025344876703661356}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 1.0366372, y: -4.517428, z: 17.832829}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &1323671023378674162
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7025344876703661356}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: a0020bf728a658b4dbbd34ac2be0e14e, type: 3}
m_Name:
m_EditorClassIdentifier:
configuration:
multiPhrase: 0
scenario: default
inputType: text_default
onPartialTranscriptionChanged:
m_PersistentCalls:
m_Calls: []
onFinalTranscriptionReceived:
m_PersistentCalls:
m_Calls: []
onDictationError:
m_PersistentCalls:
m_Calls: []
onMicrophoneLevelChanged:
m_PersistentCalls:
m_Calls: []
onDictationStarted:
m_PersistentCalls:
m_Calls: []
onDictationStopped:
m_PersistentCalls:
m_Calls: []
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: ba31729cfe8be2642a8bcac537765e59
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 284ad7ac52e5ea445b37746d1c53b1b0
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: e09021722fb9eb449a5277e47da3f54e
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,453 @@
%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: Dictation Sample - WitConfiguration
m_EditorClassIdentifier:
_clientAccessToken: HOKEABS7HPIQVSRSVWRPTTV75TQJ5QBP
_appInfo:
name: Built-in Models
id: voiceSDK_en
lang: en
isPrivate: 0
createdAt:
trainingStatus: 0
lastTrainDuration: 0
lastTrainedAt:
nextTrainAt:
intents:
- id: 897504424223811
name: wit$add_time_timer
entities: []
- id: 541438527164499
name: wit$add_to_playlist
entities: []
- id: 887283025240109
name: wit$cancel
entities: []
- id: 829935924385746
name: wit$check_weather_condition
entities: []
- id: 306952631193690
name: wit$confirmation
entities: []
- id: 377154377139380
name: wit$create_alarm
entities: []
- id: 418752679692656
name: wit$create_playlist
entities: []
- id: 365611011710102
name: wit$create_timer
entities: []
- id: 1033582527390432
name: wit$decrease_volume
entities: []
- id: 883987129203457
name: wit$delete_alarm
entities: []
- id: 247929240550715
name: wit$delete_playlist
entities: []
- id: 557555652118025
name: wit$delete_timer
entities: []
- id: 421700242885150
name: wit$dislike_music
entities: []
- id: 270102601621744
name: wit$fast_forward_track
entities: []
- id: 387498056115658
name: wit$get_alarms
entities: []
- id: 415840899887272
name: wit$get_date
entities: []
- id: 438703477461413
name: wit$get_sunrise
entities: []
- id: 375415767405106
name: wit$get_sunset
entities: []
- id: 4289162121138059
name: wit$get_temperature
entities: []
- id: 232518205474455
name: wit$get_time
entities: []
- id: 893990681247881
name: wit$get_time_until_date
entities: []
- id: 393845445654783
name: wit$get_timer
entities: []
- id: 549084829680351
name: wit$get_track_info
entities: []
- id: 3011049075798095
name: wit$get_weather
entities: []
- id: 1014318852665058
name: wit$go_back
entities: []
- id: 1031968647622673
name: wit$go_forward
entities: []
- id: 284911926808943
name: wit$increase_volume
entities: []
- id: 547658879873191
name: wit$like_music
entities: []
- id: 236590765151252
name: wit$loop_music
entities: []
- id: 4404756796280183
name: wit$negation
entities: []
- id: 4432284356859008
name: wit$nevermind
entities: []
- id: 831865090860258
name: wit$open_resource
entities: []
- id: 3014340998807022
name: wit$pause
entities: []
- id: 162448539383689
name: wit$pause_music
entities: []
- id: 629110521422335
name: wit$pause_timer
entities: []
- id: 1749588415235689
name: wit$play
entities: []
- id: 866056607377214
name: wit$play_music
entities: []
- id: 258248752970902
name: wit$play_podcast
entities: []
- id: 1030753921087273
name: wit$previous_track
entities: []
- id: 3112795525710499
name: wit$remove_from_playlist
entities: []
- id: 1641652012695476
name: wit$repeat_response
entities: []
- id: 391429655722707
name: wit$replay_track
entities: []
- id: 407662237413103
name: wit$resume
entities: []
- id: 658111892259804
name: wit$resume_music
entities: []
- id: 229892845779856
name: wit$resume_timer
entities: []
- id: 252614883454919
name: wit$rewind_track
entities: []
- id: 4540198562705611
name: wit$select_item
entities: []
- id: 2081412638678468
name: wit$share
entities: []
- id: 588748799212186
name: wit$shuffle_playlist
entities: []
- id: 917880522495837
name: wit$silence_alarm
entities: []
- id: 329368558953931
name: wit$skip_track
entities: []
- id: 2842638329380270
name: wit$snooze_alarm
entities: []
- id: 411892023684057
name: wit$stop
entities: []
- id: 238496474960073
name: wit$stop_music
entities: []
- id: 151481930517141
name: wit$subtract_time_timer
entities: []
- id: 620928052622542
name: wit$unloop_music
entities: []
- id: 1315332902220652
name: wit$unshuffle_playlist
entities: []
entities:
- name: wit$amount_of_money
id: 535a8110-2ea7-414f-a024-cf928b076d17
lookups: []
roles:
- name: amount_of_money
id: 388070769579971
keywords: []
- name: wit$datetime
id: 535a810f-8911-4bfe-976a-6e3c193f1251
lookups: []
roles:
- name: datetime
id: 457759871937748
keywords: []
- name: wit$distance
id: 535a80ff-e693-40c1-b67e-6f3e8e7144b8
lookups: []
roles:
- name: distance
id: 376395644039832
keywords: []
- name: wit$duration
id: 535a80fb-4be9-4991-a48e-8b2ca4ef6e54
lookups: []
roles:
- name: duration
id: 4245444588888025
keywords: []
- name: wit$email
id: 535a8107-7041-417d-b500-670b30d5267e
lookups: []
roles:
- name: email
id: 990197371827121
keywords: []
- name: wit$location
id: 535a80ff-6399-4653-8b2a-c770dd014965
lookups: []
roles:
- name: location
id: 699151467676773
keywords: []
- name: wit$phone_number
id: 535a810c-3885-41fe-a36f-3adfff96d72c
lookups: []
roles:
- name: phone_number
id: 535400004231868
keywords: []
- name: wit$quantity
id: 53d850ab-b009-4da5-9201-180aa916c5d4
lookups: []
roles:
- name: quantity
id: 390632932585329
keywords: []
- name: wit$temperature
id: 535a80f3-766b-49e7-bfb9-f4dedafc10aa
lookups: []
roles:
- name: temperature
id: 603855104116898
keywords: []
- name: wit$url
id: 535a80e6-23ec-43de-9c60-ed1d7f450157
lookups: []
roles:
- name: url
id: 2978877842431482
keywords: []
- name: wit$volume
id: 5a0cd7ec-754d-4ad5-abfa-413275a5f674
lookups: []
roles:
- name: volume
id: 358779385927032
keywords: []
traits:
- name: wit$bye
id: 5900cc2e-09ed-4764-800c-11e7566acfac
values:
- id: 955a38ae-f188-46ba-ab6d-4988c5a4bea6
value: true
- name: wit$greetings
id: 5900cc2d-41b7-45b2-b21f-b950d3ae3c5c
values:
- id: 547401529279585
value: true
- name: wit$sentiment
id: 5ac2b50a-44e4-466e-9d49-bad6bd40092c
values:
- id: 561371444570330
value: negative
- id: 1621429681354257
value: neutral
- id: 2522989351346070
value: positive
- name: wit$thanks
id: 5900cc2d-867c-4bf0-beb6-ef6e6bf45ca5
values:
- id: e5cce196-9948-420c-a9fb-9c2fd201adaf
value: true
voices:
- name: Cael
locale: en_US
gender: male
styles:
- default
- soft
- formal
- fast
- projected
- name: Cam
locale: en_US
gender: male
styles:
- default
- soft
- formal
- fast
- projected
- name: Carl
locale: en_US
gender: male
styles:
- default
- soft
- formal
- fast
- projected
- name: Charlie
locale: en_US
gender: male
styles:
- default
- soft
- fast
- projected
- name: Cody
locale: en_US
gender: male
styles:
- default
- soft
- formal
- fast
- projected
- name: Connor
locale: en_US
gender: male
styles:
- default
- soft
- formal
- 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: Railey
locale: en_US
gender: female
styles:
- default
- soft
- formal
- fast
- projected
- name: Rebecca
locale: en_US
gender: female
styles:
- default
- soft
- formal
- fast
- projected
- name: Remi
locale: en_US
gender: female
styles:
- default
- soft
- formal
- fast
- projected
- name: Rubie
locale: en_US
gender: female
styles:
- default
- soft
- formal
- fast
- projected
- name: Vampire
locale: en_US
gender: male
styles:
- default
- soft
- formal
- fast
- projected
- name: Colin
locale: en_CA
gender: male
styles:
- default
- soft
- formal
- fast
- projected
- name: Rosie
locale: en_CA
gender: female
styles:
- default
- soft
- formal
- fast
- projected
composer:
canvases: []
_configurationId: 5c466a63-d903-4970-90ec-1b8929253e84
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: cf747878b0776f44884853a7fe2ea4c8
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 8ee7784e909f62f46bc0446a0a0fe0ae
folderAsset: yes
DefaultImporter:
externalObjects: {}
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: a179d7f204d6abd488033e6085dd7043
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 49b48c0b655307b4fa5b71c105fd7930
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 3a8c4fc64087e144b845d1afe890c5ba
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: d36adaaad49194346a8d99f8ff0ab6e9
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,32 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the license found in the
* LICENSE file in the root directory of this source tree.
*/
using Meta.WitAi.Dictation;
using UnityEngine;
using UnityEngine.Serialization;
namespace Meta.Voice.Samples.Dictation
{
public class DictationActivation : MonoBehaviour
{
[FormerlySerializedAs("dictation")]
[SerializeField] private DictationService _dictation;
public void ToggleActivation()
{
if (_dictation.MicActive)
{
_dictation.Deactivate();
}
else
{
_dictation.Activate();
}
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 8304dcac029408f42893d86756f3cc30
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,47 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the license found in the
* LICENSE file in the root directory of this source tree.
*/
using UnityEngine;
using TMPro;
namespace Meta.Voice.Samples.Dictation
{
public class SimpleLabelResizer : MonoBehaviour
{
[SerializeField] private TextMeshProUGUI _label;
private string _text;
private void Reset()
{
_label = gameObject.GetComponent<TextMeshProUGUI>();
}
private void Awake()
{
if (_label == null)
{
_label = gameObject.GetComponent<TextMeshProUGUI>();
}
}
private void Update()
{
if (!string.Equals(_text, _label.text))
{
RefreshSize();
}
}
public void RefreshSize()
{
_text = _label.text;
float preferredHeight = _label.preferredHeight;
_label.rectTransform.SetSizeWithCurrentAnchors(RectTransform.Axis.Vertical, preferredHeight);
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 514ba6b315e97374e81991951a802240
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,18 @@
{
"name": "Meta.Voice.Samples.Dictation",
"references": [
"GUID:1c28d8b71ced07540b7c271537363cc6",
"GUID:4504b1a6e0fdcc3498c30b266e4a63bf",
"GUID:910a956078d2ff4429c717211dcfaecb",
"GUID:6055be8ebefd69e48b49212b09b47b2f"
],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 33e189c6e0423344cba4faa96a127602
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 2a72e9375732a1c439d3e991372e6a25
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: ad3861f68f5f6ec4e8ccc1ddfbd7129c
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,53 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the license found in the
* LICENSE file in the root directory of this source tree.
*/
using System.IO;
using Meta.WitAi;
using Meta.WitAi.Dictation;
using Meta.WitAi.Windows;
using UnityEditor;
using UnityEngine;
namespace Oculus.Voice.Dictation
{
[CustomEditor(typeof(AppDictationExperience))]
public class AppDictationExperienceEditor : Editor
{
[SerializeField] private string transcribeFile;
public override void OnInspectorGUI()
{
base.OnInspectorGUI();
if (EditorApplication.isPlaying)
{
GUILayout.BeginVertical(EditorStyles.helpBox);
GUILayout.Label("File Transcriber");
GUILayout.BeginHorizontal();
transcribeFile = EditorGUILayout.TextField(transcribeFile);
if (GUILayout.Button("Browse", GUILayout.Width(75)))
{
var pickedFile = EditorUtility.OpenFilePanel("Select File", "", "wav");
if (!string.IsNullOrEmpty(pickedFile))
{
transcribeFile = pickedFile;
}
}
GUILayout.EndHorizontal();
if (File.Exists(transcribeFile) && GUILayout.Button("Transcribe"))
{
var dictationService = ((AppDictationExperience)target).GetComponent<WitDictation>();
dictationService.TranscribeFile(transcribeFile);
}
GUILayout.EndVertical();
}
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 294403565ca76cd44a221a07f911e80d
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 95c8c3f7c517467f9a7d4365ca7f1f19
timeCreated: 1656510929
@@ -0,0 +1,30 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the license found in the
* LICENSE file in the root directory of this source tree.
*/
using Meta.WitAi.Configuration;
using Meta.WitAi.Data;
using UnityEditor;
using UnityEngine;
namespace Oculus.Voice.Dictation.Data
{
public class AppDictationDataCreation
{
[MenuItem("Assets/Create/Voice SDK/Add App Dictation Experience to Scene", false, 100)]
public static void AddVoiceCommandServiceToScene()
{
var witGo = new GameObject();
witGo.name = "App Dictation Experience";
var wit = witGo.AddComponent<AppDictationExperience>();
wit.RuntimeDictationConfiguration = new WitDictationRuntimeConfiguration
{
witConfiguration = WitDataCreation.FindDefaultWitConfig()
};
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 55d3bf29671d34b9c84160431ee2429d
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: c6000f2708bf4d37b50eddbac06db445
timeCreated: 1656458466
@@ -0,0 +1,23 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the license found in the
* LICENSE file in the root directory of this source tree.
*/
using UnityEditor;
using UnityEngine;
namespace Oculus.Voice.Dictation.Inspectors
{
[CustomPropertyDrawer(typeof(WitDictationRuntimeConfigDrawer))]
public class WitDictationRuntimeConfigDrawer : PropertyDrawer
{
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
{
base.OnGUI(position, property, label);
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: ad073cad346af44a281dd01c4d8a4a3c
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,22 @@
{
"name": "VoiceSDK.Dictation.Editor",
"rootNamespace": "",
"references": [
"GUID:7fc7076089fdfbc4399cba40cc3b0dd6",
"GUID:910a956078d2ff4429c717211dcfaecb",
"GUID:fa958eb9f0171754fb207d563a15ddfa",
"GUID:4504b1a6e0fdcc3498c30b266e4a63bf",
"GUID:1c28d8b71ced07540b7c271537363cc6"
],
"includePlatforms": [
"Editor"
],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: fb043033254d90e46b4abaa2879909ea
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: c0babb0488968124c85712d1bf12da58
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: c188f83b2845a4c6db26cf96dc004cf2
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: ea91106e590de2945938dd234262b37e
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,16 @@
using System;
using UnityEngine;
namespace Oculus.Voice.Dictation.Configuration
{
[Serializable]
public class DictationConfiguration
{
[Tooltip("Re-open the mic after the final transcription. Useful for long form content/messaging.")]
public bool multiPhrase;
[Tooltip("Hint about the scenario that the user is dictating. Default to package name. In the future we might have messaging, search, general, etc")]
public string scenario = "default";
[Tooltip("Input types: text_default: Normal text, numeric: Numbers, email: Email addresses")]
public string inputType = "text_default";
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 07b07eeddd4fd7847a488c8fb590b5e9
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 6b7302946fb0f1e4299eb699e30c7449
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,40 @@
namespace Oculus.Voice.Dictation.Listeners
{
public interface DictationListener
{
/// <summary>
/// Called when dictation has started
/// </summary>
void OnStart(DictationListener listener);
/// <summary>
/// Called when mic level changes. Used for building UI.
/// </summary>
/// <param name="micLevel"></param>
void OnMicAudioLevel(float micLevel);
/// <summary>
/// Called with current predicted transcription. Could change as user speaks.
/// </summary>
/// <param name="transcription"></param>
void OnPartialTranscription(string transcription);
/// <summary>
/// Final transcription of what the user has said
/// </summary>
/// <param name="transcription"></param>
void OnFinalTranscription(string transcription);
/// <summary>
/// Called when there was an error with the dictation service
/// </summary>
/// <param name="errorType">The type of error encountered</param>
/// <param name="errorMessage">Human readable message describing the error</param>
void OnError(string errorType, string errorMessage);
/// <summary>
/// Called when the dictation session is done
/// </summary>
void OnStopped(DictationListener listener);
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 809d25c26f051e44991a37caa328aa7a
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 0768efab3897ba744a6ad727b7bc28ee
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,458 @@
/*
* 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 System;
using System.Globalization;
using Meta.Voice;
using Meta.WitAi;
using Meta.WitAi.Configuration;
using Meta.WitAi.Data.Configuration;
using Meta.WitAi.Dictation;
using Meta.WitAi.Dictation.Data;
using Meta.WitAi.Interfaces;
using Meta.WitAi.Requests;
using Oculus.Voice.Dictation.Bindings.Android;
using Oculus.VoiceSDK.Utilities;
using Oculus.Voice.Core.Bindings.Android.PlatformLogger;
using Oculus.Voice.Core.Bindings.Interfaces;
using UnityEngine;
namespace Oculus.Voice.Dictation
{
public class AppDictationExperience : DictationService, IWitRuntimeConfigProvider, IWitConfigurationProvider
{
[SerializeField] private WitDictationRuntimeConfiguration runtimeConfiguration;
[Tooltip("Uses platform dictation service instead of accessing wit directly from within the application.")]
[SerializeField] private bool usePlatformServices;
[Tooltip("Dictation will not fallback to Wit if platform dictation is not available. Not applicable in Unity Editor")]
[SerializeField] private bool doNotFallbackToWit;
[Tooltip("Enables logs related to the interaction to be displayed on console")]
[SerializeField] private bool enableConsoleLogging;
public WitRuntimeConfiguration RuntimeConfiguration => runtimeConfiguration;
public WitDictationRuntimeConfiguration RuntimeDictationConfiguration
{
get => runtimeConfiguration;
set => runtimeConfiguration = value;
}
public WitConfiguration Configuration => RuntimeConfiguration?.witConfiguration;
private IDictationService _dictationServiceImpl;
private IVoiceSDKLogger _voiceSDKLogger;
/// <summary>
/// True if the user currently has requested dictation to be active. This will remain true until a Deactivate
/// method is called and we will reactivate when the mic stops as a result.
/// </summary>
private bool _isActive;
private DictationSession _activeSession;
private WitRequestOptions _activeRequestOptions;
public DictationSession ActiveSession => _activeSession;
public WitRequestOptions ActiveRequestOptions => _activeRequestOptions;
public event Action OnInitialized;
private static string PACKAGE_VERSION => VoiceSDKConstants.SdkVersion;
#if UNITY_ANDROID && !UNITY_EDITOR
public bool HasPlatformIntegrations => usePlatformServices && _dictationServiceImpl is PlatformDictationImpl;
#else
public bool HasPlatformIntegrations => false;
#endif
public bool UsePlatformIntegrations
{
get => usePlatformServices;
set
{
// If we're trying to turn on platform services and they're not currently active we
// will forcably reinit and try to set the state.
if (usePlatformServices != value || HasPlatformIntegrations != value)
{
usePlatformServices = value;
#if UNITY_ANDROID && !UNITY_EDITOR
VLog.D($"{(usePlatformServices ? "Enabling" : "Disabling")} platform integration.");
InitDictation();
#endif
}
}
}
public bool DoNotFallbackToWit
{
get => doNotFallbackToWit;
set => doNotFallbackToWit = value;
}
private void InitDictation()
{
// Check voice sdk version
if (string.IsNullOrEmpty(PACKAGE_VERSION))
{
VLog.E("No SDK Version Set");
}
// Clean up if we're switching to native C# wit impl
if (!UsePlatformIntegrations)
{
if (_dictationServiceImpl is PlatformDictationImpl)
{
((PlatformDictationImpl) _dictationServiceImpl).Disconnect();
}
if (_voiceSDKLogger is VoiceSDKPlatformLoggerImpl)
{
try
{
((VoiceSDKPlatformLoggerImpl)_voiceSDKLogger).Disconnect();
}
catch (Exception e)
{
VLog.E($"Disconnection error: {e.Message}");
}
}
}
#if UNITY_ANDROID && !UNITY_EDITOR
var loggerImpl = new VoiceSDKPlatformLoggerImpl();
loggerImpl.Connect(PACKAGE_VERSION);
_voiceSDKLogger = loggerImpl;
if (UsePlatformIntegrations)
{
VLog.D("Checking platform dictation capabilities...");
var platformDictationImpl = new PlatformDictationImpl(this);
platformDictationImpl.OnServiceNotAvailableEvent += OnPlatformServiceNotAvailable;
platformDictationImpl.Connect(PACKAGE_VERSION);
if (platformDictationImpl.PlatformSupportsDictation)
{
_dictationServiceImpl = platformDictationImpl;
_dictationServiceImpl.DictationEvents = DictationEvents;
_dictationServiceImpl.TelemetryEvents = TelemetryEvents;
platformDictationImpl.SetDictationRuntimeConfiguration(RuntimeDictationConfiguration);
VLog.D("Dictation platform init complete");
_voiceSDKLogger.IsUsingPlatformIntegration = true;
}
else
{
OnPlatformServiceNotAvailable();
}
}
else
{
RevertToWitDictation();
}
#else
_voiceSDKLogger = new VoiceSDKConsoleLoggerImpl();
RevertToWitDictation();
#endif
_voiceSDKLogger.WitApplication = RuntimeDictationConfiguration?.witConfiguration?.GetLoggerAppId();
_voiceSDKLogger.ShouldLogToConsole = enableConsoleLogging;
OnInitialized?.Invoke();
}
private void OnPlatformServiceNotAvailable()
{
#if !UNITY_EDITOR
if (DoNotFallbackToWit)
{
VLog.D("Platform dictation service unavailable. Falling back to WitDictation is disabled");
DictationEvents.OnError?.Invoke("Platform dictation unavailable", "Platform dictation service is not available");
return;
}
#endif
VLog.D("Platform dictation service unavailable. Falling back to WitDictation");
RevertToWitDictation();
}
private void OnDictationServiceNotAvailable()
{
VLog.D("Dictation service unavailable");
DictationEvents.OnError?.Invoke("Dictation unavailable", "Dictation service is not available");
}
private void RevertToWitDictation()
{
WitDictation witDictation = GetComponent<WitDictation>();
if (null == witDictation)
{
witDictation = gameObject.AddComponent<WitDictation>();
witDictation.hideFlags = HideFlags.HideInInspector;
}
witDictation.RuntimeConfiguration = RuntimeDictationConfiguration;
witDictation.DictationEvents = DictationEvents;
witDictation.TelemetryEvents = TelemetryEvents;
_dictationServiceImpl = witDictation;
VLog.D("WitDictation init complete");
_voiceSDKLogger.IsUsingPlatformIntegration = false;
}
protected override void OnEnable()
{
base.OnEnable();
if (MicPermissionsManager.HasMicPermission())
{
InitDictation();
}
else
{
MicPermissionsManager.RequestMicPermission((e) => InitDictation());
}
DictationEvents.OnRequestInitialized.AddListener(OnRequestInit);
DictationEvents.OnStartListening.AddListener(OnStarted);
DictationEvents.OnStoppedListening.AddListener(OnStopped);
DictationEvents.OnComplete.AddListener(OnComplete);
DictationEvents.OnDictationSessionStarted.AddListener(OnDictationSessionStarted);
DictationEvents.OnPartialTranscription.AddListener(OnPartialTranscription);
DictationEvents.OnFullTranscription.AddListener(OnFullTranscription);
TelemetryEvents.OnAudioTrackerFinished.AddListener(OnAudioDurationTrackerFinished);
}
protected override void OnDisable()
{
#if UNITY_ANDROID
if (_dictationServiceImpl is PlatformDictationImpl platformDictationImpl)
{
platformDictationImpl.Disconnect();
}
if (_voiceSDKLogger is VoiceSDKPlatformLoggerImpl loggerImpl)
{
loggerImpl.Disconnect();
}
#endif
_dictationServiceImpl = null;
_voiceSDKLogger = null;
DictationEvents.OnRequestInitialized.RemoveListener(OnRequestInit);
DictationEvents.OnStartListening.RemoveListener(OnStarted);
DictationEvents.OnStoppedListening.RemoveListener(OnStopped);
DictationEvents.OnComplete.RemoveListener(OnComplete);
DictationEvents.OnDictationSessionStarted.RemoveListener(OnDictationSessionStarted);
DictationEvents.OnPartialTranscription.RemoveListener(OnPartialTranscription);
DictationEvents.OnFullTranscription.RemoveListener(OnFullTranscription);
TelemetryEvents.OnAudioTrackerFinished.RemoveListener(OnAudioDurationTrackerFinished);
base.OnDisable();
}
#region DictationService properties
public override bool Active => _dictationServiceImpl != null && _dictationServiceImpl.Active;
public override bool IsRequestActive => _dictationServiceImpl != null && _dictationServiceImpl.IsRequestActive;
public override ITranscriptionProvider TranscriptionProvider
{
get => _dictationServiceImpl.TranscriptionProvider;
set => _dictationServiceImpl.TranscriptionProvider = value;
}
public override bool MicActive => null != _dictationServiceImpl && _dictationServiceImpl.MicActive;
protected override bool ShouldSendMicData => RuntimeConfiguration.sendAudioToWit ||
null == TranscriptionProvider;
#endregion
#region DictationService APIs
/// <summary>
/// Toggle dictation activation from on->off or off->on depending on the current active state.
/// </summary>
public void Toggle()
{
if(Active) Deactivate();
else Activate();
}
/// <summary>
/// Activate the microphone and send data to Wit for NLU processing.
/// </summary>
public override VoiceServiceRequest Activate(WitRequestOptions requestOptions, VoiceServiceRequestEvents requestEvents)
{
if (_dictationServiceImpl == null)
{
OnDictationServiceNotAvailable();
return null;
}
if (!_isActive)
{
_activeSession = new DictationSession();
DictationEvents.OnDictationSessionStarted.Invoke(_activeSession);
}
_isActive = true;
return _dictationServiceImpl.Activate(requestOptions, requestEvents);
}
/// <summary>
/// Activates immediately and starts sending data to the server. This will not wait for min wake threshold
/// </summary>
/// <param name="options"></param>
public override VoiceServiceRequest ActivateImmediately(WitRequestOptions requestOptions, VoiceServiceRequestEvents requestEvents)
{
if (_dictationServiceImpl == null)
{
OnDictationServiceNotAvailable();
return null;
}
if (!_isActive)
{
_activeSession = new DictationSession();
DictationEvents.OnDictationSessionStarted.Invoke(_activeSession);
}
_isActive = true;
return _dictationServiceImpl.ActivateImmediately(requestOptions, requestEvents);
}
/// <summary>
/// Deactivates. If a transcription is in progress the network request will complete and any additional
/// transcription values will be returned.
/// </summary>
public override void Deactivate()
{
if (_dictationServiceImpl == null)
{
OnDictationServiceNotAvailable();
return;
}
_isActive = false;
_dictationServiceImpl.Deactivate();
}
/// <summary>
/// Deactivates and ignores any pending transcription content.
/// </summary>
public override void Cancel()
{
if (_dictationServiceImpl == null)
{
OnDictationServiceNotAvailable();
return;
}
_dictationServiceImpl.Cancel();
CleanupSession();
}
#endregion
#region Listeners for logging
void OnRequestInit(VoiceServiceRequest request)
{
_activeRequestOptions = request?.Options;
_voiceSDKLogger.LogInteractionStart(request?.Options?.RequestId, "dictation");
#if UNITY_ANDROID && !UNITY_EDITOR
_voiceSDKLogger.LogAnnotation("clientSDKVersion", PACKAGE_VERSION);
#endif
_voiceSDKLogger.LogAnnotation("minWakeThreshold",
RuntimeConfiguration?.soundWakeThreshold.ToString(CultureInfo.InvariantCulture));
_voiceSDKLogger.LogAnnotation("minKeepAliveTimeSec",
RuntimeConfiguration?.minKeepAliveTimeInSeconds.ToString(CultureInfo.InvariantCulture));
_voiceSDKLogger.LogAnnotation("minTranscriptionKeepAliveTimeSec",
RuntimeConfiguration?.minTranscriptionKeepAliveTimeInSeconds.ToString(CultureInfo.InvariantCulture));
_voiceSDKLogger.LogAnnotation("maxRecordingTime",
RuntimeConfiguration?.maxRecordingTime.ToString(CultureInfo.InvariantCulture));
}
void OnStarted()
{
_voiceSDKLogger.LogInteractionPoint("startedListening");
}
void OnStopped()
{
_voiceSDKLogger.LogInteractionPoint("stoppedListening");
if (RuntimeDictationConfiguration.dictationConfiguration.multiPhrase && _isActive)
{
Activate(_activeRequestOptions);
}
}
void OnDictationSessionStarted(DictationSession session)
{
if (session is PlatformDictationSession platformDictationSession)
{
_activeSession = session;
_voiceSDKLogger.LogAnnotation("platformInteractionId", platformDictationSession.platformSessionId);
}
}
void OnAudioDurationTrackerFinished(long timestamp, double audioDuration)
{
_voiceSDKLogger.LogAnnotation("adt_duration", audioDuration.ToString(CultureInfo.InvariantCulture));
_voiceSDKLogger.LogAnnotation("adt_finished", timestamp.ToString());
}
void OnPartialTranscription(string text)
{
_voiceSDKLogger.LogFirstTranscriptionTime();
}
void OnFullTranscription(string text)
{
_voiceSDKLogger.LogInteractionPoint("fullTranscriptionTime");
}
void OnComplete(VoiceServiceRequest request)
{
if (request.State == VoiceRequestState.Failed)
{
VLog.E($"Dictation Request Failed\nError: {request.Results.Message}");
_voiceSDKLogger.LogInteractionEndFailure(request.Results.Message);
}
else if (request.State == VoiceRequestState.Canceled)
{
VLog.W($"Dictation Request Canceled\nMessage: {request.Results.Message}");
_voiceSDKLogger.LogInteractionEndFailure("aborted");
}
else
{
VLog.D($"Dictation Request Success");
var tokens = request.ResponseData?["speech"]?["tokens"];
if (tokens != null)
{
int speechTokensLength = tokens.Count;
string speechLength = request.ResponseData["speech"]["tokens"][speechTokensLength - 1]?["end"]?.Value;
_voiceSDKLogger.LogAnnotation("audioLength", speechLength);
}
_voiceSDKLogger.LogInteractionEndSuccess();
}
if (!_isActive)
{
DictationEvents.OnDictationSessionStopped?.Invoke(_activeSession);
CleanupSession();
}
}
#endregion
#region Cleanup
private void CleanupSession()
{
_activeSession = null;
_activeRequestOptions = null;
_isActive = false;
}
#endregion
}
}
@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: f6da0ed72f4541d7b52607891bafa6f3
timeCreated: 1652467620
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 86035a05c90f4460fbac04a0c49be3d7
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 99387caa63da84115b622a0d8cdfeaa9
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,68 @@
/*
* 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.Configuration;
using Oculus.Voice.Dictation.Configuration;
using UnityEngine;
namespace Oculus.Voice.Dictation.Bindings.Android
{
public class DictationConfigurationBinding
{
private readonly WitDictationRuntimeConfiguration _runtimeConfiguration;
private readonly DictationConfiguration _dictationConfiguration;
private readonly int MAX_PLATFORM_SUPPORTED_RECORDING_TIME_SECONDS = 300;
public DictationConfigurationBinding(WitDictationRuntimeConfiguration runtimeConfiguration)
{
if (null == runtimeConfiguration)
{
// No config defined, use the default configuration.
VLog.W("No dictation config has been defined. Using the default configuration.");
_dictationConfiguration = new DictationConfiguration();
}
else
{
_dictationConfiguration = runtimeConfiguration.dictationConfiguration;
_runtimeConfiguration = runtimeConfiguration;
}
}
public AndroidJavaObject ToJavaObject()
{
AndroidJavaObject jo = new AndroidJavaObject("com.oculus.assistant.api.voicesdk.dictation.PlatformDictationConfiguration");
jo.Set("multiPhrase", _dictationConfiguration.multiPhrase);
jo.Set("scenario", _dictationConfiguration.scenario);
jo.Set("inputType", _dictationConfiguration.inputType);
if (_runtimeConfiguration != null)
{
int maxRecordingTime = (int) _runtimeConfiguration.maxRecordingTime;
if (maxRecordingTime < 0)
{
maxRecordingTime = MAX_PLATFORM_SUPPORTED_RECORDING_TIME_SECONDS;
}
jo.Set("interactionTimeoutSeconds", maxRecordingTime);
}
return jo;
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: c72e9e84ab9e87741986d6efe576e0d9
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,88 @@
/*
* 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 UnityEngine;
using Meta.WitAi;
using Meta.WitAi.Dictation;
using Meta.WitAi.Dictation.Data;
using Meta.WitAi.Dictation.Events;
namespace Oculus.Voice.Dictation.Bindings.Android
{
public class DictationListenerBinding : AndroidJavaProxy
{
private IDictationService _dictationService;
private IServiceEvents _serviceEvents;
private DictationEvents DictationEvents => _dictationService.DictationEvents;
public DictationListenerBinding(IDictationService dictationService, IServiceEvents serviceEvents)
: base("com.oculus.assistant.api.voicesdk.dictation.PlatformDictationListener")
{
_dictationService = dictationService;
_serviceEvents = serviceEvents;
}
public void onStart(string sessionId)
{
DictationEvents.OnStartListening?.Invoke();
DictationSession session = new PlatformDictationSession()
{
dictationService = _dictationService,
platformSessionId = sessionId
};
}
public void onMicAudioLevel(string sessionId, int micLevel)
{
DictationEvents.OnMicAudioLevelChanged?.Invoke(micLevel / 100.0f);
}
public void onPartialTranscription(string sessionId, string transcription)
{
DictationEvents.OnPartialTranscription?.Invoke(transcription);
}
public void onFinalTranscription(string sessionId, string transcription)
{
DictationEvents.OnFullTranscription?.Invoke(transcription);
}
public void onError(string sessionId, string errorType, string errorMessage)
{
DictationEvents.OnError?.Invoke(errorType, errorMessage);
}
public void onStopped(string sessionId)
{
DictationEvents.OnStoppedListening?.Invoke();
DictationSession session = new PlatformDictationSession()
{
dictationService = _dictationService,
platformSessionId = sessionId
};
}
public void onServiceNotAvailable(string error, string message)
{
VLog.W("Platform dictation service is not available");
_serviceEvents.OnServiceNotAvailable(error, message);
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 9ae8a1a01ce0f484eafa3e39954356dc
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,27 @@
/*
* 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.
*/
namespace Oculus.Voice.Dictation.Bindings.Android
{
public interface IServiceEvents
{
void OnServiceNotAvailable(string error, string message);
}
}

Some files were not shown because too many files have changed in this diff Show More