From 8b9abf61218df3b0f7eb1aea542f9ac26fca226e Mon Sep 17 00:00:00 2001 From: Ajay Raj Date: Wed, 29 Mar 2023 11:01:19 -0700 Subject: [PATCH] Update README.md --- README.md | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 36ea3eb..1383e76 100644 --- a/README.md +++ b/README.md @@ -60,6 +60,8 @@ from vocode.streaming.models.transcriber import ( from vocode.streaming.models.agent import ChatGPTAgentConfig from vocode.streaming.models.message import BaseMessage from vocode.streaming.models.synthesizer import AzureSynthesizerConfig +from vocode.streaming.synthesizer.azure_synthesizer import AzureSynthesizer +from vocode.streaming.transcriber.deepgram_transcriber import DeepgramTranscriber # these can also be set as environment variables vocode.setenv( @@ -77,14 +79,20 @@ async def main(): conversation = StreamingConversation( output_device=speaker_output, - transcriber_config=DeepgramTranscriberConfig.from_input_device( - microphone_input, endpointing_config=PunctuationEndpointingConfig() + transcriber=DeepgramTranscriber( + DeepgramTranscriberConfig.from_input_device( + microphone_input, endpointing_config=PunctuationEndpointingConfig() + ) ), - agent_config=ChatGPTAgentConfig( - initial_message=BaseMessage(text="Hello!"), - prompt_preamble="Have a pleasant conversation about life", + agent=ChatGPTAgent( + ChatGPTAgentConfig( + initial_message=BaseMessage(text="Hello!"), + prompt_preamble="Have a pleasant conversation about life", + ), + ), + synthesizer_config=AzureSynthesizer( + AzureSynthesizerConfig.from_output_device(speaker_output) ), - synthesizer_config=AzureSynthesizerConfig.from_output_device(speaker_output), ) await conversation.start() print("Conversation started, press Ctrl+C to end")