~/talk

Building a Voice-Enabled AI Assistant With Javascript

Talkat JSNation 2023 · on Monday, 2023-06-05· at 21:20· [javascript, typescript, web-platform]

Builds a Jarvis-style assistant using Web APIs and langchain, with live coding showing actual code: Chrome-only speech recognition API (webkit prefix), speech synthesis, fetch to OpenAI GPT‑3.5‑turbo, and a simple TypeScript/Vite setup. Shows the loop that restarts the mic after speaking, explains the need for a user click, uses OS voices only, requires an API key, and keeps conversation state in an array. Result is a working demo in under fifty lines that runs in the browser and speaks back.

AI-written summary · about

  1. 0:00Introduction
  2. 1:57Planning with browser APIs
  3. 4:02Speech-to-text with Web Speech API
  4. 5:48Connecting to GPT-3.5 Turbo
  5. 10:32Text-to-speech with Speech Synthesis API
  6. 13:43Continuous conversation loop
  7. 16:09Final code and limitations
  8. 18:58Closing thoughts
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.