ojin-client 0.1.7.dev6__tar.gz → 0.1.7.dev8__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.
- {ojin_client-0.1.7.dev6 → ojin_client-0.1.7.dev8}/PKG-INFO +1 -1
- {ojin_client-0.1.7.dev6 → ojin_client-0.1.7.dev8}/ojin/ojin_persona_client.py +3 -6
- {ojin_client-0.1.7.dev6 → ojin_client-0.1.7.dev8}/ojin_client.egg-info/PKG-INFO +1 -1
- {ojin_client-0.1.7.dev6 → ojin_client-0.1.7.dev8}/pyproject.toml +1 -1
- {ojin_client-0.1.7.dev6 → ojin_client-0.1.7.dev8}/README.md +0 -0
- {ojin_client-0.1.7.dev6 → ojin_client-0.1.7.dev8}/ojin/__init__.py +0 -0
- {ojin_client-0.1.7.dev6 → ojin_client-0.1.7.dev8}/ojin/cacert.pem +0 -0
- {ojin_client-0.1.7.dev6 → ojin_client-0.1.7.dev8}/ojin/entities/interaction_messages.py +0 -0
- {ojin_client-0.1.7.dev6 → ojin_client-0.1.7.dev8}/ojin/entities/session_messages.py +0 -0
- {ojin_client-0.1.7.dev6 → ojin_client-0.1.7.dev8}/ojin/ojin_persona_messages.py +0 -0
- {ojin_client-0.1.7.dev6 → ojin_client-0.1.7.dev8}/ojin_client.egg-info/SOURCES.txt +0 -0
- {ojin_client-0.1.7.dev6 → ojin_client-0.1.7.dev8}/ojin_client.egg-info/dependency_links.txt +0 -0
- {ojin_client-0.1.7.dev6 → ojin_client-0.1.7.dev8}/ojin_client.egg-info/requires.txt +0 -0
- {ojin_client-0.1.7.dev6 → ojin_client-0.1.7.dev8}/ojin_client.egg-info/top_level.txt +0 -0
- {ojin_client-0.1.7.dev6 → ojin_client-0.1.7.dev8}/setup.cfg +0 -0
|
@@ -323,7 +323,6 @@ class OjinPersonaClient(IOjinPersonaClient):
|
|
|
323
323
|
|
|
324
324
|
if not message.audio_int16_bytes:
|
|
325
325
|
raise ValueError("Audio cannot be empty")
|
|
326
|
-
|
|
327
326
|
|
|
328
327
|
await self._audio_queue.put(message)
|
|
329
328
|
# Split audio bytes into chunks of max 3200 samples
|
|
@@ -369,15 +368,13 @@ class OjinPersonaClient(IOjinPersonaClient):
|
|
|
369
368
|
while True:
|
|
370
369
|
message_audio: OjinPersonaInteractionInputMessage| None = None
|
|
371
370
|
if self._cancelled:
|
|
372
|
-
|
|
371
|
+
continue
|
|
373
372
|
|
|
374
373
|
try:
|
|
375
374
|
message_audio = self._audio_queue.get_nowait()
|
|
376
375
|
except asyncio.QueueEmpty:
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
if message_audio is None:
|
|
380
|
-
pass
|
|
376
|
+
await asyncio.sleep(0.01)
|
|
377
|
+
continue
|
|
381
378
|
|
|
382
379
|
max_chunk_size = 3200 * 2
|
|
383
380
|
audio_chunks = [
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|