File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,20 @@ wyoming:
79
79
internal-detection: WriteEvent("run-pipeline", '{"start_stage":"asr","end_stage":"tts"}') && Stream()
80
80
` ` `
81
81
82
+ Supported functions and variables :
83
+
84
+ - ` Detect()` - start the VAD and WAKE word detection process
85
+ - ` Stream()` - start transmission of audio data to the client (Home Assistant)
86
+ - ` Stop()` - stop and disconnect stream without disconnecting client (Home Assistant)
87
+ - ` Pause()` - temporary pause of audio transfer, without disconnecting the stream
88
+ - ` PlayAudio()` - playing the last audio that was sent from client (Home Assistant)
89
+ - ` WriteEvent(type, data)` - send event to client (Home Assistant)
90
+ - ` Sleep(duration)` - temporary script pause (ex. `Sleep('1.5s')`)
91
+ - ` PlayFile(path)` - play audio from `wav` file
92
+ - ` Type` - type (name) of event
93
+ - ` Data` - event data in JSON format (ex. `{"text":"how are you"}`)
94
+ - also available other functions from [expr](https://github.com/AlexxIT/go2rtc/blob/master/internal/expr/README.md) module (ex. `fetch`)
95
+
82
96
If you write a script for an event - the default action is no longer executed. You need to repeat the necessary steps yourself.
83
97
84
98
In addition to the standard events, there are two additional events :
@@ -160,7 +174,7 @@ wyoming:
160
174
vad_threshold: 1
161
175
` ` `
162
176
163
- Satellite on Dahua camera with two-way audio support .
177
+ Satellite on external wyoming Microphone and Sound .
164
178
165
179
` ` ` yaml
166
180
streams:
You can’t perform that action at this time.
0 commit comments