livekit-plugins-google 1.2.9__tar.gz → 1.2.11__tar.gz
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.
Potentially problematic release.
This version of livekit-plugins-google might be problematic. Click here for more details.
- {livekit_plugins_google-1.2.9 → livekit_plugins_google-1.2.11}/PKG-INFO +2 -2
- {livekit_plugins_google-1.2.9 → livekit_plugins_google-1.2.11}/livekit/plugins/google/beta/realtime/realtime_api.py +7 -1
- {livekit_plugins_google-1.2.9 → livekit_plugins_google-1.2.11}/livekit/plugins/google/stt.py +5 -0
- {livekit_plugins_google-1.2.9 → livekit_plugins_google-1.2.11}/livekit/plugins/google/version.py +1 -1
- {livekit_plugins_google-1.2.9 → livekit_plugins_google-1.2.11}/pyproject.toml +1 -1
- {livekit_plugins_google-1.2.9 → livekit_plugins_google-1.2.11}/.gitignore +0 -0
- {livekit_plugins_google-1.2.9 → livekit_plugins_google-1.2.11}/README.md +0 -0
- {livekit_plugins_google-1.2.9 → livekit_plugins_google-1.2.11}/livekit/plugins/google/__init__.py +0 -0
- {livekit_plugins_google-1.2.9 → livekit_plugins_google-1.2.11}/livekit/plugins/google/beta/__init__.py +0 -0
- {livekit_plugins_google-1.2.9 → livekit_plugins_google-1.2.11}/livekit/plugins/google/beta/gemini_tts.py +0 -0
- {livekit_plugins_google-1.2.9 → livekit_plugins_google-1.2.11}/livekit/plugins/google/beta/realtime/__init__.py +0 -0
- {livekit_plugins_google-1.2.9 → livekit_plugins_google-1.2.11}/livekit/plugins/google/beta/realtime/api_proto.py +0 -0
- {livekit_plugins_google-1.2.9 → livekit_plugins_google-1.2.11}/livekit/plugins/google/llm.py +0 -0
- {livekit_plugins_google-1.2.9 → livekit_plugins_google-1.2.11}/livekit/plugins/google/log.py +0 -0
- {livekit_plugins_google-1.2.9 → livekit_plugins_google-1.2.11}/livekit/plugins/google/models.py +0 -0
- {livekit_plugins_google-1.2.9 → livekit_plugins_google-1.2.11}/livekit/plugins/google/py.typed +0 -0
- {livekit_plugins_google-1.2.9 → livekit_plugins_google-1.2.11}/livekit/plugins/google/tools.py +0 -0
- {livekit_plugins_google-1.2.9 → livekit_plugins_google-1.2.11}/livekit/plugins/google/tts.py +0 -0
- {livekit_plugins_google-1.2.9 → livekit_plugins_google-1.2.11}/livekit/plugins/google/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: livekit-plugins-google
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.11
|
|
4
4
|
Summary: Agent Framework plugin for services from Google Cloud
|
|
5
5
|
Project-URL: Documentation, https://docs.livekit.io
|
|
6
6
|
Project-URL: Website, https://livekit.io/
|
|
@@ -22,7 +22,7 @@ Requires-Dist: google-auth<3,>=2
|
|
|
22
22
|
Requires-Dist: google-cloud-speech<3,>=2
|
|
23
23
|
Requires-Dist: google-cloud-texttospeech<3,>=2.27
|
|
24
24
|
Requires-Dist: google-genai>=v1.23.0
|
|
25
|
-
Requires-Dist: livekit-agents>=1.2.
|
|
25
|
+
Requires-Dist: livekit-agents>=1.2.11
|
|
26
26
|
Description-Content-Type: text/markdown
|
|
27
27
|
|
|
28
28
|
# Google AI plugin for LiveKit Agents
|
|
@@ -305,6 +305,10 @@ class RealtimeModel(llm.RealtimeModel):
|
|
|
305
305
|
async def aclose(self) -> None:
|
|
306
306
|
pass
|
|
307
307
|
|
|
308
|
+
@property
|
|
309
|
+
def model(self) -> str:
|
|
310
|
+
return self._opts.model
|
|
311
|
+
|
|
308
312
|
|
|
309
313
|
class RealtimeSession(llm.RealtimeSession):
|
|
310
314
|
def __init__(self, realtime_model: RealtimeModel) -> None:
|
|
@@ -830,6 +834,7 @@ class RealtimeSession(llm.RealtimeSession):
|
|
|
830
834
|
message_stream=self._current_generation.message_ch,
|
|
831
835
|
function_stream=self._current_generation.function_ch,
|
|
832
836
|
user_initiated=False,
|
|
837
|
+
response_id=self._current_generation.response_id,
|
|
833
838
|
)
|
|
834
839
|
|
|
835
840
|
if self._pending_generation_fut and not self._pending_generation_fut.done():
|
|
@@ -1019,7 +1024,8 @@ class RealtimeSession(llm.RealtimeSession):
|
|
|
1019
1024
|
return token_details_map
|
|
1020
1025
|
|
|
1021
1026
|
metrics = RealtimeModelMetrics(
|
|
1022
|
-
label=self._realtime_model.
|
|
1027
|
+
label=self._realtime_model.label,
|
|
1028
|
+
model=self._realtime_model.model,
|
|
1023
1029
|
request_id=current_gen.response_id,
|
|
1024
1030
|
timestamp=current_gen._created_timestamp,
|
|
1025
1031
|
duration=duration,
|
{livekit_plugins_google-1.2.9 → livekit_plugins_google-1.2.11}/livekit/plugins/google/stt.py
RENAMED
|
@@ -70,6 +70,7 @@ class STTOptions:
|
|
|
70
70
|
spoken_punctuation: bool
|
|
71
71
|
enable_word_time_offsets: bool
|
|
72
72
|
enable_word_confidence: bool
|
|
73
|
+
enable_voice_activity_events: bool
|
|
73
74
|
model: SpeechModels | str
|
|
74
75
|
sample_rate: int
|
|
75
76
|
min_confidence_threshold: float
|
|
@@ -103,6 +104,7 @@ class STT(stt.STT):
|
|
|
103
104
|
spoken_punctuation: bool = False,
|
|
104
105
|
enable_word_time_offsets: bool = True,
|
|
105
106
|
enable_word_confidence: bool = False,
|
|
107
|
+
enable_voice_activity_events: bool = False,
|
|
106
108
|
model: SpeechModels | str = "latest_long",
|
|
107
109
|
location: str = "global",
|
|
108
110
|
sample_rate: int = 16000,
|
|
@@ -127,6 +129,7 @@ class STT(stt.STT):
|
|
|
127
129
|
spoken_punctuation(bool): whether to use spoken punctuation (default: False)
|
|
128
130
|
enable_word_time_offsets(bool): whether to enable word time offsets (default: True)
|
|
129
131
|
enable_word_confidence(bool): whether to enable word confidence (default: False)
|
|
132
|
+
enable_voice_activity_events(bool): whether to enable voice activity events (default: False)
|
|
130
133
|
model(SpeechModels): the model to use for recognition default: "latest_long"
|
|
131
134
|
location(str): the location to use for recognition default: "global"
|
|
132
135
|
sample_rate(int): the sample rate of the audio default: 16000
|
|
@@ -168,6 +171,7 @@ class STT(stt.STT):
|
|
|
168
171
|
spoken_punctuation=spoken_punctuation,
|
|
169
172
|
enable_word_time_offsets=enable_word_time_offsets,
|
|
170
173
|
enable_word_confidence=enable_word_confidence,
|
|
174
|
+
enable_voice_activity_events=enable_voice_activity_events,
|
|
171
175
|
model=model,
|
|
172
176
|
sample_rate=sample_rate,
|
|
173
177
|
min_confidence_threshold=min_confidence_threshold,
|
|
@@ -507,6 +511,7 @@ class SpeechStream(stt.SpeechStream):
|
|
|
507
511
|
),
|
|
508
512
|
streaming_features=cloud_speech.StreamingRecognitionFeatures(
|
|
509
513
|
interim_results=self._config.interim_results,
|
|
514
|
+
enable_voice_activity_events=self._config.enable_voice_activity_events,
|
|
510
515
|
),
|
|
511
516
|
)
|
|
512
517
|
|
|
File without changes
|
|
File without changes
|
{livekit_plugins_google-1.2.9 → livekit_plugins_google-1.2.11}/livekit/plugins/google/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{livekit_plugins_google-1.2.9 → livekit_plugins_google-1.2.11}/livekit/plugins/google/llm.py
RENAMED
|
File without changes
|
{livekit_plugins_google-1.2.9 → livekit_plugins_google-1.2.11}/livekit/plugins/google/log.py
RENAMED
|
File without changes
|
{livekit_plugins_google-1.2.9 → livekit_plugins_google-1.2.11}/livekit/plugins/google/models.py
RENAMED
|
File without changes
|
{livekit_plugins_google-1.2.9 → livekit_plugins_google-1.2.11}/livekit/plugins/google/py.typed
RENAMED
|
File without changes
|
{livekit_plugins_google-1.2.9 → livekit_plugins_google-1.2.11}/livekit/plugins/google/tools.py
RENAMED
|
File without changes
|
{livekit_plugins_google-1.2.9 → livekit_plugins_google-1.2.11}/livekit/plugins/google/tts.py
RENAMED
|
File without changes
|
{livekit_plugins_google-1.2.9 → livekit_plugins_google-1.2.11}/livekit/plugins/google/utils.py
RENAMED
|
File without changes
|