BLOG

Voice chat assistant with huggingface api

1/4/2024 [ ai ]

I wanted an ai voice chat bot that listens to audio input and reads out responses. so I wanted to try building this myself with some of the various api out there :

  • trying out hugginface api inference & custom endpoints,
  • transformer.js on client & server side

this is a general ai repo to try out different implementations

a webcomponent version of my scroll hook

21/3/2024 [ css, scroll, web components ]

a while ago i made some react hooks for scroll animations that leveraged css variables. now I wanted a platform agnostic version of this, that I built with vanilla web component. code on git

  • intersection observer attaches ‘onscroll’ event listener only when visible, so it scales well and can be used for many elements on the same page
  • ’scroll’ event calculates scroll variables and attaches to element as css variable