0.5s VAD is interesting

This commit is contained in:
Chad Bailey
2024-02-22 16:14:36 -06:00
parent 18c2b37358
commit 5100a7599b
3 changed files with 3 additions and 3 deletions

View File

@@ -94,7 +94,7 @@ class BaseTransportService():
self._speaker_sample_rate = kwargs.get("speaker_sample_rate") or 16000
self._fps = kwargs.get("fps") or 8
self._vad_start_s = kwargs.get("vad_start_s") or 0.2
self._vad_stop_s = kwargs.get("vad_stop_s") or 1.2
self._vad_stop_s = kwargs.get("vad_stop_s") or 0.5
self._context = kwargs.get("context") or []
self._vad_samples = 1536

View File

@@ -10,7 +10,7 @@ from dailyai.services.ai_services import LLMService, ImageGenService
class OpenAILLMService(LLMService):
def __init__(self, *, api_key, model="gpt-4", context):
def __init__(self, *, api_key, model="gpt-4-turbo-preview", context):
super().__init__(context)
self._model = model
self._client = AsyncOpenAI(api_key=api_key)

View File

@@ -43,7 +43,7 @@ async def main(room_url: str, token):
# context=context)
llm = OpenAILLMService(
context=context, api_key=os.getenv("OPENAI_CHATGPT_API_KEY"))
llm = GroqLLMService(api_key=os.getenv("GROQ_API_KEY"), context=context)
# llm = GroqLLMService(api_key=os.getenv("GROQ_API_KEY"), context=context)
tts = AzureTTSService(
api_key=os.getenv("AZURE_SPEECH_API_KEY"),
region=os.getenv("AZURE_SPEECH_REGION"))