inbound calls

This commit is contained in:
Ajay Raj 2023-03-04 13:59:33 -08:00
commit 2893ba9780
8 changed files with 58 additions and 20 deletions

View file

@ -20,12 +20,7 @@ if __name__ == "__main__":
input_device=microphone_input,
output_device=speaker_output,
transcriber_config=DeepgramTranscriberConfig.from_input_device(microphone_input),
agent_config=WebSocketUserImplementedAgentConfig(
initial_message="Hello!",
respond=WebSocketUserImplementedAgentConfig.RouteConfig(
url="ws://localhost:3001/respond"
)
),
agent_config=EchoAgentConfig(initial_message="Hello!"),
synthesizer_config=AzureSynthesizerConfig.from_output_device(speaker_output)
)
signal.signal(signal.SIGINT, lambda _0, _1: conversation.deactivate())