The all-in-one voice SDK
Project description
vocode Python SDK
pip install vocode
import asyncio
import signal
from vocode.conversation import Conversation
from vocode.helpers import create_microphone_input_and_speaker_output
from vocode.models.transcriber import DeepgramTranscriberConfig
from vocode.models.agent import LLMAgentConfig
from vocode.models.synthesizer import AzureSynthesizerConfig
if __name__ == "__main__":
microphone_input, speaker_output = create_microphone_input_and_speaker_output(use_first_available_device=True)
conversation = Conversation(
input_device=microphone_input,
output_device=speaker_output,
transcriber_config=DeepgramTranscriberConfig.from_input_device(microphone_input),
agent_config=LLMAgentConfig(prompt_preamble="The AI is having a pleasant conversation about life."),
synthesizer_config=AzureSynthesizerConfig.from_output_device(speaker_output)
)
signal.signal(signal.SIGINT, lambda _0, _1: conversation.deactivate())
asyncio.run(conversation.start())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
vocode-0.1.10.tar.gz
(7.2 kB
view details)
Built Distribution
vocode-0.1.10-py3-none-any.whl
(11.2 kB
view details)
File details
Details for the file vocode-0.1.10.tar.gz
.
File metadata
- Download URL: vocode-0.1.10.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.10.9 Darwin/21.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bf57f3cdac50a5a42a6047d701f9e2c1994ad485ce408f899d103d33b06d70d |
|
MD5 | 409021162fe1e582dc9243ee589b6d3e |
|
BLAKE2b-256 | 1fb6ddcc634ef2bdaee783d47c40a6b1184f59a63f93b1c78bf131d3539cfe71 |
File details
Details for the file vocode-0.1.10-py3-none-any.whl
.
File metadata
- Download URL: vocode-0.1.10-py3-none-any.whl
- Upload date:
- Size: 11.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.10.9 Darwin/21.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e65ad8fcefb3336fb29995fec12ee4350dd26712cc4b8c65838d505a3cfbdc8 |
|
MD5 | f296440a2b011a3d30fe1fc1ba5f744a |
|
BLAKE2b-256 | 46bf72a93e3e98c92dc86aed2ebf37ca1a5aa46af4422ad9fcb57336bf1a4e70 |