Skip to content

Commit

Permalink
ruff changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaibhav159 committed Jan 6, 2025
1 parent 8767006 commit 5138017
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions examples/foundational/29-livekit-audio-chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,27 @@

import aiohttp
from deepgram import LiveOptions
from dotenv import load_dotenv
from livekit import api
from loguru import logger

from pipecat.audio.vad.silero import SileroVADAnalyzer
from pipecat.frames.frames import (
TextFrame,
BotInterruptionFrame,
UserStartedSpeakingFrame,
TextFrame,
TranscriptionFrame,
UserStartedSpeakingFrame,
UserStoppedSpeakingFrame,
)
from pipecat.pipeline.pipeline import Pipeline
from pipecat.pipeline.runner import PipelineRunner
from pipecat.pipeline.task import PipelineTask, PipelineParams
from pipecat.pipeline.task import PipelineParams, PipelineTask
from pipecat.processors.aggregators.openai_llm_context import OpenAILLMContext
from pipecat.services.cartesia import CartesiaTTSService
from pipecat.services.deepgram import DeepgramSTTService
from pipecat.services.openai import OpenAILLMService
from pipecat.transports.services.livekit import LiveKitParams, LiveKitTransport

from livekit import api

from loguru import logger

from dotenv import load_dotenv

load_dotenv(override=True)

logger.remove(0)
Expand Down Expand Up @@ -99,7 +96,7 @@ async def configure_livekit():
user_token = generate_token(room_name, "User", api_key, api_secret)
logger.info(f"User token: {user_token}")

return (url, token, room_name)
return url, token, room_name


async def main():
Expand Down

0 comments on commit 5138017

Please sign in to comment.