7 ms·
Launch HN: Vocode (YC W23) – Library for voice conversation with LLMs
Hey everyone! Kian and Ajay here from Vocode–an open source library for building LLM applications you can talk to. Vocode makes it easy to take any text-based LLM and make it voice-based. Our repo is at https://github.com/vocodedev/vocode-python https://github.com/vocodedev/vocode-python and our docs are at https://docs.vocode.dev https://docs.vocode.dev.
Building realtime voice apps with LLMs is powerful but hard. You have to orchestrate the speech recognition, LLM, and speech synthesis in real-time (all async)–while handling the complexity of conversation (like understanding when someone is finished speaking or handling interruptions).
Our library is easy to get up and running–you can set up a conversation in <15 lines of code. Check out our Gen Z GPT hotline demo: https://replit.com/@vocode/Gen-Z-Phone https://replit.com/@vocode/Gen-Z-Phone (try it out at +1-650-729-9536).
It all started with our PrankGPT project that we built for fun (quick demo at https://www.loom.com/share/0d0d68f1a62f409eb5ae24521293d2dc https://www.loom.com/share/0d0d68f1a62f409eb5ae24521293d2dc). We realized how powerful voice + LLMs are but that it was hard to build.
Once we got everything working, it was really cool and useful. Talking to LLMs is better than all the voice AI experiences we’ve had before. And, we imagined a host of cool applications that people can build on top of that.
So, we decided to build a developer tool to make it easy. Our library is open source and gives you everything you need in a single place.
We give you a bunch of integrations out-of-the-box to speech recognition/synthesis providers and let you swap them out easily. We have platform support across web and telephony (via Twilio), with mobile coming soon. We also provide abstractions for streaming conversation (this is good for realtime apps like phone calls) and for command-based/turn-based applications (like voice-based chess). And, we provide customizability around how the conversation is done—things like how to know when someone is finished speaking, changing emotion, sending filler audio if there are delays, etc.
In terms of “how do you make money” – we have a hosted version that we’re going to charge for (though right now you can get it for free! https://app.vocode.dev https://app.vocode.dev) and we're also going to build enterprise products in the future.
We’d love for you to try it out and give us some feedback! And, if you have any demos you'd like to see – let us know and we’ll take a crack at building them. We’re curious about your experiences using or building voice AI, what features or use cases you’d love to see, and any other ideas you have to share!
- marcodiego 3y agoCan it be run fully locally?
- KianHooshmand 3y agoyes! You can run the local version here in your bash https://docs.vocode.dev/python-quickstart#self-hosted https://docs.vocode.dev/python-quickstart#self-hosted
- arlcode 3y agoI think this used to mean can it be run offline and right now (usually) whenever there is an LLM involved the answer is soundly no
- KianHooshmand 3y agoAh! Right now our default is set to use OpenAI... but you can actually use local LLMs by creating a custom agent. We're going to add a full stack of local STT/TTS/LLM... just haven't had time for it yet! If anyone wants to help with it we're totally open for contributions :)
- whitemary 3y agoSounds great. FYI The site does not work well on Firefox iOS.
- KianHooshmand 3y agoAh! Have not tried this but will look into it – thank you :) Our docs are hosted on Mintlify
- moritonal 3y agoWhen I had time I was looking for an option to replace the Alexa in my house with an LLM+Whisper. When I have time I'll try to setup an extension to Home Assistant that's capable of interpreting voice and translating that into HA actions.