You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -19,11 +20,11 @@ We're actively looking for community maintainers, so please reach out if interes
19
20
20
21
# ⭐️ Features
21
22
22
-
- 🗣 [Spin up a conversation with your system audio](https://docs.vocode.dev/python-quickstart)
23
-
- ➡️ 📞 [Set up a phone number that responds with a LLM-based agent](https://docs.vocode.dev/telephony#inbound-calls)
24
-
- 📞 ➡️ [Send out phone calls from your phone number managed by an LLM-based agent](https://docs.vocode.dev/telephony#outbound-calls)
25
-
- 🧑💻 [Dial into a Zoom call](https://github.com/vocodedev/vocode-python/blob/main/vocode/streaming/telephony/hosted/zoom_dial_in.py)
26
-
- 🤖 [Use an outbound call to a real phone number in a Langchain agent](https://docs.vocode.dev/langchain-agent)
23
+
- 🗣 [Spin up a conversation with your system audio](https://docs.vocode.dev/open-source/python-quickstart)
24
+
- ➡️ 📞 [Set up a phone number that responds with a LLM-based agent](https://docs.vocode.dev/open-source/telephony#inbound-calls)
25
+
- 📞 ➡️ [Send out phone calls from your phone number managed by an LLM-based agent](https://docs.vocode.dev/telephony/open-source/#outbound-calls)
26
+
- 🧑💻 [Dial into a Zoom call](https://github.com/vocodedev/vocode-core/blob/53b01dab0b59f71961ee83dbcaf3653a6935c2e3/vocode/streaming/telephony/conversation/zoom_dial_in.py)
27
+
- 🤖 [Use an outbound call to a real phone number in a Langchain agent](https://docs.vocode.dev/open-source/langchain-agent)
27
28
- Out of the box integrations with:
28
29
- Transcription services, including:
29
30
-[AssemblyAI](https://www.assemblyai.com/)
@@ -34,19 +35,16 @@ We're actively looking for community maintainers, so please reach out if interes
@@ -59,45 +57,63 @@ Check out our React SDK [here](https://github.com/vocodedev/vocode-react-sdk)!
59
57
60
58
We're an open source project and are extremely open to contributors adding new features, integrations, and documentation! Please don't hesitate to reach out and get started building with us.
61
59
62
-
For more information on contributing, see our [Contribution Guide](https://github.com/vocodedev/vocode-python/blob/main/contributing.md).
60
+
For more information on contributing, see our [Contribution Guide](https://github.com/vocodedev/vocode-core/blob/main/contributing.md).
63
61
64
-
And check out our [Roadmap](https://github.com/vocodedev/vocode-python/blob/main/roadmap.md).
62
+
And check out our [Roadmap](https://github.com/vocodedev/vocode-core/blob/main/roadmap.md).
65
63
66
64
We'd love to talk to you on [Discord](https://discord.gg/NaU4mMgcnC) about new ideas and contributing!
67
65
68
66
# 🚀 Quickstart
69
67
70
68
```bash
71
-
pip install 'vocode'
69
+
pip install vocode
72
70
```
73
71
74
72
```python
75
73
import asyncio
76
-
import logging
77
74
import signal
78
-
from vocode.streaming.streaming_conversation import StreamingConversation
75
+
76
+
from pydantic_settings import BaseSettings, SettingsConfigDict
77
+
79
78
from vocode.helpers import create_streaming_microphone_input_and_speaker_output
80
-
from vocode.streaming.transcriber import*
81
-
from vocode.streaming.agent import*
82
-
from vocode.streaming.synthesizer import*
83
-
from vocode.streaming.models.transcriber import*
84
-
from vocode.streaming.models.agent import*
85
-
from vocode.streaming.models.synthesizer import*
79
+
from vocode.logging import configure_pretty_logging
80
+
from vocode.streaming.agent.chat_gpt_agent import ChatGPTAgent
81
+
from vocode.streaming.models.agent import ChatGPTAgentConfig
86
82
from vocode.streaming.models.message import BaseMessage
87
-
import vocode
88
-
89
-
# these can also be set as environment variables
90
-
vocode.setenv(
91
-
OPENAI_API_KEY="<your OpenAI key>",
92
-
DEEPGRAM_API_KEY="<your Deepgram key>",
93
-
AZURE_SPEECH_KEY="<your Azure key>",
94
-
AZURE_SPEECH_REGION="<your Azure region>",
83
+
from vocode.streaming.models.synthesizer import AzureSynthesizerConfig
84
+
from vocode.streaming.models.transcriber import (
85
+
DeepgramTranscriberConfig,
86
+
PunctuationEndpointingConfig,
95
87
)
88
+
from vocode.streaming.streaming_conversation import StreamingConversation
89
+
from vocode.streaming.synthesizer.azure_synthesizer import AzureSynthesizer
90
+
from vocode.streaming.transcriber.deepgram_transcriber import DeepgramTranscriber
96
91
92
+
configure_pretty_logging()
97
93
98
-
logging.basicConfig()
99
-
logger = logging.getLogger(__name__)
100
-
logger.setLevel(logging.DEBUG)
94
+
95
+
classSettings(BaseSettings):
96
+
"""
97
+
Settings for the streaming conversation quickstart.
98
+
These parameters can be configured with environment variables.
0 commit comments