livekit-plugins-deepgram 1.0.16__py3-none-any.whl → 1.0.18__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.
@@ -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(
@@ -12,4 +12,4 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
- __version__ = "1.0.16"
15
+ __version__ = "1.0.18"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: livekit-plugins-deepgram
3
- Version: 1.0.16
3
+ Version: 1.0.18
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.16
21
+ Requires-Dist: livekit-agents[codecs]>=1.0.18
22
22
  Requires-Dist: numpy>=1.26
23
23
  Description-Content-Type: text/markdown
24
24
 
@@ -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=Cm3u6Oa2WumOLfup8j9wgK3s_-68Nkc7QtuP_hoppvM,15461
8
- livekit/plugins/deepgram/version.py,sha256=JrpH7xxAlurLX7a-QPfPkangHuYRj8VFBapC1AR9TZs,601
9
- livekit_plugins_deepgram-1.0.16.dist-info/METADATA,sha256=pI-bkwI-qrows19l5W1k4OgeiduNnD_AFjLRkmFHfVM,1350
10
- livekit_plugins_deepgram-1.0.16.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
11
- livekit_plugins_deepgram-1.0.16.dist-info/RECORD,,
7
+ livekit/plugins/deepgram/tts.py,sha256=SX7vdMz4AZoZv2o_0EVwym5WMbFzy44nNGEyw2s9XFA,15728
8
+ livekit/plugins/deepgram/version.py,sha256=cnPu9FVKZV9tFmmz7lEvftrO3B_nWJVFghi3j6UcJLs,601
9
+ livekit_plugins_deepgram-1.0.18.dist-info/METADATA,sha256=k9L1oT3msr7jyk35hLp4awIXs9OrAVN91Hdjw08A_w4,1350
10
+ livekit_plugins_deepgram-1.0.18.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
11
+ livekit_plugins_deepgram-1.0.18.dist-info/RECORD,,