livekit-plugins-volcenginee 1.3.9__tar.gz → 1.3.10__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.
- {livekit_plugins_volcenginee-1.3.9 → livekit_plugins_volcenginee-1.3.10}/PKG-INFO +1 -1
- {livekit_plugins_volcenginee-1.3.9 → livekit_plugins_volcenginee-1.3.10}/livekit/plugins/volcengine/llm.py +9 -0
- {livekit_plugins_volcenginee-1.3.9 → livekit_plugins_volcenginee-1.3.10}/livekit/plugins/volcengine/stt.py +9 -0
- {livekit_plugins_volcenginee-1.3.9 → livekit_plugins_volcenginee-1.3.10}/livekit/plugins/volcengine/tts.py +19 -0
- livekit_plugins_volcenginee-1.3.10/livekit/plugins/volcengine/version.py +1 -0
- livekit_plugins_volcenginee-1.3.9/livekit/plugins/volcengine/version.py +0 -1
- {livekit_plugins_volcenginee-1.3.9 → livekit_plugins_volcenginee-1.3.10}/.gitignore +0 -0
- {livekit_plugins_volcenginee-1.3.9 → livekit_plugins_volcenginee-1.3.10}/README.md +0 -0
- {livekit_plugins_volcenginee-1.3.9 → livekit_plugins_volcenginee-1.3.10}/livekit/plugins/volcengine/__init__.py +0 -0
- {livekit_plugins_volcenginee-1.3.9 → livekit_plugins_volcenginee-1.3.10}/livekit/plugins/volcengine/log.py +0 -0
- {livekit_plugins_volcenginee-1.3.9 → livekit_plugins_volcenginee-1.3.10}/livekit/plugins/volcengine/py.typed +0 -0
- {livekit_plugins_volcenginee-1.3.9 → livekit_plugins_volcenginee-1.3.10}/livekit/plugins/volcengine/realtime.py +0 -0
- {livekit_plugins_volcenginee-1.3.9 → livekit_plugins_volcenginee-1.3.10}/livekit/plugins/volcengine/utils.py +0 -0
- {livekit_plugins_volcenginee-1.3.9 → livekit_plugins_volcenginee-1.3.10}/pyproject.toml +0 -0
|
@@ -114,6 +114,15 @@ class LLM(llm.LLM):
|
|
|
114
114
|
|
|
115
115
|
self._prewarm_task: asyncio.Task[None] | None = None
|
|
116
116
|
|
|
117
|
+
@property
|
|
118
|
+
def model(self) -> str:
|
|
119
|
+
"""The underlying Doubao model name (e.g. ``"doubao-1-5-lite-32k-250115"``)."""
|
|
120
|
+
return self._opts.model
|
|
121
|
+
|
|
122
|
+
@property
|
|
123
|
+
def provider(self) -> str:
|
|
124
|
+
return "volcengine"
|
|
125
|
+
|
|
117
126
|
def prewarm(self) -> None:
|
|
118
127
|
"""Issue a tiny 1-token chat completion to warm the model and prime
|
|
119
128
|
the HTTP connection.
|
|
@@ -232,6 +232,15 @@ class STT(stt.STT):
|
|
|
232
232
|
self._session = utils.http_context.http_session()
|
|
233
233
|
return self._session
|
|
234
234
|
|
|
235
|
+
@property
|
|
236
|
+
def model(self) -> str:
|
|
237
|
+
"""The underlying ASR model name (e.g. ``"bigmodel"``)."""
|
|
238
|
+
return self._opts.model_name
|
|
239
|
+
|
|
240
|
+
@property
|
|
241
|
+
def provider(self) -> str:
|
|
242
|
+
return "volcengine"
|
|
243
|
+
|
|
235
244
|
def prewarm(self) -> None:
|
|
236
245
|
"""Open the STT WebSocket and send the handshake payload so the first
|
|
237
246
|
user turn doesn't pay the TLS + WS-upgrade + auth round-trip cost.
|
|
@@ -172,6 +172,25 @@ class TTS(tts.TTS):
|
|
|
172
172
|
self._session = utils.http_context.http_session()
|
|
173
173
|
return self._session
|
|
174
174
|
|
|
175
|
+
@property
|
|
176
|
+
def model(self) -> str:
|
|
177
|
+
"""The TTS model identifier, composed as ``"{resource_id}/{voice}"``.
|
|
178
|
+
|
|
179
|
+
Both pieces matter: ``resource_id`` selects the model family
|
|
180
|
+
(``"seed-tts-2.0"``, ``"seed-tts-1.0"``, ``"seed-icl-2.0"``, …) and
|
|
181
|
+
``voice`` selects the speaker profile. The effective ``resource_id``
|
|
182
|
+
falls back to ``VOLCENGINE_TTS_RESOURCE_ID`` and then ``"seed-tts-2.0"``,
|
|
183
|
+
matching ``_TTSOptions.get_http_header``.
|
|
184
|
+
"""
|
|
185
|
+
resource_id = self._opts.resource_id or os.getenv(
|
|
186
|
+
"VOLCENGINE_TTS_RESOURCE_ID", "seed-tts-2.0"
|
|
187
|
+
)
|
|
188
|
+
return f"{resource_id}/{self._opts.voice}"
|
|
189
|
+
|
|
190
|
+
@property
|
|
191
|
+
def provider(self) -> str:
|
|
192
|
+
return "volcengine"
|
|
193
|
+
|
|
175
194
|
def prewarm(self) -> None:
|
|
176
195
|
"""Make a tiny HTTP synthesize call to prime the TLS connection and
|
|
177
196
|
warm the TTS model.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "1.3.10"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "1.3.9"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|