mirror of
https://github.com/HumanAIGC-Engineering/gradio-webrtc.git
synced 2026-02-05 18:09:23 +08:00
Add started_talking log message in ReplyOnPause and in api.md (#260)
This commit is contained in:
@@ -209,6 +209,7 @@ class ReplyOnPause(StreamHandler):
|
|||||||
):
|
):
|
||||||
state.started_talking = True
|
state.started_talking = True
|
||||||
logger.debug("Started talking")
|
logger.debug("Started talking")
|
||||||
|
self.send_message_sync(create_message("log", "started_talking"))
|
||||||
if state.started_talking:
|
if state.started_talking:
|
||||||
if state.stream is None:
|
if state.stream is None:
|
||||||
state.stream = audio
|
state.stream = audio
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ The `ReplyOnPause` handler can also send the following `log` messages.
|
|||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"type": "log",
|
"type": "log",
|
||||||
"data": "pause_detected" | "response_starting"
|
"data": "pause_detected" | "response_starting" | "started_talking"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user