vocalstack 1.2.2__tar.gz → 1.2.3__tar.gz
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.
- {vocalstack-1.2.2 → vocalstack-1.2.3}/PKG-INFO +4 -3
- {vocalstack-1.2.2 → vocalstack-1.2.3}/README.md +3 -2
- {vocalstack-1.2.2 → vocalstack-1.2.3}/pyproject.toml +1 -1
- {vocalstack-1.2.2 → vocalstack-1.2.3}/src/vocalstack/__init__.py +1 -1
- {vocalstack-1.2.2 → vocalstack-1.2.3}/src/vocalstack/_models.py +1 -1
- {vocalstack-1.2.2 → vocalstack-1.2.3}/src/vocalstack/realtime.py +6 -4
- {vocalstack-1.2.2 → vocalstack-1.2.3}/.gitignore +0 -0
- {vocalstack-1.2.2 → vocalstack-1.2.3}/LICENSE +0 -0
- {vocalstack-1.2.2 → vocalstack-1.2.3}/SKILL.md +0 -0
- {vocalstack-1.2.2 → vocalstack-1.2.3}/skills/vocalstack/SKILL.md +0 -0
- {vocalstack-1.2.2 → vocalstack-1.2.3}/src/vocalstack/_http.py +0 -0
- {vocalstack-1.2.2 → vocalstack-1.2.3}/src/vocalstack/client.py +0 -0
- {vocalstack-1.2.2 → vocalstack-1.2.3}/src/vocalstack/errors.py +0 -0
- {vocalstack-1.2.2 → vocalstack-1.2.3}/src/vocalstack/resources.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: vocalstack
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.3
|
|
4
4
|
Summary: VocalStack speech API SDK (asyncio): one client grouped by resource, typed models from the API contract, realtime WebSocket streaming.
|
|
5
5
|
Project-URL: Homepage, https://vocalstack.com
|
|
6
6
|
License-Expression: MIT
|
|
@@ -124,9 +124,10 @@ async with VocalStack(api_key=key) as vs:
|
|
|
124
124
|
`session.heartbeat` frame that often, whatever the session is doing. When
|
|
125
125
|
nothing at all arrived for three times `heartbeatS` (12 s at most: the server
|
|
126
126
|
says 1 to 4 s) the socket is dropped and the session goes on as after a socket lost
|
|
127
|
-
with no close frame.
|
|
127
|
+
with no close frame. The reconnect after any live socket lost with no close
|
|
128
|
+
frame (also one whose server died) offers the audio still kept
|
|
128
129
|
(`kept_from=<byte>`), and sends it again from the byte `session.ready` names
|
|
129
|
-
(`resumeFrom`), so what the
|
|
130
|
+
(`resumeFrom`), so what the lost socket swallowed is not lost; when it names
|
|
130
131
|
none, nothing is sent again. A server that sends no `heartbeatS` is never
|
|
131
132
|
judged by its silence, and a client whose own timers stood still (a blocked
|
|
132
133
|
thread, a sleeping machine) starts the count again. `heartbeat=False` on `connect` and `publish`
|
|
@@ -111,9 +111,10 @@ async with VocalStack(api_key=key) as vs:
|
|
|
111
111
|
`session.heartbeat` frame that often, whatever the session is doing. When
|
|
112
112
|
nothing at all arrived for three times `heartbeatS` (12 s at most: the server
|
|
113
113
|
says 1 to 4 s) the socket is dropped and the session goes on as after a socket lost
|
|
114
|
-
with no close frame.
|
|
114
|
+
with no close frame. The reconnect after any live socket lost with no close
|
|
115
|
+
frame (also one whose server died) offers the audio still kept
|
|
115
116
|
(`kept_from=<byte>`), and sends it again from the byte `session.ready` names
|
|
116
|
-
(`resumeFrom`), so what the
|
|
117
|
+
(`resumeFrom`), so what the lost socket swallowed is not lost; when it names
|
|
117
118
|
none, nothing is sent again. A server that sends no `heartbeatS` is never
|
|
118
119
|
judged by its silence, and a client whose own timers stood still (a blocked
|
|
119
120
|
thread, a sleeping machine) starts the count again. `heartbeat=False` on `connect` and `publish`
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "vocalstack"
|
|
7
|
-
version = "1.2.
|
|
7
|
+
version = "1.2.3"
|
|
8
8
|
description = "VocalStack speech API SDK (asyncio): one client grouped by resource, typed models from the API contract, realtime WebSocket streaming."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = "MIT"
|
|
@@ -1420,7 +1420,7 @@ stream, an RTMP encoder), which may feed broadcasts (`broadcasts`)."""
|
|
|
1420
1420
|
media: Optional[List["MediaSummary"]] = None
|
|
1421
1421
|
metrics: Optional["TranscriptionMetrics"] = None
|
|
1422
1422
|
name: str
|
|
1423
|
-
origin: Union[Literal["dashboard", "api", "extension", "desktop_app", "ios_app", "obs", "wordpress", "payload", "strapi", "sanity", "contentful", "mcp", "broadcast", "unknown"], str]
|
|
1423
|
+
origin: Union[Literal["dashboard", "api", "extension", "desktop_app", "ios_app", "android_app", "obs", "wordpress", "payload", "strapi", "sanity", "contentful", "mcp", "broadcast", "unknown"], str]
|
|
1424
1424
|
owner_principal_id: str = Field(alias="ownerPrincipalId")
|
|
1425
1425
|
peak_latency_s: Optional[float] = Field(default=None, alias="peakLatencyS")
|
|
1426
1426
|
peak_listeners: Optional[int] = Field(default=None, alias="peakListeners")
|
|
@@ -442,9 +442,11 @@ class RealtimeSession:
|
|
|
442
442
|
Where ``session.ready`` answers with ``heartbeatS``, a socket on
|
|
443
443
|
which nothing at all arrived for three times that long is taken for
|
|
444
444
|
lost and dropped, and the session goes on as after a socket lost
|
|
445
|
-
with no close frame
|
|
446
|
-
(
|
|
447
|
-
|
|
445
|
+
with no close frame. The reconnect after any live socket lost with
|
|
446
|
+
no close frame (also one whose server died) offers the audio still
|
|
447
|
+
kept (``kept_from``) and sends it again from the byte
|
|
448
|
+
``session.ready`` names (``resumeFrom``), or sends nothing again
|
|
449
|
+
when it names none.
|
|
448
450
|
A server that says no ``heartbeatS`` is never judged by its silence.
|
|
449
451
|
"""
|
|
450
452
|
if resend_buffer_bytes is not None:
|
|
@@ -1136,7 +1138,7 @@ class RealtimeSession:
|
|
|
1136
1138
|
if dropped and (not young or self._early_recoveries < EARLY_RECOVERIES):
|
|
1137
1139
|
if young:
|
|
1138
1140
|
self._early_recoveries += 1
|
|
1139
|
-
self._hold(None, silent=getattr(ws, "went_silent", False))
|
|
1141
|
+
self._hold(None, silent=not self._whole_file or getattr(ws, "went_silent", False))
|
|
1140
1142
|
await self._recover()
|
|
1141
1143
|
return
|
|
1142
1144
|
raise engine_lost(e.rcvd.code if e is not None and e.rcvd else None)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|