4 karma · joined Mar 6, 2026 (8mo ago) · 10 submissions
https://github.com/bytetrie
comment 1w ago · link · parent
It took audio input, fed it into a wasm opus encoder, output audio in "segments" of audio, and uploaded via typical HTTP. No WebSockets or WebRTC or QUIC (I don't even think I used HTTP2). The only reason it wasn't just a full encoded recording was because I wanted to make it continuous and streamed. I basically learned this via HLS, but also didn't understand HLS nor was it easy to encode and stream data (in my mental model) from the browser to the server.
On the server and streaming to the client, it just collected the segments and told clients when they were ready, via polling, similar to HLS. The client would download, wasm decode, and add the audio to a buffer. The thing is that because of the nature of the project it didn't really have much to do with one continuous stream, but it did take sequences of the segments from multiple user's uploads and combine them for the different audio channels.
Most of the argument I think for what I'm seeing for voice AI is the code complexity, server complexity, interruptions, latency, drop outs, that kind of stuff, and I guess that's all good for companies with huge numbers of users and wanting to follow the work done at frontier labs. Also everyone wants the technology they sell to be the ones companies use.
Just weighing in that there could be cases where you record some audio, encode it, upload it, transcribe it, feed to an LLM, TTS the response and download it. You can stream it in segments or not to reduce latency. You can interrupt it with UI/DSP/NN and detect the end of a message similarly. Maybe for most smaller companies that would be enough? It feels like reading these different takes is that they create problems while solving problems, and maybe make the adoption of voice AI harder (and therefore slower) than it could be. I'm not any less naive than I was before though, but often its people like me tasked to implement this stuff.
2.
Show HN: A minimal context engine with streaming API(github.com ↗)
2 points · by tonelord · 7mo ago · discuss
comment 8mo ago · link · parent
This project is a demonstration of how to communicate with and control an app from another app. Features the use of a novel OpenCV-based tangible user interface (TUI), mDNS-SD for automatic device discovery and connection over local network, websockets for inter-device messaging and rust-based android development via the NDK.
I wanted to encapsulate a few things I've learned over the years and then recently for this project. So hopefully this inspires someone stumbling across this project.
Beyond that, there are lots of very capable, cheap, usable old Android devices. Building with electronics and Raspberry Pi is cool but maybe we are overlooking what is capable with these phones. There are many directions I want to take this thought.
4.
How to use mutliple Android devices together to make music and more(codeberg.org ↗)
2 points · by tonelord · 8mo ago · 1 comment
comment 8mo ago · link · parent
https://ohmstone.codeberg.page/audiogram/
https://codeberg.org/ohmstone/audiogram
Other projects: https://codeberg.org/ohmstone
comment 8mo ago · link · parent
I have been using online courses and youtube forever and they all have converged on a similar format. Basically, adapt a textbook to slides and add voiceover. Sometimes they'll be animated. Not for everyone but I like it for passive learning.
Being a web developer I always thought video was a strange way to deliver this information - you can't even copy the text! Videos are also hard to make and heavy on bandwidth. So after iterating on different approaches to this over the last few years, I finally started on a new iteration called useful.
Currently on rev1, so early days: https://github.com/ohmstone/useful/tree/rev-1
There are a few more things I want to add to it but I want to get back to what I was doing (the bass guitar stuff). So I will make few of these website-as-video courses based on my projects to try and prove the concept.
Some of the nerdier features useful has:
- Uses state of the art CPU-based TTS with voice cloning, realistic enough to not be distracting
- Very simple markup language to create the visuals
- Extensible slide content with simple plugin system
- Full website export with complete SEO/social metadata
- Export is a PWA, so it caches nicely and can work offline
- Self-hostable
- Export is optimized for low bandwidth, so it loads way faster than a video and uses <1/10th of the data when served with brotli
- Minimal dependencies
Beyond my own use-case I figured it might be useful for others creating courses. One stretch-goal would be for people to turn what they are learning via LLMs into low-bandwidth courses like this so we don't have people burning energy asking the same questions and watching the same 4K videos.
9.
Show HN: Turn an audio recording into a LinkedIn video – no signup, no server(ohmstone.github.io ↗)
1 points · by tonelord · 8mo ago · 1 comment