Skip to content

Commit

Permalink
renamed samples to examples
Browse files Browse the repository at this point in the history
  • Loading branch information
chadbailey59 committed Feb 8, 2024
1 parent 5c402ee commit 0ae8357
Show file tree
Hide file tree
Showing 36 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ pip install path_to_this_repo
Tou can run the simple sample like so:

```
python src/samples/theoretical-to-real/01-say-one-thing.py -u <url of your Daily meeting> -k <your Daily API Key>
python src/examples/theoretical-to-real/01-say-one-thing.py -u <url of your Daily meeting> -k <your Daily API Key>
```

Note that the sample uses Azure's TTS and LLM services. You'll need to set the following environment variables for the sample to work:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from dailyai.services.daily_transport_service import DailyTransportService
from dailyai.services.elevenlabs_ai_service import ElevenLabsTTSService

from samples.foundational.support.runner import configure
from examples.foundational.support.runner import configure

async def main(room_url):
async with aiohttp.ClientSession() as session:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from dailyai.services.elevenlabs_ai_service import ElevenLabsTTSService
from dailyai.services.deepgram_ai_services import DeepgramTTSService
from dailyai.services.open_ai_services import OpenAILLMService
from samples.foundational.support.runner import configure
from examples.foundational.support.runner import configure

async def main(room_url):
async with aiohttp.ClientSession() as session:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from dailyai.services.open_ai_services import OpenAIImageGenService
from dailyai.services.azure_ai_services import AzureImageGenServiceREST

from samples.foundational.support.runner import configure
from examples.foundational.support.runner import configure

local_joined = False
participant_joined = False
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from dailyai.queue_frame import EndStreamQueueFrame, LLMMessagesQueueFrame
from dailyai.services.elevenlabs_ai_service import ElevenLabsTTSService

from samples.foundational.support.runner import configure
from examples.foundational.support.runner import configure

async def main(room_url: str):
async with aiohttp.ClientSession() as session:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from dailyai.services.fal_ai_services import FalImageGenService
from dailyai.services.open_ai_services import OpenAIImageGenService

from samples.foundational.support.runner import configure
from examples.foundational.support.runner import configure

async def main(room_url):
async with aiohttp.ClientSession() as session:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from dailyai.services.daily_transport_service import DailyTransportService
from dailyai.services.azure_ai_services import AzureLLMService, AzureTTSService
from dailyai.queue_aggregators import LLMAssistantContextAggregator, LLMContextAggregator, LLMUserContextAggregator
from samples.foundational.support.runner import configure
from examples.foundational.support.runner import configure

async def main(room_url: str, token):
transport = DailyTransportService(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from dailyai.queue_aggregators import LLMAssistantContextAggregator, LLMUserContextAggregator
from dailyai.services.fal_ai_services import FalImageGenService

from samples.foundational.support.runner import configure
from examples.foundational.support.runner import configure

class ImageSyncAggregator(AIService):
def __init__(self, speaking_path: str, waiting_path: str):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from dailyai.services.azure_ai_services import AzureLLMService, AzureTTSService
from dailyai.services.elevenlabs_ai_service import ElevenLabsTTSService

from samples.foundational.support.runner import configure
from examples.foundational.support.runner import configure

async def main(room_url: str, token):
async with aiohttp.ClientSession() as session:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from dailyai.services.fal_ai_services import FalImageGenService
from dailyai.queue_frame import AudioQueueFrame, ImageQueueFrame

from samples.foundational.support.runner import configure
from examples.foundational.support.runner import configure

async def main(room_url:str):
async with aiohttp.ClientSession() as session:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
)
from dailyai.services.ai_services import AIService

from samples.foundational.support.runner import configure
from examples.foundational.support.runner import configure


sprites = {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from dailyai.queue_frame import QueueFrame, AudioQueueFrame, LLMResponseEndQueueFrame, LLMMessagesQueueFrame
from typing import AsyncGenerator

from samples.foundational.support.runner import configure
from examples.foundational.support.runner import configure

logging.basicConfig(format=f"%(levelno)s %(asctime)s %(message)s") # or whatever
logger = logging.getLogger("dailyai")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from dailyai.services.daily_transport_service import DailyTransportService
from dailyai.services.whisper_ai_services import WhisperSTTService

from samples.foundational.support.runner import configure
from examples.foundational.support.runner import configure

async def main(room_url: str):
transport = DailyTransportService(
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from dailyai.queue_frame import QueueFrame, AudioQueueFrame, LLMResponseEndQueueFrame, LLMMessagesQueueFrame
from typing import AsyncGenerator

from samples.foundational.support.runner import configure
from examples.foundational.support.runner import configure

sounds = {}
sound_files = [
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from flask import Flask, jsonify, request, redirect
from flask_cors import CORS
from samples.server.auth import get_meeting_token
from examples.server.auth import get_meeting_token

from dotenv import load_dotenv

Expand Down Expand Up @@ -92,7 +92,7 @@ def start_bot(bot_path, args=None):

@app.route("/spin-up-kitty", methods=["GET", "POST"])
def spin_up_kitty():
return start_bot("./src/samples/foundational/10-wake-word.py")
return start_bot("./src/examples/foundational/10-wake-word.py")


@app.route("/healthz")
Expand Down

0 comments on commit 0ae8357

Please sign in to comment.