@fugood/bricks-project 2.24.0-beta.34 → 2.24.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.
- package/compile/index.ts +15 -8
- package/package.json +3 -3
- package/tools/preview.ts +1 -1
- package/types/automation.ts +1 -1
- package/types/bricks/Camera.ts +5 -2
- package/types/bricks/Chart.ts +4 -1
- package/types/bricks/GenerativeMedia.ts +4 -1
- package/types/bricks/Icon.ts +5 -2
- package/types/bricks/Image.ts +5 -2
- package/types/bricks/Items.ts +5 -2
- package/types/bricks/Lottie.ts +4 -1
- package/types/bricks/Maps.ts +5 -2
- package/types/bricks/QrCode.ts +5 -2
- package/types/bricks/Rect.ts +5 -2
- package/types/bricks/RichText.ts +5 -2
- package/types/bricks/Rive.ts +4 -1
- package/types/bricks/Slideshow.ts +5 -2
- package/types/bricks/Svg.ts +4 -1
- package/types/bricks/Text.ts +5 -2
- package/types/bricks/TextInput.ts +5 -2
- package/types/bricks/Video.ts +5 -2
- package/types/bricks/VideoStreaming.ts +4 -1
- package/types/bricks/WebRtcStream.ts +5 -2
- package/types/bricks/WebView.ts +4 -1
- package/types/generators/AlarmClock.ts +5 -2
- package/types/generators/Assistant.ts +5 -2
- package/types/generators/BleCentral.ts +5 -2
- package/types/generators/BlePeripheral.ts +5 -2
- package/types/generators/CanvasMap.ts +4 -1
- package/types/generators/CastlesPay.ts +5 -2
- package/types/generators/DataBank.ts +5 -2
- package/types/generators/File.ts +5 -2
- package/types/generators/GraphQl.ts +4 -1
- package/types/generators/Http.ts +4 -1
- package/types/generators/HttpServer.ts +4 -1
- package/types/generators/Information.ts +5 -2
- package/types/generators/Intent.ts +4 -1
- package/types/generators/Iterator.ts +4 -1
- package/types/generators/Keyboard.ts +5 -2
- package/types/generators/LlmAnthropicCompat.ts +10 -1
- package/types/generators/LlmAppleBuiltin.ts +11 -1
- package/types/generators/LlmGgml.ts +14 -1
- package/types/generators/LlmMediaTekNeuroPilot.ts +4 -1
- package/types/generators/LlmMlx.ts +11 -1
- package/types/generators/LlmOnnx.ts +5 -1
- package/types/generators/LlmOpenAiCompat.ts +14 -1
- package/types/generators/LlmQualcommAiEngine.ts +4 -1
- package/types/generators/Mcp.ts +4 -1
- package/types/generators/McpServer.ts +4 -1
- package/types/generators/MediaFlow.ts +4 -1
- package/types/generators/MqttBroker.ts +4 -1
- package/types/generators/MqttClient.ts +4 -1
- package/types/generators/Question.ts +5 -2
- package/types/generators/RealtimeTranscription.ts +4 -1
- package/types/generators/RerankerGgml.ts +15 -1
- package/types/generators/SerialPort.ts +5 -2
- package/types/generators/SoundPlayer.ts +4 -1
- package/types/generators/SoundRecorder.ts +4 -1
- package/types/generators/SpeechToTextGgml.ts +10 -1
- package/types/generators/SpeechToTextOnnx.ts +5 -1
- package/types/generators/SpeechToTextPlatform.ts +4 -1
- package/types/generators/SqLite.ts +5 -2
- package/types/generators/Step.ts +4 -1
- package/types/generators/SttAppleBuiltin.ts +11 -1
- package/types/generators/Tcp.ts +5 -2
- package/types/generators/TcpServer.ts +4 -1
- package/types/generators/TextToSpeechAppleBuiltin.ts +11 -1
- package/types/generators/TextToSpeechGgml.ts +16 -1
- package/types/generators/TextToSpeechOnnx.ts +5 -1
- package/types/generators/TextToSpeechOpenAiLike.ts +4 -1
- package/types/generators/ThermalPrinter.ts +5 -2
- package/types/generators/Tick.ts +5 -2
- package/types/generators/Udp.ts +5 -2
- package/types/generators/VadGgml.ts +4 -1
- package/types/generators/VadOnnx.ts +5 -1
- package/types/generators/VadTraditional.ts +5 -1
- package/types/generators/VectorStore.ts +5 -2
- package/types/generators/Watchdog.ts +5 -2
- package/types/generators/WebCrawler.ts +4 -1
- package/types/generators/WebRtc.ts +5 -2
- package/types/generators/WebSocket.ts +4 -1
- package/types/generators/TextToSpeechApple.ts +0 -113
- package/types/generators/TtsAppleBuiltin.ts +0 -105
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
/* Auto generated by build script */
|
|
2
|
-
import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
|
|
3
|
-
import type { Data, DataLink } from '../data'
|
|
4
|
-
import type {
|
|
5
|
-
Generator,
|
|
6
|
-
EventAction,
|
|
7
|
-
ActionWithDataParams,
|
|
8
|
-
ActionWithParams,
|
|
9
|
-
Action,
|
|
10
|
-
EventProperty,
|
|
11
|
-
} from '../common'
|
|
12
|
-
|
|
13
|
-
/* Load the TTS model */
|
|
14
|
-
export type GeneratorAppleTTSActionLoadModel = Action & {
|
|
15
|
-
__actionName: 'GENERATOR_APPLE_TTS_LOAD_MODEL'
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
/* Generate audio */
|
|
19
|
-
export type GeneratorAppleTTSActionGenerate = ActionWithParams & {
|
|
20
|
-
__actionName: 'GENERATOR_APPLE_TTS_GENERATE'
|
|
21
|
-
params?: Array<{
|
|
22
|
-
input: 'text'
|
|
23
|
-
value?: string | DataLink | EventProperty
|
|
24
|
-
mapping?: string
|
|
25
|
-
}>
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/* Clean cache */
|
|
29
|
-
export type GeneratorAppleTTSActionCleanCache = Action & {
|
|
30
|
-
__actionName: 'GENERATOR_APPLE_TTS_CLEAN_CACHE'
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/* Cancel current generation and clear queue */
|
|
34
|
-
export type GeneratorAppleTTSActionCancel = Action & {
|
|
35
|
-
__actionName: 'GENERATOR_APPLE_TTS_CANCEL'
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
interface GeneratorAppleTTSDef {
|
|
39
|
-
/*
|
|
40
|
-
Default property:
|
|
41
|
-
{
|
|
42
|
-
"language": "en-US",
|
|
43
|
-
"outputType": "play",
|
|
44
|
-
"cacheGenerated": true,
|
|
45
|
-
"autoInferEnable": false,
|
|
46
|
-
"softBreakRegex": "^[^\\r\\n\\t\\f\\v]*([\\r\\n]+|[。!?!?.]\\B)",
|
|
47
|
-
"hardBreakTime": 500
|
|
48
|
-
}
|
|
49
|
-
*/
|
|
50
|
-
property?: {
|
|
51
|
-
/* Initialize the TTS context on generator initialization */
|
|
52
|
-
init?: boolean | DataLink
|
|
53
|
-
/* Voice identifier */
|
|
54
|
-
voice?: string | DataLink
|
|
55
|
-
/* Language/locale (e.g., 'en-US') */
|
|
56
|
-
language?: string | DataLink
|
|
57
|
-
/* Output mode */
|
|
58
|
-
outputType?: 'play' | 'file' | DataLink
|
|
59
|
-
/* Enable cache for generated audio */
|
|
60
|
-
cacheGenerated?: boolean | DataLink
|
|
61
|
-
/* Text to generate */
|
|
62
|
-
prompt?: string | DataLink
|
|
63
|
-
/* Auto inference when prompt changes */
|
|
64
|
-
autoInferEnable?: boolean | DataLink
|
|
65
|
-
/* Segmentation rule for auto inference */
|
|
66
|
-
softBreakRegex?: string | DataLink
|
|
67
|
-
/* Time to force inference when softBreakRegex is not satisfied */
|
|
68
|
-
hardBreakTime?: number | DataLink
|
|
69
|
-
}
|
|
70
|
-
events?: {
|
|
71
|
-
/* Event triggered when state change */
|
|
72
|
-
onContextStateChange?: Array<EventAction>
|
|
73
|
-
/* Event triggered when error occurs */
|
|
74
|
-
onError?: Array<EventAction>
|
|
75
|
-
}
|
|
76
|
-
outlets?: {
|
|
77
|
-
/* Context state */
|
|
78
|
-
contextState?: () => Data
|
|
79
|
-
/* Generated audio file */
|
|
80
|
-
generatedAudio?: () => Data
|
|
81
|
-
/* Generated audio file is playing */
|
|
82
|
-
generatedAudioPlaying?: () => Data
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
/* Text-to-speech synthesis using Apple's native speech synthesis
|
|
87
|
-
|
|
88
|
-
## Features
|
|
89
|
-
- Native Apple speech synthesis
|
|
90
|
-
- Natural sounding voices
|
|
91
|
-
- Privacy-focused on-device processing
|
|
92
|
-
- Multiple voice options
|
|
93
|
-
- Requires iOS 13+ (native speech synthesis) */
|
|
94
|
-
export type GeneratorAppleTTS = Generator &
|
|
95
|
-
GeneratorAppleTTSDef & {
|
|
96
|
-
templateKey: 'GENERATOR_APPLE_TTS'
|
|
97
|
-
switches: Array<
|
|
98
|
-
SwitchDef &
|
|
99
|
-
GeneratorAppleTTSDef & {
|
|
100
|
-
conds?: Array<{
|
|
101
|
-
method: '==' | '!=' | '>' | '<' | '>=' | '<='
|
|
102
|
-
cond:
|
|
103
|
-
| SwitchCondInnerStateCurrentCanvas
|
|
104
|
-
| SwitchCondData
|
|
105
|
-
| {
|
|
106
|
-
__typename: 'SwitchCondInnerStateOutlet'
|
|
107
|
-
outlet: 'contextState' | 'generatedAudio' | 'generatedAudioPlaying'
|
|
108
|
-
value: any
|
|
109
|
-
}
|
|
110
|
-
}>
|
|
111
|
-
}
|
|
112
|
-
>
|
|
113
|
-
}
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
|
|
2
|
-
import type { Data, DataLink } from '../data'
|
|
3
|
-
import type { Generator, EventAction, ActionWithParams, Action, EventProperty } from '../common'
|
|
4
|
-
|
|
5
|
-
/* Load the TTS model */
|
|
6
|
-
export type GeneratorAppleTTSActionLoadModel = Action & {
|
|
7
|
-
__actionName: 'GENERATOR_APPLE_TTS_LOAD_MODEL'
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
/* Generate audio */
|
|
11
|
-
export type GeneratorAppleTTSActionGenerate = ActionWithParams & {
|
|
12
|
-
__actionName: 'GENERATOR_APPLE_TTS_GENERATE'
|
|
13
|
-
params?: Array<{
|
|
14
|
-
input: 'text'
|
|
15
|
-
value?: string | DataLink | EventProperty
|
|
16
|
-
mapping?: string
|
|
17
|
-
}>
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
/* Clean cache */
|
|
21
|
-
export type GeneratorAppleTTSActionCleanCache = Action & {
|
|
22
|
-
__actionName: 'GENERATOR_APPLE_TTS_CLEAN_CACHE'
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
/* Cancel current generation and clear queue */
|
|
26
|
-
export type GeneratorAppleTTSActionCancel = Action & {
|
|
27
|
-
__actionName: 'GENERATOR_APPLE_TTS_CANCEL'
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
interface GeneratorAppleTTSDef {
|
|
31
|
-
/*
|
|
32
|
-
Default property:
|
|
33
|
-
{
|
|
34
|
-
"language": "en-US",
|
|
35
|
-
"outputType": "play",
|
|
36
|
-
"cacheGenerated": true,
|
|
37
|
-
"autoInferEnable": false,
|
|
38
|
-
"softBreakRegex": "^[^\\r\\n\\t\\f\\v]*([\\r\\n]+|[。!?!?.]\\B)",
|
|
39
|
-
"hardBreakTime": 500
|
|
40
|
-
}
|
|
41
|
-
*/
|
|
42
|
-
property?: {
|
|
43
|
-
/* Initialize the TTS context on generator initialization */
|
|
44
|
-
init?: boolean | DataLink
|
|
45
|
-
/* Voice identifier */
|
|
46
|
-
voice?: string | DataLink
|
|
47
|
-
/* Language/locale (e.g., 'en-US') */
|
|
48
|
-
language?: string | DataLink
|
|
49
|
-
/* Output mode */
|
|
50
|
-
outputType?: 'play' | 'file' | DataLink
|
|
51
|
-
/* Enable cache for generated audio */
|
|
52
|
-
cacheGenerated?: boolean | DataLink
|
|
53
|
-
/* Text to generate */
|
|
54
|
-
prompt?: string | DataLink
|
|
55
|
-
/* Auto inference when prompt changes */
|
|
56
|
-
autoInferEnable?: boolean | DataLink
|
|
57
|
-
/* Segmentation rule for auto inference */
|
|
58
|
-
softBreakRegex?: string | DataLink
|
|
59
|
-
/* Time to force inference when softBreakRegex is not satisfied */
|
|
60
|
-
hardBreakTime?: number | DataLink
|
|
61
|
-
}
|
|
62
|
-
events?: {
|
|
63
|
-
/* Event triggered when state change */
|
|
64
|
-
onContextStateChange?: Array<EventAction>
|
|
65
|
-
/* Event triggered when error occurs */
|
|
66
|
-
onError?: Array<EventAction>
|
|
67
|
-
}
|
|
68
|
-
outlets?: {
|
|
69
|
-
/* Context state */
|
|
70
|
-
contextState?: () => Data
|
|
71
|
-
/* Generated audio file */
|
|
72
|
-
generatedAudio?: () => Data
|
|
73
|
-
/* Generated audio file is playing */
|
|
74
|
-
generatedAudioPlaying?: () => Data
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
/* Text-to-speech synthesis using Apple's native speech synthesis
|
|
79
|
-
|
|
80
|
-
## Features
|
|
81
|
-
- Native Apple speech synthesis
|
|
82
|
-
- Natural sounding voices
|
|
83
|
-
- Privacy-focused on-device processing
|
|
84
|
-
- Multiple voice options
|
|
85
|
-
- Requires iOS 13+ (native speech synthesis) */
|
|
86
|
-
export type GeneratorAppleTTS = Generator &
|
|
87
|
-
GeneratorAppleTTSDef & {
|
|
88
|
-
templateKey: 'GENERATOR_APPLE_TTS'
|
|
89
|
-
switches: Array<
|
|
90
|
-
SwitchDef &
|
|
91
|
-
GeneratorAppleTTSDef & {
|
|
92
|
-
conds?: Array<{
|
|
93
|
-
method: '==' | '!=' | '>' | '<' | '>=' | '<='
|
|
94
|
-
cond:
|
|
95
|
-
| SwitchCondInnerStateCurrentCanvas
|
|
96
|
-
| SwitchCondData
|
|
97
|
-
| {
|
|
98
|
-
__typename: 'SwitchCondInnerStateOutlet'
|
|
99
|
-
outlet: 'contextState' | 'generatedAudio' | 'generatedAudioPlaying'
|
|
100
|
-
value: any
|
|
101
|
-
}
|
|
102
|
-
}>
|
|
103
|
-
}
|
|
104
|
-
>
|
|
105
|
-
}
|