livekit-plugins-deepgram 1.0.17__py3-none-any.whl → 1.0.19__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.
- livekit/plugins/deepgram/tts.py +6 -0
- livekit/plugins/deepgram/version.py +1 -1
- {livekit_plugins_deepgram-1.0.17.dist-info → livekit_plugins_deepgram-1.0.19.dist-info}/METADATA +2 -2
- {livekit_plugins_deepgram-1.0.17.dist-info → livekit_plugins_deepgram-1.0.19.dist-info}/RECORD +5 -5
- {livekit_plugins_deepgram-1.0.17.dist-info → livekit_plugins_deepgram-1.0.19.dist-info}/WHEEL +0 -0
livekit/plugins/deepgram/tts.py
CHANGED
@@ -37,6 +37,7 @@ class _TTSOptions:
|
|
37
37
|
encoding: str
|
38
38
|
sample_rate: int
|
39
39
|
word_tokenizer: tokenize.WordTokenizer
|
40
|
+
mip_opt_out: bool = False
|
40
41
|
|
41
42
|
|
42
43
|
class TTS(tts.TTS):
|
@@ -50,6 +51,7 @@ class TTS(tts.TTS):
|
|
50
51
|
base_url: str = BASE_URL,
|
51
52
|
word_tokenizer: NotGivenOr[tokenize.WordTokenizer] = NOT_GIVEN,
|
52
53
|
http_session: aiohttp.ClientSession | None = None,
|
54
|
+
mip_opt_out: bool = False,
|
53
55
|
) -> None:
|
54
56
|
"""
|
55
57
|
Create a new instance of Deepgram TTS.
|
@@ -82,6 +84,7 @@ class TTS(tts.TTS):
|
|
82
84
|
encoding=encoding,
|
83
85
|
sample_rate=sample_rate,
|
84
86
|
word_tokenizer=word_tokenizer,
|
87
|
+
mip_opt_out=mip_opt_out,
|
85
88
|
)
|
86
89
|
self._session = http_session
|
87
90
|
self._base_url = base_url
|
@@ -99,6 +102,7 @@ class TTS(tts.TTS):
|
|
99
102
|
"encoding": self._opts.encoding,
|
100
103
|
"model": self._opts.model,
|
101
104
|
"sample_rate": self._opts.sample_rate,
|
105
|
+
"mip_opt_out": self._opts.mip_opt_out,
|
102
106
|
}
|
103
107
|
return await asyncio.wait_for(
|
104
108
|
session.ws_connect(
|
@@ -208,6 +212,7 @@ class ChunkedStream(tts.ChunkedStream):
|
|
208
212
|
"encoding": self._opts.encoding,
|
209
213
|
"model": self._opts.model,
|
210
214
|
"sample_rate": self._opts.sample_rate,
|
215
|
+
"mip_opt_out": self._opts.mip_opt_out,
|
211
216
|
}
|
212
217
|
async with self._session.post(
|
213
218
|
_to_deepgram_url(config, self._base_url, websocket=False),
|
@@ -381,6 +386,7 @@ class SynthesizeStream(tts.SynthesizeStream):
|
|
381
386
|
"encoding": self._opts.encoding,
|
382
387
|
"model": self._opts.model,
|
383
388
|
"sample_rate": self._opts.sample_rate,
|
389
|
+
"mip_opt_out": self._opts.mip_opt_out,
|
384
390
|
}
|
385
391
|
ws = await asyncio.wait_for(
|
386
392
|
self._session.ws_connect(
|
{livekit_plugins_deepgram-1.0.17.dist-info → livekit_plugins_deepgram-1.0.19.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: livekit-plugins-deepgram
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.19
|
4
4
|
Summary: Agent Framework plugin for services using Deepgram's API.
|
5
5
|
Project-URL: Documentation, https://docs.livekit.io
|
6
6
|
Project-URL: Website, https://livekit.io/
|
@@ -18,7 +18,7 @@ Classifier: Topic :: Multimedia :: Sound/Audio
|
|
18
18
|
Classifier: Topic :: Multimedia :: Video
|
19
19
|
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
20
20
|
Requires-Python: >=3.9.0
|
21
|
-
Requires-Dist: livekit-agents[codecs]>=1.0.
|
21
|
+
Requires-Dist: livekit-agents[codecs]>=1.0.19
|
22
22
|
Requires-Dist: numpy>=1.26
|
23
23
|
Description-Content-Type: text/markdown
|
24
24
|
|
{livekit_plugins_deepgram-1.0.17.dist-info → livekit_plugins_deepgram-1.0.19.dist-info}/RECORD
RENAMED
@@ -4,8 +4,8 @@ livekit/plugins/deepgram/log.py,sha256=isjd2-ROJXiDFhRRnqRmYxv16U5H9dBV6ut2g5bU7
|
|
4
4
|
livekit/plugins/deepgram/models.py,sha256=dVguYc9AfjlexreN_O1C0NxX3q-ZK9k8s5B3hWsbtZ0,1236
|
5
5
|
livekit/plugins/deepgram/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
6
|
livekit/plugins/deepgram/stt.py,sha256=1O1jbfQRRX9WrpL2sCuKNb5bKvuE8bVsd9goA0td_FE,32692
|
7
|
-
livekit/plugins/deepgram/tts.py,sha256=
|
8
|
-
livekit/plugins/deepgram/version.py,sha256=
|
9
|
-
livekit_plugins_deepgram-1.0.
|
10
|
-
livekit_plugins_deepgram-1.0.
|
11
|
-
livekit_plugins_deepgram-1.0.
|
7
|
+
livekit/plugins/deepgram/tts.py,sha256=SX7vdMz4AZoZv2o_0EVwym5WMbFzy44nNGEyw2s9XFA,15728
|
8
|
+
livekit/plugins/deepgram/version.py,sha256=UDC8ahmGgRkv-qMQUY3QibuuVevGMQ9Fd4yIhcQBZwA,601
|
9
|
+
livekit_plugins_deepgram-1.0.19.dist-info/METADATA,sha256=LOmgHOZx7QUh6LDSL3PhoBSY4P4-UdEQY4_1bHdVN1Q,1350
|
10
|
+
livekit_plugins_deepgram-1.0.19.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
11
|
+
livekit_plugins_deepgram-1.0.19.dist-info/RECORD,,
|
{livekit_plugins_deepgram-1.0.17.dist-info → livekit_plugins_deepgram-1.0.19.dist-info}/WHEEL
RENAMED
File without changes
|