Skip to content

Commit

Permalink
isort
Browse files Browse the repository at this point in the history
  • Loading branch information
ajar98 committed Jul 3, 2024
1 parent 8ee1721 commit 9c8bba3
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 12 deletions.
15 changes: 8 additions & 7 deletions apps/livekit/app.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
import asyncio
import os

from livekit.agents import JobContext, JobRequest, WorkerOptions, cli
from loguru import logger
from pydantic_settings import BaseSettings, SettingsConfigDict

from vocode.logging import configure_pretty_logging
from vocode.streaming.action.end_conversation import EndConversationVocodeActionConfig
from vocode.streaming.agent.chat_gpt_agent import ChatGPTAgent
from vocode.streaming.livekit.livekit_conversation import LiveKitConversation
from vocode.streaming.models.actions import (
PhraseBasedActionTrigger,
PhraseBasedActionTriggerConfig,
PhraseTrigger,
)
from vocode.streaming.models.agent import ChatGPTAgentConfig
from vocode.streaming.models.audio import AudioEncoding
from vocode.streaming.models.message import BaseMessage
Expand All @@ -17,13 +25,6 @@
from vocode.streaming.output_device.livekit_output_device import LiveKitOutputDevice
from vocode.streaming.synthesizer.eleven_labs_synthesizer import ElevenLabsSynthesizer
from vocode.streaming.transcriber.deepgram_transcriber import DeepgramTranscriber
from vocode.streaming.livekit.livekit_conversation import LiveKitConversation
from vocode.streaming.action.end_conversation import EndConversationVocodeActionConfig
from vocode.streaming.models.actions import (
PhraseBasedActionTrigger,
PhraseBasedActionTriggerConfig,
PhraseTrigger,
)


class Settings(BaseSettings):
Expand Down
5 changes: 3 additions & 2 deletions vocode/streaming/livekit/livekit_conversation.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import asyncio

from livekit import rtc
from loguru import logger

from vocode.streaming.livekit.livekit_events_manager import LiveKitEventsManager
from vocode.streaming.streaming_conversation import StreamingConversation
from vocode.streaming.output_device.livekit_output_device import LiveKitOutputDevice
from livekit import rtc
from vocode.streaming.streaming_conversation import StreamingConversation


class LiveKitConversation(StreamingConversation[LiveKitOutputDevice]):
Expand Down
6 changes: 4 additions & 2 deletions vocode/streaming/livekit/livekit_events_manager.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
from typing import TYPE_CHECKING, List
import uuid
from typing import TYPE_CHECKING, List

from livekit import rtc

from vocode.streaming.models.events import Event, EventType, Sender
from vocode.streaming.models.transcript import TranscriptEvent
from vocode.streaming.utils.events_manager import EventsManager
from livekit import rtc

if TYPE_CHECKING:
from vocode.streaming.livekit.livekit_conversation import LiveKitConversation
Expand Down
4 changes: 3 additions & 1 deletion vocode/streaming/output_device/livekit_output_device.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import asyncio

from livekit import rtc

from vocode.streaming.models.audio import AudioEncoding
from vocode.streaming.output_device.abstract_output_device import AbstractOutputDevice
from livekit import rtc
from vocode.streaming.output_device.audio_chunk import ChunkState

NUM_CHANNELS = 1
Expand Down

0 comments on commit 9c8bba3

Please sign in to comment.