@fugood/bricks-project 2.25.0-beta.33 → 2.25.0-beta.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -955,10 +955,12 @@ export const templateActionNameMap = {
|
|
|
955
955
|
GENERATOR_APPLE_STT_TRANSCRIBE_FILE: {
|
|
956
956
|
fileUrl: 'GENERATOR_APPLE_STT_FILE_URL',
|
|
957
957
|
language: 'GENERATOR_APPLE_STT_LANGUAGE',
|
|
958
|
+
contextualStrings: 'GENERATOR_APPLE_STT_CONTEXTUAL_STRINGS',
|
|
958
959
|
},
|
|
959
960
|
GENERATOR_APPLE_STT_TRANSCRIBE_DATA: {
|
|
960
961
|
data: 'GENERATOR_APPLE_STT_DATA',
|
|
961
962
|
language: 'GENERATOR_APPLE_STT_LANGUAGE',
|
|
963
|
+
contextualStrings: 'GENERATOR_APPLE_STT_CONTEXTUAL_STRINGS',
|
|
962
964
|
},
|
|
963
965
|
},
|
|
964
966
|
GENERATOR_APPLE_TTS: {
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fugood/bricks-project",
|
|
3
|
-
"version": "2.25.0-beta.
|
|
3
|
+
"version": "2.25.0-beta.35",
|
|
4
4
|
"main": "index.ts",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"typecheck": "tsc --noEmit",
|
|
7
7
|
"build": "bun scripts/build.js"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@fugood/bricks-cli": "^2.25.0-beta.
|
|
10
|
+
"@fugood/bricks-cli": "^2.25.0-beta.35",
|
|
11
11
|
"@huggingface/gguf": "^0.3.2",
|
|
12
12
|
"@iarna/toml": "^3.0.0",
|
|
13
13
|
"@modelcontextprotocol/sdk": "^1.15.0",
|
package/package.json.bak
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fugood/bricks-ctor",
|
|
3
|
-
"version": "2.25.0-beta.
|
|
3
|
+
"version": "2.25.0-beta.35",
|
|
4
4
|
"main": "index.ts",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"typecheck": "tsc --noEmit",
|
|
7
7
|
"build": "bun scripts/build.js"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@fugood/bricks-cli": "^2.25.0-beta.
|
|
10
|
+
"@fugood/bricks-cli": "^2.25.0-beta.35",
|
|
11
11
|
"@huggingface/gguf": "^0.3.2",
|
|
12
12
|
"@iarna/toml": "^3.0.0",
|
|
13
13
|
"@modelcontextprotocol/sdk": "^1.15.0",
|
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
* - Supported Hexagon NPU for Qualcomm Snapdragon 8 Gen 1+ GPUs.
|
|
12
12
|
* - Linux / Windows [@nextline - Supported GPU acceleration, you can choose `vulkan` or `cuda` backend in Accel Variant property
|
|
13
13
|
* - Supported Hexagon NPU for Qualcomm Dragonwing IQ9 series+ (Linux)
|
|
14
|
+
* - Web: Supported with CPU and WebGPU acceleration.
|
|
15
|
+
* - Single thread only in the current web preview (no SharedArrayBuffer due to cross-origin isolation / CORP), so multi-thread is unavailable.
|
|
14
16
|
*/
|
|
15
17
|
import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
|
|
16
18
|
import type { Data, DataLink } from '../data'
|
|
@@ -863,7 +865,9 @@ Default property:
|
|
|
863
865
|
- Supported GPU acceleration by OpenCL, currently only for Qualcomm Adreno 700+ GPUs, other GPUs are not supported.
|
|
864
866
|
- Supported Hexagon NPU for Qualcomm Snapdragon 8 Gen 1+ GPUs.
|
|
865
867
|
- Linux / Windows [@nextline - Supported GPU acceleration, you can choose `vulkan` or `cuda` backend in Accel Variant property
|
|
866
|
-
- Supported Hexagon NPU for Qualcomm Dragonwing IQ9 series+ (Linux)
|
|
868
|
+
- Supported Hexagon NPU for Qualcomm Dragonwing IQ9 series+ (Linux)
|
|
869
|
+
- Web: Supported with CPU and WebGPU acceleration.
|
|
870
|
+
- Single thread only in the current web preview (no SharedArrayBuffer due to cross-origin isolation / CORP), so multi-thread is unavailable. */
|
|
867
871
|
export type GeneratorLLM = Generator &
|
|
868
872
|
GeneratorLLMDef & {
|
|
869
873
|
templateKey: 'GENERATOR_LLM'
|
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
* - Linux / Windows
|
|
13
13
|
* - Supported GPU acceleration, you can choose `vulkan` or `cuda` backend in Accel Variant property
|
|
14
14
|
* - Supported Hexagon NPU for Qualcomm Dragonwing IQ9 series+ (Linux)
|
|
15
|
+
* - Web: Supported with CPU and WebGPU acceleration.
|
|
16
|
+
* - Single thread only in the current web preview (no SharedArrayBuffer due to cross-origin isolation / CORP), so multi-thread is unavailable.
|
|
15
17
|
*/
|
|
16
18
|
import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
|
|
17
19
|
import type { Data, DataLink } from '../data'
|
|
@@ -163,7 +165,9 @@ Default property:
|
|
|
163
165
|
- Supported Hexagon NPU for Qualcomm Snapdragon 8 Gen 2+ GPUs.
|
|
164
166
|
- Linux / Windows
|
|
165
167
|
- Supported GPU acceleration, you can choose `vulkan` or `cuda` backend in Accel Variant property
|
|
166
|
-
- Supported Hexagon NPU for Qualcomm Dragonwing IQ9 series+ (Linux)
|
|
168
|
+
- Supported Hexagon NPU for Qualcomm Dragonwing IQ9 series+ (Linux)
|
|
169
|
+
- Web: Supported with CPU and WebGPU acceleration.
|
|
170
|
+
- Single thread only in the current web preview (no SharedArrayBuffer due to cross-origin isolation / CORP), so multi-thread is unavailable. */
|
|
167
171
|
export type GeneratorReranker = Generator &
|
|
168
172
|
GeneratorRerankerDef & {
|
|
169
173
|
templateKey: 'GENERATOR_RERANKER'
|
|
@@ -54,7 +54,8 @@ Default property:
|
|
|
54
54
|
"autoCuttingVocalFreqMin": 75,
|
|
55
55
|
"autoCuttingVocalFreqMax": 900,
|
|
56
56
|
"autoCuttingFreqClarity": 0.5,
|
|
57
|
-
"autoCuttingSpeakSpacing": 0.5
|
|
57
|
+
"autoCuttingSpeakSpacing": 0.5,
|
|
58
|
+
"userMediaAudioOptions": {}
|
|
58
59
|
}
|
|
59
60
|
*/
|
|
60
61
|
property?: {
|
|
@@ -86,6 +87,14 @@ Default property:
|
|
|
86
87
|
autoCuttingVolumeThreshold?: number | DataLink
|
|
87
88
|
/* Speak spacing of cutting fragments */
|
|
88
89
|
autoCuttingSpeakSpacing?: number | DataLink
|
|
90
|
+
/* Custom getUserMedia audio options for Web / Desktop. Merged into the audio constraints. */
|
|
91
|
+
userMediaAudioOptions?:
|
|
92
|
+
| DataLink
|
|
93
|
+
| {
|
|
94
|
+
autoGainControl?: boolean | DataLink
|
|
95
|
+
echoCancellation?: boolean | DataLink
|
|
96
|
+
noiseSuppression?: boolean | DataLink
|
|
97
|
+
}
|
|
89
98
|
}
|
|
90
99
|
events?: {
|
|
91
100
|
/* Event for chunk data (Base64 encoded PCM) */
|
|
@@ -41,6 +41,11 @@ export type GeneratorAppleSTTActionTranscribeFile = ActionWithParams & {
|
|
|
41
41
|
value?: string | DataLink | EventProperty
|
|
42
42
|
mapping?: string
|
|
43
43
|
}
|
|
44
|
+
| {
|
|
45
|
+
input: 'contextualStrings'
|
|
46
|
+
value?: Array<any> | DataLink | EventProperty
|
|
47
|
+
mapping?: string
|
|
48
|
+
}
|
|
44
49
|
>
|
|
45
50
|
}
|
|
46
51
|
|
|
@@ -58,6 +63,11 @@ export type GeneratorAppleSTTActionTranscribeData = ActionWithParams & {
|
|
|
58
63
|
value?: string | DataLink | EventProperty
|
|
59
64
|
mapping?: string
|
|
60
65
|
}
|
|
66
|
+
| {
|
|
67
|
+
input: 'contextualStrings'
|
|
68
|
+
value?: Array<any> | DataLink | EventProperty
|
|
69
|
+
mapping?: string
|
|
70
|
+
}
|
|
61
71
|
>
|
|
62
72
|
}
|
|
63
73
|
|
|
@@ -72,6 +82,7 @@ Default property:
|
|
|
72
82
|
{
|
|
73
83
|
"init": false,
|
|
74
84
|
"language": "en-US",
|
|
85
|
+
"contextualStrings": [],
|
|
75
86
|
"enablePartialResults": true
|
|
76
87
|
}
|
|
77
88
|
*/
|
|
@@ -80,6 +91,13 @@ Default property:
|
|
|
80
91
|
init?: boolean | DataLink
|
|
81
92
|
/* Language/locale for recognition (e.g., 'en-US') */
|
|
82
93
|
language?: string | DataLink
|
|
94
|
+
/* Phrases that should be recognized, even if they are not in the system vocabulary. */
|
|
95
|
+
contextualStrings?:
|
|
96
|
+
| Array<string | DataLink>
|
|
97
|
+
| DataLink
|
|
98
|
+
| Record<string, Array<string | DataLink> | DataLink>
|
|
99
|
+
| DataLink
|
|
100
|
+
| DataLink
|
|
83
101
|
/* Enable partial results during transcription */
|
|
84
102
|
enablePartialResults?: boolean | DataLink
|
|
85
103
|
/* The file URL or path to be transcribed */
|