A little example cleanup

This commit is contained in:
Moishe Lettvin
2024-02-08 08:24:25 -05:00
parent ee1ce8f288
commit 9620080cc5
5 changed files with 12 additions and 8 deletions

View File

@@ -16,10 +16,11 @@ async def main(room_url: str, token):
token,
"Respond bot",
duration_minutes=5,
start_transcription=True,
mic_enabled=True,
mic_sample_rate=16000,
camera_enabled = False
)
transport._mic_enabled = True
transport._mic_sample_rate = 16000
transport._camera_enabled = False
llm = AzureLLMService(api_key=os.getenv("AZURE_CHATGPT_API_KEY"), endpoint=os.getenv("AZURE_CHATGPT_ENDPOINT"), model=os.getenv("AZURE_CHATGPT_MODEL"))
tts = AzureTTSService(api_key=os.getenv("AZURE_SPEECH_API_KEY"), region=os.getenv("AZURE_SPEECH_REGION"))

View File

@@ -17,11 +17,11 @@ async def main(room_url: str, token):
token,
"Respond bot",
duration_minutes=5,
start_transcription=True,
mic_enabled=True,
mic_sample_rate=16000,
camera_enabled=False,
)
transport._mic_enabled = True
transport._mic_sample_rate = 16000
transport._camera_enabled = False
transport._start_transcription = True
llm = AzureLLMService(api_key=os.getenv("AZURE_CHATGPT_API_KEY"), endpoint=os.getenv("AZURE_CHATGPT_ENDPOINT"), model=os.getenv("AZURE_CHATGPT_MODEL"))
tts = AzureTTSService(api_key=os.getenv("AZURE_SPEECH_API_KEY"), region=os.getenv("AZURE_SPEECH_REGION"))

View File

@@ -113,7 +113,8 @@ async def main(room_url: str, token):
room_url,
token,
"Santa Cat",
duration_minutes=3
duration_minutes=3,
start_transcription=True
)
transport._mic_enabled = True
transport._mic_sample_rate = 16000

View File

@@ -13,6 +13,7 @@ async def main(room_url: str):
room_url,
None,
"Transcription bot",
start_transcription=True
)
transport._mic_enabled = False
transport._camera_enabled = False

View File

@@ -17,6 +17,7 @@ async def main(room_url: str):
camera_enabled=False,
speaker_enabled=True,
duration_minutes=meeting_duration_minutes,
start_transcription = True
)
stt = WhisperSTTService()
transcription_output_queue = asyncio.Queue()