mirror of
https://github.com/stablyai/orca.git
synced 2026-11-16 02:47:34 +00:00
* fix(mobile): keep dictation recording through a reconnect The host tied a phone's dictation to its socket, so any reconnect cancelled it, and the phone ended the recording as soon as the connection dropped. The host now owns the session by device and waits a grace period for the phone to come back. The phone keeps recording through the reconnect and keeps the text transcribed so far if the connection does not return. Fixes #35211 * fix(mobile): bound dictation reconnect waits and release retired relay waiters * fix(mobile): resend an unsent dictation finish after a connection move and send the text so far only when it changes * fix(mobile): hold dictation requests through a suspended relay and bound the start wait * fix(mobile): recognise a suspended relay client across the page bridge * refactor(dictation): refresh one abandon timer, report text by version and share the reconnect wait * fix(mobile): resend dictation text each second and never wait offline for a cancel
121 lines
2.9 KiB
JSON
121 lines
2.9 KiB
JSON
{
|
|
"goldenFormatVersion": 6,
|
|
"operation": "speech.dictation-session",
|
|
"family": "speech.dictation-session",
|
|
"namedDeltas": [],
|
|
"values": {
|
|
"1bdc94d60271": {
|
|
"name": "speech.dictation.finish#1",
|
|
"ordinal": 4,
|
|
"json": "{\"id\":\"frame-2\",\"deviceToken\":\"recording-device\",\"method\":\"speech.dictation.finish\",\"params\":{\"dictationId\":\"mobile-dictation-1767225600000-8ig2henseon\"}}"
|
|
},
|
|
"4728ad10f92b": {
|
|
"name": "speech.dictation.finish#1",
|
|
"ordinal": 3,
|
|
"args": [
|
|
{
|
|
"name": "method",
|
|
"value": "speech.dictation.finish"
|
|
},
|
|
{
|
|
"name": "params",
|
|
"value": {
|
|
"dictationId": "mobile-dictation-1767225600000-8ig2henseon"
|
|
}
|
|
},
|
|
{
|
|
"name": "options",
|
|
"value": {
|
|
"timeoutMs": 75000
|
|
}
|
|
}
|
|
],
|
|
"settlement": {
|
|
"status": "fulfilled",
|
|
"startedAt": 0,
|
|
"settledAt": 0,
|
|
"value": {
|
|
"id": "frame-2",
|
|
"ok": true,
|
|
"result": {
|
|
"text": " hello world "
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"859d310e63d6": {
|
|
"name": "speech.dictation.start#1",
|
|
"ordinal": 2,
|
|
"json": "{\"id\":\"frame-1\",\"deviceToken\":\"recording-device\",\"method\":\"speech.dictation.start\",\"params\":{\"dictationId\":\"mobile-dictation-1767225600000-8ig2henseon\"}}"
|
|
},
|
|
"a19279fc9c65": {
|
|
"error": {
|
|
"$rpc": "null"
|
|
},
|
|
"status": "idle",
|
|
"transcripts": ["hello world"]
|
|
},
|
|
"bd004568e24c": {
|
|
"name": "speech.dictation.start#1",
|
|
"ordinal": 1,
|
|
"args": [
|
|
{
|
|
"name": "method",
|
|
"value": "speech.dictation.start"
|
|
},
|
|
{
|
|
"name": "params",
|
|
"value": {
|
|
"dictationId": "mobile-dictation-1767225600000-8ig2henseon"
|
|
}
|
|
},
|
|
{
|
|
"name": "options",
|
|
"value": {
|
|
"timeoutMs": 30000
|
|
}
|
|
}
|
|
],
|
|
"settlement": {
|
|
"status": "fulfilled",
|
|
"startedAt": 0,
|
|
"settledAt": 0,
|
|
"value": {
|
|
"id": "frame-1",
|
|
"ok": true,
|
|
"result": {
|
|
"started": true
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"eb79a9b3682a": {
|
|
"status": "fulfilled",
|
|
"startedAt": 0,
|
|
"settledAt": 0,
|
|
"value": {
|
|
"$rpc": "undefined"
|
|
}
|
|
}
|
|
},
|
|
"recording": {
|
|
"scenario": "speech-dictation-session-transcript",
|
|
"checkpoints": [
|
|
{
|
|
"id": "transcribed",
|
|
"observation": {
|
|
"sender": ["bd004568e24c", "4728ad10f92b"],
|
|
"payloads": ["859d310e63d6", "1bdc94d60271"],
|
|
"settlements": {
|
|
"mount": "eb79a9b3682a",
|
|
"start": "eb79a9b3682a",
|
|
"stop": "eb79a9b3682a"
|
|
},
|
|
"state": "a19279fc9c65",
|
|
"effects": []
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|