Merge pull request #3772 from simliai/main
Update SimliClient to latest
This commit is contained in:
@@ -111,7 +111,7 @@ sambanova = []
|
|||||||
sarvam = [ "sarvamai==0.1.21", "pipecat-ai[websockets-base]" ]
|
sarvam = [ "sarvamai==0.1.21", "pipecat-ai[websockets-base]" ]
|
||||||
sentry = [ "sentry-sdk>=2.28.0,<3" ]
|
sentry = [ "sentry-sdk>=2.28.0,<3" ]
|
||||||
silero = [ "onnxruntime~=1.23.2" ]
|
silero = [ "onnxruntime~=1.23.2" ]
|
||||||
simli = [ "simli-ai~=1.0.3"]
|
simli = [ "simli-ai~=2.0.1"]
|
||||||
soniox = [ "pipecat-ai[websockets-base]" ]
|
soniox = [ "pipecat-ai[websockets-base]" ]
|
||||||
soundfile = [ "soundfile~=0.13.1" ]
|
soundfile = [ "soundfile~=0.13.1" ]
|
||||||
speechmatics = [ "speechmatics-voice[smart]~=0.2.8" ]
|
speechmatics = [ "speechmatics-voice[smart]~=0.2.8" ]
|
||||||
|
|||||||
@@ -131,7 +131,6 @@ class SimliVideoService(FrameProcessor):
|
|||||||
# Build SimliConfig from new parameters
|
# Build SimliConfig from new parameters
|
||||||
# Only pass optional parameters if explicitly provided to use SimliConfig defaults
|
# Only pass optional parameters if explicitly provided to use SimliConfig defaults
|
||||||
config_kwargs = {
|
config_kwargs = {
|
||||||
"apiKey": api_key,
|
|
||||||
"faceId": face_id,
|
"faceId": face_id,
|
||||||
}
|
}
|
||||||
if params.max_session_length is not None:
|
if params.max_session_length is not None:
|
||||||
@@ -153,10 +152,10 @@ class SimliVideoService(FrameProcessor):
|
|||||||
config.maxIdleTime += 5
|
config.maxIdleTime += 5
|
||||||
config.maxSessionLength += 5
|
config.maxSessionLength += 5
|
||||||
self._simli_client = SimliClient(
|
self._simli_client = SimliClient(
|
||||||
|
api_key=api_key,
|
||||||
config=config,
|
config=config,
|
||||||
latencyInterval=latency_interval,
|
|
||||||
simliURL=simli_url,
|
simliURL=simli_url,
|
||||||
enable_logging=params.enable_logging or False,
|
enableSFU=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
self._pipecat_resampler: AudioResampler = None
|
self._pipecat_resampler: AudioResampler = None
|
||||||
@@ -173,7 +172,7 @@ class SimliVideoService(FrameProcessor):
|
|||||||
"""Start the connection to Simli service and begin processing tasks."""
|
"""Start the connection to Simli service and begin processing tasks."""
|
||||||
try:
|
try:
|
||||||
if not self._initialized:
|
if not self._initialized:
|
||||||
await self._simli_client.Initialize()
|
await self._simli_client.start()
|
||||||
self._initialized = True
|
self._initialized = True
|
||||||
|
|
||||||
# Create task to consume and process audio and video
|
# Create task to consume and process audio and video
|
||||||
|
|||||||
Reference in New Issue
Block a user