Earlier quoted context omitted.
uv is the way. https://docs.astral.sh/uv/ Sadly it appears that people in the LLM space aren't really all that good at packaging their software (maybe, on purpose).
> Sadly it appears that people in the LLM space This seems to be somewhat of a Python side-effect, same goes for almost any Python projects thrown together by people who hasn't spent 10% of their life fighting dependency management in Python. But agree with uv being the best way. I'm not a "real" Python programmer, similar boat to parent that I just end up running a bunch of Python projects for various ML things, and…
Show HN: Real-time AI Voice Chat at ~500ms Latency
201–210 of 238 posts
Re: Show HN: Real-time AI Voice Chat at ~500ms Latency
#202Earlier quoted context omitted.
Virtual environments with venv don't answer the python version problem unless you throw another tool into the mix.
Hmm? My venvs do include the Python version (via symlink to /bin). Don't yours?
Re: Show HN: Real-time AI Voice Chat at ~500ms Latency
#203Earlier quoted context omitted.
For security maybe you should do all of this inside a sandbox.
I'm assuming most people run untrusted stuff like 3rd party libraries in some sort of isolated environment, unless they're begging to be hacked. Some basic security understanding has to be assumed, otherwise we have a long list to go through :)
Therefore, maybe it is a good idea to include those instructions.
Re: Show HN: Real-time AI Voice Chat at ~500ms Latency
#204Earlier quoted context omitted.
Let me introduce you to the beautiful world of virtual environments. They save you the headache of getting a full installation to run, especially when using Windows. I prefer miniconda, but venv also does the job.
I am also using conda and specifically mamba which has a really quick dependency solver. However, sometimes repos require system level packages as well. Tried to run TRELLIS recently and gave up after 2h of tinkering around to get it to work in Windows. Also, whenever I try to run some new repo locally, creating a new virtual environment takes a ton of disk space due to CUDA and PyTorch libraries. It adds up quickly…
Re: Show HN: Real-time AI Voice Chat at ~500ms Latency
#205Every time I see these things, they look cool as hell, I get excited, then I try to get them working on my gaming PC (that has the GPU), I spend 1-2h fighting with python and give up. Today's issue is that my python version is 3.12 instead of =3.9. Installing python 3.11 from the official website does nothing, I give up. It's a shame that the amazing work done by people like the OP gets underused because of this mess…
Glad for this thread though since it looks like there's some tricks I haven't tried, plus since it seems a lot of other people have similar issues I feel less dumb.
Re: Show HN: Real-time AI Voice Chat at ~500ms Latency
#206Every time I see these things, they look cool as hell, I get excited, then I try to get them working on my gaming PC (that has the GPU), I spend 1-2h fighting with python and give up. Today's issue is that my python version is 3.12 instead of =3.9. Installing python 3.11 from the official website does nothing, I give up. It's a shame that the amazing work done by people like the OP gets underused because of this mess…
Re: Show HN: Real-time AI Voice Chat at ~500ms Latency
#207This is great. Poking into the source, I find it interesting that the author implemented a custom turn detection strategy, instead of using Silero VAD (which is standard in the voice agents space). I’m very curious why they did it this way and what benefits they observed. For folks that are curious about the state of the voice agents space, Daily (the WebRTC company) has a great guide [1], as well as an open-source f…
It's in fact using Silero via RealtimeSTT. RealtimeSTT tells when silence starts. Then a binary sentence classification model is used on the realtime transcription text which infers blazingly fast (10ms) and returns a probability between 0 and 1 indicating if the current spoken sentence is considered "complete". The turn detection component takes this information to calculate the silence waiting time until "turn is o…
Code: https://github.com/livekit/agents/tree/main/livekit-plugins/... Blog: https://blog.livekit.io/using-a-transformer-to-improve-end-o...
Re: Show HN: Real-time AI Voice Chat at ~500ms Latency
#208Every time I see these things, they look cool as hell, I get excited, then I try to get them working on my gaming PC (that has the GPU), I spend 1-2h fighting with python and give up. Today's issue is that my python version is 3.12 instead of =3.9. Installing python 3.11 from the official website does nothing, I give up. It's a shame that the amazing work done by people like the OP gets underused because of this mess…
Let me introduce you to the beautiful world of virtual environments. They save you the headache of getting a full installation to run, especially when using Windows. I prefer miniconda, but venv also does the job.
I finally added two scripts to my path for `python` and `pip` that automatically create and activate a virtual env at `./.venv` if there isn't one active already. It would be nice if something like that was just built into pip so there could be a single command to run like Ruby has now with Bundler.
Re: Show HN: Real-time AI Voice Chat at ~500ms Latency
#209Earlier quoted context omitted.
Let me introduce you to the beautiful world of virtual environments. They save you the headache of getting a full installation to run, especially when using Windows. I prefer miniconda, but venv also does the job.
Virtual environments with venv don't answer the python version problem unless you throw another tool into the mix.
Re: Show HN: Real-time AI Voice Chat at ~500ms Latency
#210Earlier quoted context omitted.
> Sadly it appears that people in the LLM space This seems to be somewhat of a Python side-effect, same goes for almost any Python projects thrown together by people who hasn't spent 10% of their life fighting dependency management in Python. But agree with uv being the best way. I'm not a "real" Python programmer, similar boat to parent that I just end up running a bunch of Python projects for various ML things, and…
does uv play well with cuda? I use nix-shell when possible to specify my entire dev environment (including gnumake, gcc, down to utils like jq) it often doesn't play well with venv and cuda, which I get. I've succeeded in locking a cuda env with a nix flake exactly once, then it broke, and I gave up and went back to venv. over the years I've used pip, pyenv, pip env, poetry, conda, mamba, younameit. there are always…
AFAIK, it works as well with cuda as any other similar tool. I personally haven't had any issues, most recently last week I was working on a transformer model for categorizing video files and it's all managed with uv and pytorch installed into the venv as normal.