@fugood/bricks-project 2.24.0-beta.22 → 2.24.0-beta.23
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fugood/bricks-project",
|
|
3
|
-
"version": "2.24.0-beta.
|
|
3
|
+
"version": "2.24.0-beta.23",
|
|
4
4
|
"main": "index.ts",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"typecheck": "tsc --noEmit",
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"oxfmt": "^0.36.0"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "4c429fc414415518956c78aabd8123a537036951"
|
|
28
28
|
}
|
|
@@ -31,6 +31,11 @@ export type GeneratorRealtimeTranscriptionActionReset = Action & {
|
|
|
31
31
|
__actionName: 'GENERATOR_REALTIME_TRANSCRIPTION_RESET'
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
+
/* List available microphone devices (Web / Desktop only) */
|
|
35
|
+
export type GeneratorRealtimeTranscriptionActionListDevices = Action & {
|
|
36
|
+
__actionName: 'GENERATOR_REALTIME_TRANSCRIPTION_LIST_DEVICES'
|
|
37
|
+
}
|
|
38
|
+
|
|
34
39
|
interface GeneratorRealtimeTranscriptionDef {
|
|
35
40
|
/*
|
|
36
41
|
Default property:
|
|
@@ -57,6 +62,10 @@ Default property:
|
|
|
57
62
|
}
|
|
58
63
|
*/
|
|
59
64
|
property?: {
|
|
65
|
+
/* Specifies the device ID to use for audio input.
|
|
66
|
+
Web / Desktop: device ID string from enumerateDevices
|
|
67
|
+
Android: audio source name - DEFAULT, MIC, VOICE_UPLINK, VOICE_DOWNLINK, VOICE_CALL, CAMCORDER, VOICE_RECOGNITION, VOICE_COMMUNICATION, UNPROCESSED */
|
|
68
|
+
deviceId?: string | DataLink
|
|
60
69
|
/* STT Generator for Whisper context */
|
|
61
70
|
sttGeneratorId?: string | DataLink | (() => Generator)
|
|
62
71
|
/* STT Live Policy. If the policy is `only-in-use`, the STT context will be released when not in use. */
|
|
@@ -213,6 +222,8 @@ Default property:
|
|
|
213
222
|
stabilizedText?: () => Data<string>
|
|
214
223
|
/* Audio output file path (auto-generated when saving audio) */
|
|
215
224
|
audioOutputPath?: () => Data<string>
|
|
225
|
+
/* Available microphone devices (Web / Desktop only) */
|
|
226
|
+
devices?: () => Data<Array<any>>
|
|
216
227
|
}
|
|
217
228
|
}
|
|
218
229
|
|
|
@@ -241,6 +252,7 @@ export type GeneratorRealtimeTranscription = Generator &
|
|
|
241
252
|
| 'lastVadEvent'
|
|
242
253
|
| 'stabilizedText'
|
|
243
254
|
| 'audioOutputPath'
|
|
255
|
+
| 'devices'
|
|
244
256
|
value: any
|
|
245
257
|
}
|
|
246
258
|
}>
|
|
@@ -31,6 +31,11 @@ export type GeneratorSoundRecorderActionStop = Action & {
|
|
|
31
31
|
__actionName: 'GENERATOR_SOUND_RECORDER_STOP'
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
+
/* List available microphone devices (Web / Desktop only) */
|
|
35
|
+
export type GeneratorSoundRecorderActionListDevices = Action & {
|
|
36
|
+
__actionName: 'GENERATOR_SOUND_RECORDER_LIST_DEVICES'
|
|
37
|
+
}
|
|
38
|
+
|
|
34
39
|
interface GeneratorSoundRecorderDef {
|
|
35
40
|
/*
|
|
36
41
|
Default property:
|
|
@@ -51,6 +56,10 @@ Default property:
|
|
|
51
56
|
property?: {
|
|
52
57
|
/* Start record on init (Need user trigger on Web) */
|
|
53
58
|
init?: boolean | DataLink
|
|
59
|
+
/* Specifies the device ID to use for audio input.
|
|
60
|
+
Web / Desktop: device ID string from enumerateDevices
|
|
61
|
+
Android: audio source name - DEFAULT, MIC, VOICE_UPLINK, VOICE_DOWNLINK, VOICE_CALL, CAMCORDER, VOICE_RECOGNITION, VOICE_COMMUNICATION, UNPROCESSED */
|
|
62
|
+
deviceId?: string | DataLink
|
|
54
63
|
/* Record sample rate */
|
|
55
64
|
sampleRate?: number | DataLink
|
|
56
65
|
/* PCM bit depth */
|
|
@@ -89,6 +98,8 @@ Default property:
|
|
|
89
98
|
volume?: () => Data<number>
|
|
90
99
|
/* Error message */
|
|
91
100
|
errorMessage?: () => Data<string>
|
|
101
|
+
/* Available microphone devices (Web / Desktop only) */
|
|
102
|
+
devices?: () => Data<Array<any>>
|
|
92
103
|
}
|
|
93
104
|
}
|
|
94
105
|
|
|
@@ -106,7 +117,7 @@ export type GeneratorSoundRecorder = Generator &
|
|
|
106
117
|
| SwitchCondData
|
|
107
118
|
| {
|
|
108
119
|
__typename: 'SwitchCondInnerStateOutlet'
|
|
109
|
-
outlet: 'isRecording' | 'recordedPath' | 'volume' | 'errorMessage'
|
|
120
|
+
outlet: 'isRecording' | 'recordedPath' | 'volume' | 'errorMessage' | 'devices'
|
|
110
121
|
value: any
|
|
111
122
|
}
|
|
112
123
|
}>
|