dv-pipecat-ai 0.0.85.dev844__py3-none-any.whl → 0.0.85.dev847__py3-none-any.whl

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: dv-pipecat-ai
3
- Version: 0.0.85.dev844
3
+ Version: 0.0.85.dev847
4
4
  Summary: An open source framework for voice (and multimodal) assistants
5
5
  License-Expression: BSD-2-Clause
6
6
  Project-URL: Source, https://github.com/pipecat-ai/pipecat
@@ -1,4 +1,4 @@
1
- dv_pipecat_ai-0.0.85.dev844.dist-info/licenses/LICENSE,sha256=DWY2QGf2eMCFhuu2ChairtT6CB7BEFffNVhXWc4Od08,1301
1
+ dv_pipecat_ai-0.0.85.dev847.dist-info/licenses/LICENSE,sha256=DWY2QGf2eMCFhuu2ChairtT6CB7BEFffNVhXWc4Od08,1301
2
2
  pipecat/__init__.py,sha256=j0Xm6adxHhd7D06dIyyPV_GlBYLlBnTAERVvD_jAARQ,861
3
3
  pipecat/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  pipecat/adapters/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -218,7 +218,7 @@ pipecat/services/deepseek/__init__.py,sha256=bU5z_oNGzgrF_YpsD9pYIMtEibeZFaUobbR
218
218
  pipecat/services/deepseek/llm.py,sha256=5KjpU2blmhUTM3LcRE1ymdsk6OmoFkIzeQgyNOGwQh8,3112
219
219
  pipecat/services/elevenlabs/__init__.py,sha256=cMx5v0HEMh4WetMm5byR9tIjG6_wNVs9UxqWyB3tjlM,313
220
220
  pipecat/services/elevenlabs/stt.py,sha256=F3xD82eOIy5OyyE-5StdoFFvKjIXlos2yyP0cyNQj6Y,12214
221
- pipecat/services/elevenlabs/tts.py,sha256=Okctydqoz2HG9B69l-bDunNHcqoul-kUxhEZjYt539U,45188
221
+ pipecat/services/elevenlabs/tts.py,sha256=skUndgUatx2F5rjg2tBZLutB8k9B9Cjy-cUeglCDdwc,45314
222
222
  pipecat/services/fal/__init__.py,sha256=z_kfZETvUcKy68Lyvni4B-RtdkOvz3J3eh6sFDVKq6M,278
223
223
  pipecat/services/fal/image.py,sha256=vArKLKrIGoZfw_xeZY_E7zbUzfzVsScj-R7mOmVqjRQ,4585
224
224
  pipecat/services/fal/stt.py,sha256=-5tw7N8srBJTS0Q65SN4csmLkIB6cLHR9pXKimxg55o,9678
@@ -329,7 +329,7 @@ pipecat/services/sarvam/tts.py,sha256=lrwfdC53kZ7f2QPgNRxzryISNkrJCvNtlZ-19-iXg9
329
329
  pipecat/services/simli/__init__.py,sha256=cbDcqOaGsEgKbGYKpJ1Vv7LN4ZjOWA04sE84WW5vgQI,257
330
330
  pipecat/services/simli/video.py,sha256=Zu2XLvl2Y6VHaWzT9wEdzW9d0EYoZyzYLxjQFyV8vho,8320
331
331
  pipecat/services/soniox/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
332
- pipecat/services/soniox/stt.py,sha256=Ndml6QvPQ1WZBvdGT3LSg-LLWwrZ8KlqW8wBBFsQrrM,16509
332
+ pipecat/services/soniox/stt.py,sha256=zRp5qWU051hEAikt0vB0rbHrkQkH5sT-IOe-o5vCurQ,16650
333
333
  pipecat/services/speechmatics/__init__.py,sha256=Jgq1fqrZVkpWC21D79L1cn5Ub8PnYgnnCaqC5pOlbIc,89
334
334
  pipecat/services/speechmatics/stt.py,sha256=GLGJzlMSeZ1WzTOMjhKXDl5JYkqGhnFTbP3o0ez0hSw,44696
335
335
  pipecat/services/tavus/__init__.py,sha256=SNyyi2Xq6tXIihDG2Bwvmg6Srbd-uWd1RwG-NKWcPuI,257
@@ -416,7 +416,7 @@ pipecat/utils/tracing/service_decorators.py,sha256=fwzxFpi8DJl6BJbK74G0UEB4ccMJg
416
416
  pipecat/utils/tracing/setup.py,sha256=7TEgPNpq6M8lww8OQvf0P9FzYc5A30xICGklVA-fua0,2892
417
417
  pipecat/utils/tracing/turn_context_provider.py,sha256=ikon3plFOx0XbMrH6DdeHttNpb-U0gzMZIm3bWLc9eI,2485
418
418
  pipecat/utils/tracing/turn_trace_observer.py,sha256=dma16SBJpYSOE58YDWy89QzHyQFc_9gQZszKeWixuwc,9725
419
- dv_pipecat_ai-0.0.85.dev844.dist-info/METADATA,sha256=JgW9PLS_gplsOlHfyohgocRxrsiivvsAEySMY214f4U,32955
420
- dv_pipecat_ai-0.0.85.dev844.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
421
- dv_pipecat_ai-0.0.85.dev844.dist-info/top_level.txt,sha256=kQzG20CxGf-nSsHmtXHx3hY2-8zHA3jYg8jk0TajqXc,8
422
- dv_pipecat_ai-0.0.85.dev844.dist-info/RECORD,,
419
+ dv_pipecat_ai-0.0.85.dev847.dist-info/METADATA,sha256=UDO7OKPaUOT1xGmii54o0h6Ee5jwWVp2ztvSbSKK-KU,32955
420
+ dv_pipecat_ai-0.0.85.dev847.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
421
+ dv_pipecat_ai-0.0.85.dev847.dist-info/top_level.txt,sha256=kQzG20CxGf-nSsHmtXHx3hY2-8zHA3jYg8jk0TajqXc,8
422
+ dv_pipecat_ai-0.0.85.dev847.dist-info/RECORD,,
@@ -14,7 +14,17 @@ import asyncio
14
14
  import base64
15
15
  import json
16
16
  import uuid
17
- from typing import Any, AsyncGenerator, Dict, List, Literal, Mapping, Optional, Tuple, Union
17
+ from typing import (
18
+ Any,
19
+ AsyncGenerator,
20
+ Dict,
21
+ List,
22
+ Literal,
23
+ Mapping,
24
+ Optional,
25
+ Tuple,
26
+ Union,
27
+ )
18
28
 
19
29
  import aiohttp
20
30
  from loguru import logger
@@ -157,7 +167,13 @@ def build_elevenlabs_voice_settings(
157
167
  Returns:
158
168
  Dictionary of voice settings or None if no valid settings are provided.
159
169
  """
160
- voice_setting_keys = ["stability", "similarity_boost", "style", "use_speaker_boost", "speed"]
170
+ voice_setting_keys = [
171
+ "stability",
172
+ "similarity_boost",
173
+ "style",
174
+ "use_speaker_boost",
175
+ "speed",
176
+ ]
161
177
 
162
178
  voice_settings = {}
163
179
  for key in voice_setting_keys:
@@ -530,7 +546,9 @@ class ElevenLabsTTSService(AudioContextWordTTSService):
530
546
 
531
547
  # Set max websocket message size to 16MB for large audio responses
532
548
  self._websocket = await websocket_connect(
533
- url, max_size=16 * 1024 * 1024, additional_headers={"xi-api-key": self._api_key}
549
+ url,
550
+ max_size=16 * 1024 * 1024,
551
+ additional_headers={"xi-api-key": self._api_key},
534
552
  )
535
553
 
536
554
  await self._call_event_handler("on_connected")
@@ -549,7 +567,7 @@ class ElevenLabsTTSService(AudioContextWordTTSService):
549
567
  if self._context_id:
550
568
  await self._websocket.send(json.dumps({"close_socket": True}))
551
569
  await self._websocket.close()
552
- logger.debug("Disconnected from ElevenLabs")
570
+ self.logger.debug("Disconnected from ElevenLabs")
553
571
  except Exception as e:
554
572
  self.logger.error(f"{self} error closing websocket: {e}")
555
573
  finally:
@@ -241,6 +241,7 @@ class SonioxSTTService(STTService):
241
241
  if self._receive_task != asyncio.current_task():
242
242
  await self._receive_task
243
243
  self._receive_task = None
244
+ self.logger.debug("Disconnected from Soniox STT")
244
245
 
245
246
  async def stop(self, frame: EndFrame):
246
247
  """Stop the Soniox STT websocket connection.
@@ -382,7 +383,10 @@ class SonioxSTTService(STTService):
382
383
 
383
384
  if self._final_transcription_buffer or non_final_transcription:
384
385
  final_text = "".join(
385
- map(lambda token: token["text"], self._final_transcription_buffer)
386
+ map(
387
+ lambda token: token["text"],
388
+ self._final_transcription_buffer,
389
+ )
386
390
  )
387
391
  non_final_text = "".join(
388
392
  map(lambda token: token["text"], non_final_transcription)