livekit-plugins-google 0.6.0.dev2__py3-none-any.whl → 0.6.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/stt.py +8 -7
- livekit/plugins/google/tts.py +1 -1
- livekit/plugins/google/version.py +1 -1
- {livekit_plugins_google-0.6.0.dev2.dist-info → livekit_plugins_google-0.6.1.dist-info}/METADATA +2 -2
- livekit_plugins_google-0.6.1.dist-info/RECORD +11 -0
- livekit_plugins_google-0.6.0.dev2.dist-info/RECORD +0 -11
- {livekit_plugins_google-0.6.0.dev2.dist-info → livekit_plugins_google-0.6.1.dist-info}/WHEEL +0 -0
- {livekit_plugins_google-0.6.0.dev2.dist-info → livekit_plugins_google-0.6.1.dist-info}/top_level.txt +0 -0
livekit/plugins/google/stt.py
CHANGED
@@ -20,7 +20,7 @@ import os
|
|
20
20
|
from dataclasses import dataclass
|
21
21
|
from typing import AsyncIterable, List, Union
|
22
22
|
|
23
|
-
from livekit import agents
|
23
|
+
from livekit import agents, rtc
|
24
24
|
from livekit.agents import stt, utils
|
25
25
|
|
26
26
|
from google.cloud.speech_v2 import SpeechAsyncClient
|
@@ -225,12 +225,13 @@ class SpeechStream(stt.SpeechStream):
|
|
225
225
|
)
|
226
226
|
|
227
227
|
async for frame in self._input_ch:
|
228
|
-
frame
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
228
|
+
if isinstance(frame, rtc.AudioFrame):
|
229
|
+
frame = frame.remix_and_resample(
|
230
|
+
self._sample_rate, self._num_channels
|
231
|
+
)
|
232
|
+
yield cloud_speech.StreamingRecognizeRequest(
|
233
|
+
audio=frame.data.tobytes()
|
234
|
+
)
|
234
235
|
|
235
236
|
except Exception:
|
236
237
|
logger.exception(
|
livekit/plugins/google/tts.py
CHANGED
{livekit_plugins_google-0.6.0.dev2.dist-info → livekit_plugins_google-0.6.1.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: livekit-plugins-google
|
3
|
-
Version: 0.6.
|
3
|
+
Version: 0.6.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
|
@@ -21,7 +21,7 @@ Requires-Python: >=3.9.0
|
|
21
21
|
Description-Content-Type: text/markdown
|
22
22
|
Requires-Dist: google-cloud-speech <3,>=2
|
23
23
|
Requires-Dist: google-cloud-texttospeech <3,>=2
|
24
|
-
Requires-Dist: livekit-agents
|
24
|
+
Requires-Dist: livekit-agents >=0.8.0.dev0
|
25
25
|
|
26
26
|
# LiveKit Plugins Google
|
27
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=M8ybqoD72qX-hzjMc6iCHTHxCNpWGKymg_ghF5OJRfA,12944
|
6
|
+
livekit/plugins/google/tts.py,sha256=jvbw-T-JlVxcYWiF-tCox35LZuCN3DBKwDp3zN8JCTw,5549
|
7
|
+
livekit/plugins/google/version.py,sha256=VuvtIt3FphjfrQRjPSUJA5MBuzWXY-hZr6Xa40x487A,600
|
8
|
+
livekit_plugins_google-0.6.1.dist-info/METADATA,sha256=spmwpbsVi4TeFMWv11ToHzSoNcA9V762hxSeJCXIJtI,1584
|
9
|
+
livekit_plugins_google-0.6.1.dist-info/WHEEL,sha256=Wyh-_nZ0DJYolHNn1_hMa4lM7uDedD_RGVwbmTjyItk,91
|
10
|
+
livekit_plugins_google-0.6.1.dist-info/top_level.txt,sha256=OoDok3xUmXbZRvOrfvvXB-Juu4DX79dlq188E19YHoo,8
|
11
|
+
livekit_plugins_google-0.6.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=bqXaoi5trER7PE45axfEpHwReElmf7yl38RpK1iJsdc,12849
|
6
|
-
livekit/plugins/google/tts.py,sha256=KUw826CK3yt5meGVj0TKkueQ8o_gaXbc1Rtvdv2yF5M,5548
|
7
|
-
livekit/plugins/google/version.py,sha256=kzmAUKz43CAJRmkyNQC2IAHK13E2S_WXJuayZpkVJF8,606
|
8
|
-
livekit_plugins_google-0.6.0.dev2.dist-info/METADATA,sha256=NTQZuP760bpzxPebd7o8brXyhzGro0FWbIb2_Yjrs0c,1582
|
9
|
-
livekit_plugins_google-0.6.0.dev2.dist-info/WHEEL,sha256=Wyh-_nZ0DJYolHNn1_hMa4lM7uDedD_RGVwbmTjyItk,91
|
10
|
-
livekit_plugins_google-0.6.0.dev2.dist-info/top_level.txt,sha256=OoDok3xUmXbZRvOrfvvXB-Juu4DX79dlq188E19YHoo,8
|
11
|
-
livekit_plugins_google-0.6.0.dev2.dist-info/RECORD,,
|
{livekit_plugins_google-0.6.0.dev2.dist-info → livekit_plugins_google-0.6.1.dist-info}/WHEEL
RENAMED
File without changes
|
{livekit_plugins_google-0.6.0.dev2.dist-info → livekit_plugins_google-0.6.1.dist-info}/top_level.txt
RENAMED
File without changes
|