livekit-plugins-google 0.5.dev0__py3-none-any.whl → 0.5.1__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/google/tts.py +5 -2
- livekit/plugins/google/version.py +1 -1
- {livekit_plugins_google-0.5.dev0.dist-info → livekit_plugins_google-0.5.1.dist-info}/METADATA +3 -12
- livekit_plugins_google-0.5.1.dist-info/RECORD +11 -0
- livekit_plugins_google-0.5.dev0.dist-info/RECORD +0 -11
- {livekit_plugins_google-0.5.dev0.dist-info → livekit_plugins_google-0.5.1.dist-info}/WHEEL +0 -0
- {livekit_plugins_google-0.5.dev0.dist-info → livekit_plugins_google-0.5.1.dist-info}/top_level.txt +0 -0
livekit/plugins/google/tts.py
CHANGED
@@ -20,7 +20,8 @@ from dataclasses import dataclass
|
|
20
20
|
from typing import Optional, Union
|
21
21
|
|
22
22
|
from livekit import rtc
|
23
|
-
from livekit.agents import
|
23
|
+
from livekit.agents import tts
|
24
|
+
from livekit.agents.utils import codecs
|
24
25
|
|
25
26
|
from google.cloud import texttospeech
|
26
27
|
from google.cloud.texttospeech_v1.types import (
|
@@ -146,7 +147,9 @@ class ChunkedStream(tts.ChunkedStream):
|
|
146
147
|
decoder = codecs.Mp3StreamDecoder()
|
147
148
|
frames = decoder.decode_chunk(data)
|
148
149
|
for frame in frames:
|
149
|
-
self._queue.put_nowait(
|
150
|
+
self._queue.put_nowait(
|
151
|
+
tts.SynthesizedAudio(text=self._text, data=frame)
|
152
|
+
)
|
150
153
|
else:
|
151
154
|
self._queue.put_nowait(
|
152
155
|
tts.SynthesizedAudio(
|
{livekit_plugins_google-0.5.dev0.dist-info → livekit_plugins_google-0.5.1.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: livekit-plugins-google
|
3
|
-
Version: 0.5.
|
3
|
+
Version: 0.5.1
|
4
4
|
Summary: Agent Framework plugin for services from Google Cloud
|
5
5
|
Home-page: https://github.com/livekit/agents
|
6
6
|
License: Apache-2.0
|
@@ -14,23 +14,14 @@ Classifier: Topic :: Multimedia :: Sound/Audio
|
|
14
14
|
Classifier: Topic :: Multimedia :: Video
|
15
15
|
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
16
16
|
Classifier: Programming Language :: Python :: 3
|
17
|
-
Classifier: Programming Language :: Python :: 3.7
|
18
|
-
Classifier: Programming Language :: Python :: 3.8
|
19
17
|
Classifier: Programming Language :: Python :: 3.9
|
20
18
|
Classifier: Programming Language :: Python :: 3.10
|
21
19
|
Classifier: Programming Language :: Python :: 3 :: Only
|
22
|
-
Requires-Python: >=3.
|
20
|
+
Requires-Python: >=3.9.0
|
23
21
|
Description-Content-Type: text/markdown
|
24
|
-
Requires-Dist: numpy <2,>=1
|
25
|
-
Requires-Dist: google-api-core <3,>=2
|
26
|
-
Requires-Dist: google-auth <3,>=2
|
27
|
-
Requires-Dist: google-cloud-core <3,>=2
|
28
22
|
Requires-Dist: google-cloud-speech <3,>=2
|
29
23
|
Requires-Dist: google-cloud-texttospeech <3,>=2
|
30
|
-
Requires-Dist:
|
31
|
-
Requires-Dist: googleapis-common-protos <2,>=1
|
32
|
-
Requires-Dist: livekit ~=0.11
|
33
|
-
Requires-Dist: livekit-agents ~=0.7.dev0
|
24
|
+
Requires-Dist: livekit-agents ~=0.7
|
34
25
|
|
35
26
|
# LiveKit Plugins Google
|
36
27
|
|
@@ -0,0 +1,11 @@
|
|
1
|
+
livekit/plugins/google/__init__.py,sha256=DlQC5cosMFyQlM8_vFvJGoZiziFkd0Sa4mutnsxXyZM,959
|
2
|
+
livekit/plugins/google/log.py,sha256=GI3YWN5YzrafnUccljzPRS_ZALkMNk1i21IRnTl2vNA,69
|
3
|
+
livekit/plugins/google/models.py,sha256=n8pgTJ7xyJpPCZJ_y0GzaQq6LqYknL6K6trpi07-AxM,1307
|
4
|
+
livekit/plugins/google/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
5
|
+
livekit/plugins/google/stt.py,sha256=GfWita3mgLZG2KpS9WYMCL8jwCNN5qukicpI58zPCcY,16058
|
6
|
+
livekit/plugins/google/tts.py,sha256=vYOPDebz5YUzQqlT1lqF0h_liP-1S38lCffdk1ETOg0,6214
|
7
|
+
livekit/plugins/google/version.py,sha256=lnLU02KpruwZLXljnGCTau4BB-Ycv9A1dIKvj053gCg,600
|
8
|
+
livekit_plugins_google-0.5.1.dist-info/METADATA,sha256=V4_6mKQZbvSotoU00pQpDX-t3UxMy_9ZuUO6xbFw9nE,1577
|
9
|
+
livekit_plugins_google-0.5.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
10
|
+
livekit_plugins_google-0.5.1.dist-info/top_level.txt,sha256=OoDok3xUmXbZRvOrfvvXB-Juu4DX79dlq188E19YHoo,8
|
11
|
+
livekit_plugins_google-0.5.1.dist-info/RECORD,,
|
@@ -1,11 +0,0 @@
|
|
1
|
-
livekit/plugins/google/__init__.py,sha256=DlQC5cosMFyQlM8_vFvJGoZiziFkd0Sa4mutnsxXyZM,959
|
2
|
-
livekit/plugins/google/log.py,sha256=GI3YWN5YzrafnUccljzPRS_ZALkMNk1i21IRnTl2vNA,69
|
3
|
-
livekit/plugins/google/models.py,sha256=n8pgTJ7xyJpPCZJ_y0GzaQq6LqYknL6K6trpi07-AxM,1307
|
4
|
-
livekit/plugins/google/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
5
|
-
livekit/plugins/google/stt.py,sha256=GfWita3mgLZG2KpS9WYMCL8jwCNN5qukicpI58zPCcY,16058
|
6
|
-
livekit/plugins/google/tts.py,sha256=eVv463AKHmDT5qJ8QGEJZO1JBPgfeVx2rIx9oCEv2xc,6128
|
7
|
-
livekit/plugins/google/version.py,sha256=h2gCxcJSMvCrVP7h14ON6HaghqLCkbl3--HZKEopR_8,603
|
8
|
-
livekit_plugins_google-0.5.dev0.dist-info/METADATA,sha256=9OoG-PpOoD0b8iTuVzuEoTkr_c-pGMQ00hwsBXbAbaY,1947
|
9
|
-
livekit_plugins_google-0.5.dev0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
10
|
-
livekit_plugins_google-0.5.dev0.dist-info/top_level.txt,sha256=OoDok3xUmXbZRvOrfvvXB-Juu4DX79dlq188E19YHoo,8
|
11
|
-
livekit_plugins_google-0.5.dev0.dist-info/RECORD,,
|
File without changes
|
{livekit_plugins_google-0.5.dev0.dist-info → livekit_plugins_google-0.5.1.dist-info}/top_level.txt
RENAMED
File without changes
|