News for hackers. Stuff that matters.
Re:Ollama releases Python and JavaScript Libraries by porridgeraisin on Thursday January 25, 2024 @12:12AM (#39126403)
Used ollama as part of a bash pipeline for a tiny throwaway app.

It blocks until there is something on the mic, then sends the wav to whisper.cpp, which then sends it to llama which picks out a structured "remind me" object from it, which gets saved to a text file.

Re:Ollama releases Python and JavaScript Libraries by killermouse0 on Thursday January 25, 2024 @02:31AM (#39127152)
Would you share that code? I'm not familiar with using the mic in Linux, but interested to do something similar!
Re:Ollama releases Python and JavaScript Libraries by nbbaier on Thursday January 25, 2024 @02:50AM (#39127244)
I'd also be really interested in seeing this
Re:Ollama releases Python and JavaScript Libraries by awayto on Thursday January 25, 2024 @03:46AM (#39127525)
I made something pretty similar over winter break so I could have something read books to me. ... Then it turned into a prompting mechanism of course! It uses Whisper, Ollama, and TTS from CoquiAI. It's written in shell and should hopefully be "Posix-compliant", but it does use zenity from Ubuntu; not sure how widely used zenity is.

https://github.com/jcmccormick/runtts