dv-pipecat-ai 0.0.85.dev843__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.
- {dv_pipecat_ai-0.0.85.dev843.dist-info → dv_pipecat_ai-0.0.85.dev847.dist-info}/METADATA +1 -1
- {dv_pipecat_ai-0.0.85.dev843.dist-info → dv_pipecat_ai-0.0.85.dev847.dist-info}/RECORD +8 -8
- pipecat/services/elevenlabs/tts.py +22 -4
- pipecat/services/soniox/stt.py +5 -1
- pipecat/transports/base_output.py +1 -1
- {dv_pipecat_ai-0.0.85.dev843.dist-info → dv_pipecat_ai-0.0.85.dev847.dist-info}/WHEEL +0 -0
- {dv_pipecat_ai-0.0.85.dev843.dist-info → dv_pipecat_ai-0.0.85.dev847.dist-info}/licenses/LICENSE +0 -0
- {dv_pipecat_ai-0.0.85.dev843.dist-info → dv_pipecat_ai-0.0.85.dev847.dist-info}/top_level.txt +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
dv_pipecat_ai-0.0.85.
|
|
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=
|
|
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=
|
|
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
|
|
@@ -354,7 +354,7 @@ pipecat/transcriptions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3
|
|
|
354
354
|
pipecat/transcriptions/language.py,sha256=-mWI1MiZbasuoqZTOBH69dAmoM7-UJzWq9rSCcrnmh4,8228
|
|
355
355
|
pipecat/transports/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
356
356
|
pipecat/transports/base_input.py,sha256=AkdE-j9UksjIrUGJc7laMOaknXgOS7L22D5sehZ-6ew,20176
|
|
357
|
-
pipecat/transports/base_output.py,sha256=
|
|
357
|
+
pipecat/transports/base_output.py,sha256=T_NfU38sT6wKxXF1jA7hW5eLhTK11pundQBxAojswW8,36723
|
|
358
358
|
pipecat/transports/base_transport.py,sha256=JlNiH0DysTfr6azwHauJqY_Z9HJC702O29Q0qrsLrg4,7530
|
|
359
359
|
pipecat/transports/daily/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
360
360
|
pipecat/transports/daily/transport.py,sha256=VanO33ff9g6px-vwGgT6M7cMVg786pOGfMU7Okm7a78,91917
|
|
@@ -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.
|
|
420
|
-
dv_pipecat_ai-0.0.85.
|
|
421
|
-
dv_pipecat_ai-0.0.85.
|
|
422
|
-
dv_pipecat_ai-0.0.85.
|
|
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
|
|
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 = [
|
|
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,
|
|
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:
|
pipecat/services/soniox/stt.py
CHANGED
|
@@ -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(
|
|
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)
|
|
@@ -54,7 +54,7 @@ BOT_VAD_STOP_SECS = 0.30
|
|
|
54
54
|
# detect end-of-speech sooner to improve responsiveness for the
|
|
55
55
|
# user’s first short reply. Keep conservative to avoid mid-utterance
|
|
56
56
|
# false stops when TTS streams quickly.
|
|
57
|
-
FIRST_BOT_VAD_STOP_SECS = 0.
|
|
57
|
+
FIRST_BOT_VAD_STOP_SECS = 0.12
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
class BaseOutputTransport(FrameProcessor):
|
|
File without changes
|
{dv_pipecat_ai-0.0.85.dev843.dist-info → dv_pipecat_ai-0.0.85.dev847.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
{dv_pipecat_ai-0.0.85.dev843.dist-info → dv_pipecat_ai-0.0.85.dev847.dist-info}/top_level.txt
RENAMED
|
File without changes
|