diff --git a/examples/foundational/43a-heygen-video-service.py b/examples/foundational/43a-heygen-video-service.py index d4c409063..1add6aeea 100644 --- a/examples/foundational/43a-heygen-video-service.py +++ b/examples/foundational/43a-heygen-video-service.py @@ -25,7 +25,7 @@ from pipecat.runner.utils import create_transport from pipecat.services.cartesia.tts import CartesiaTTSService from pipecat.services.deepgram.stt import DeepgramSTTService from pipecat.services.google.llm import GoogleLLMService -from pipecat.services.heygen.api import AvatarQuality, NewSessionRequest +from pipecat.services.heygen.client import ServiceType from pipecat.services.heygen.video import HeyGenVideoService from pipecat.transports.base_transport import BaseTransport, TransportParams from pipecat.transports.daily.transport import DailyParams, DailyTransport @@ -73,11 +73,9 @@ async def run_bot(transport: BaseTransport, runner_args: RunnerArguments): llm = GoogleLLMService(api_key=os.getenv("GOOGLE_API_KEY")) heyGen = HeyGenVideoService( - api_key=os.getenv("HEYGEN_API_KEY"), + api_key=os.getenv("HEYGEN_LIVE_AVATAR_API_KEY"), + service_type=ServiceType.LIVE_AVATAR, session=session, - session_request=NewSessionRequest( - avatar_id="Shawn_Therapist_public", version="v2", quality=AvatarQuality.high - ), ) messages = [