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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ojin-client
3
- Version: 0.1.7.dev6
3
+ Version: 0.1.7.dev8
4
4
  Summary: Ojin platform services
5
5
  Author: Journee
6
6
  License: Apache-2.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
- pass
371
+ continue
373
372
 
374
373
  try:
375
374
  message_audio = self._audio_queue.get_nowait()
376
375
  except asyncio.QueueEmpty:
377
- pass
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 = [
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ojin-client
3
- Version: 0.1.7.dev6
3
+ Version: 0.1.7.dev8
4
4
  Summary: Ojin platform services
5
5
  Author: Journee
6
6
  License: Apache-2.0
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "ojin-client"
3
- version = "0.1.7dev6"
3
+ version = "0.1.7dev8"
4
4
  description = "Ojin platform services"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10"