pipecat-respeecher 0.1.1__py3-none-any.whl → 0.1.2__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.
- pipecat_respeecher/tts.py +9 -1
- {pipecat_respeecher-0.1.1.dist-info → pipecat_respeecher-0.1.2.dist-info}/METADATA +6 -2
- pipecat_respeecher-0.1.2.dist-info/RECORD +7 -0
- {pipecat_respeecher-0.1.1.dist-info → pipecat_respeecher-0.1.2.dist-info}/WHEEL +1 -1
- pipecat_respeecher-0.1.1.dist-info/RECORD +0 -7
- {pipecat_respeecher-0.1.1.dist-info → pipecat_respeecher-0.1.2.dist-info}/licenses/LICENSE +0 -0
- {pipecat_respeecher-0.1.1.dist-info → pipecat_respeecher-0.1.2.dist-info}/top_level.txt +0 -0
pipecat_respeecher/tts.py
CHANGED
|
@@ -198,7 +198,14 @@ class RespeecherTTSService(AudioContextTTSService, TTSService):
|
|
|
198
198
|
|
|
199
199
|
url += f"/tts/websocket?api_key={self._api_key}"
|
|
200
200
|
|
|
201
|
-
self._websocket = await websocket_connect(
|
|
201
|
+
self._websocket = await websocket_connect(
|
|
202
|
+
url,
|
|
203
|
+
compression=None,
|
|
204
|
+
ping_interval=2.5,
|
|
205
|
+
ping_timeout=2.5,
|
|
206
|
+
close_timeout=2,
|
|
207
|
+
)
|
|
208
|
+
|
|
202
209
|
await self._call_event_handler("on_connected")
|
|
203
210
|
except Exception as e:
|
|
204
211
|
logger.error(f"{self} initialization error: {e}")
|
|
@@ -302,6 +309,7 @@ class RespeecherTTSService(AudioContextTTSService, TTSService):
|
|
|
302
309
|
while True:
|
|
303
310
|
await self._receive_messages_until_closed()
|
|
304
311
|
logger.info(f"{self} Respeecher disconnected, reconnecting")
|
|
312
|
+
await self._disconnect_websocket()
|
|
305
313
|
await self._connect_websocket()
|
|
306
314
|
|
|
307
315
|
@traced_tts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pipecat-respeecher
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Summary: Respeecher real-time TTS plugin for Pipecat
|
|
5
5
|
Author-email: Respeecher <nv@respeecher.com>
|
|
6
6
|
Maintainer-email: Respeecher <nv@respeecher.com>
|
|
@@ -8,6 +8,7 @@ License-Expression: BSD-2-Clause
|
|
|
8
8
|
Project-URL: Homepage, https://www.respeecher.com/real-time-tts-api
|
|
9
9
|
Project-URL: Documentation, https://space.respeecher.com/docs
|
|
10
10
|
Project-URL: Source, https://github.com/respeecher/pipecat-respeecher
|
|
11
|
+
Project-URL: Changelog, https://github.com/respeecher/pipecat-respeecher/blob/main/CHANGELOG.md
|
|
11
12
|
Keywords: tts,pipecat-ai,pipecat
|
|
12
13
|
Classifier: Intended Audience :: Developers
|
|
13
14
|
Classifier: Operating System :: OS Independent
|
|
@@ -25,7 +26,7 @@ Dynamic: license-file
|
|
|
25
26
|
|
|
26
27
|
# Pipecat Respeecher Real-Time TTS Integration
|
|
27
28
|
|
|
28
|
-
[](https://pypi.python.org/pypi/respeecher)
|
|
29
|
+
[](https://pypi.python.org/pypi/pipecat-respeecher)
|
|
29
30
|
|
|
30
31
|
This is an official Respeecher integration for [Pipecat](https://pipecat.ai).
|
|
31
32
|
|
|
@@ -70,6 +71,9 @@ other [supported Pipecat service](https://docs.pipecat.ai/server/services/suppor
|
|
|
70
71
|
|
|
71
72
|
## Example Snippets
|
|
72
73
|
|
|
74
|
+
**Note:** we recommend setting `audio_out_sample_rate=22050` in `PipelineParams`
|
|
75
|
+
like in [`example.py`](./example.py) for best results.
|
|
76
|
+
|
|
73
77
|
### Minimal Example
|
|
74
78
|
|
|
75
79
|
```python
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
pipecat_respeecher/__init__.py,sha256=loRRWbx3pIHDPwsDEiGpPHbaTq8afK8PdvKjadGrBgM,167
|
|
2
|
+
pipecat_respeecher/tts.py,sha256=Do8KCjK6vQBPHfSMhNXPCe33IxRLhVBoD79eBvkJnc8,11721
|
|
3
|
+
pipecat_respeecher-0.1.2.dist-info/licenses/LICENSE,sha256=VYxgaSz1HG1JnJ3NfZybU6fxk5LyvqlpZwzsuzJrThg,1332
|
|
4
|
+
pipecat_respeecher-0.1.2.dist-info/METADATA,sha256=E41QMUxs0jGdp9dP-4qRK8f_4c4zeKp32E9kgoMDuPc,4479
|
|
5
|
+
pipecat_respeecher-0.1.2.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
6
|
+
pipecat_respeecher-0.1.2.dist-info/top_level.txt,sha256=agL5w1Tg8kRhZcU6wIOz5wjy1L6X2nE8nI5U1XBwYeU,19
|
|
7
|
+
pipecat_respeecher-0.1.2.dist-info/RECORD,,
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
pipecat_respeecher/__init__.py,sha256=loRRWbx3pIHDPwsDEiGpPHbaTq8afK8PdvKjadGrBgM,167
|
|
2
|
-
pipecat_respeecher/tts.py,sha256=3r7RvIJXe-fY9zy6aOKftCFO26_a-Hr6V_NPfeVh0J8,11506
|
|
3
|
-
pipecat_respeecher-0.1.1.dist-info/licenses/LICENSE,sha256=VYxgaSz1HG1JnJ3NfZybU6fxk5LyvqlpZwzsuzJrThg,1332
|
|
4
|
-
pipecat_respeecher-0.1.1.dist-info/METADATA,sha256=vWo7OimRLXvSgmrcNdUwJCYnS1uqbxmn9TILqu6wX6M,4238
|
|
5
|
-
pipecat_respeecher-0.1.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
6
|
-
pipecat_respeecher-0.1.1.dist-info/top_level.txt,sha256=agL5w1Tg8kRhZcU6wIOz5wjy1L6X2nE8nI5U1XBwYeU,19
|
|
7
|
-
pipecat_respeecher-0.1.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|