3 ms·
This is quite cool. Two questions: - why do you need nextjs frontend for what looks like a headless use case? - how much would be the OpenAI bill if there is 1
by justanotheratom 1y ago
This is quite cool. Two questions:
- why do you need nextjs frontend for what looks like a headless use case?
- how much would be the OpenAI bill if there is 15 minutes of usage per day?
- JKCalhoun 1y agoAnd I am wondering, why use an ESP32 if you don't need the WiFi? (And, please, no WiFi in a toy!)
- akadeb 1y agoCurrently we connect to a Wifi network to reach the Deno edge server. Some popular toys doing it: Yoto, Toniebox
- irq-1 1y ago> This equates to approximately $0.06 per minute of audio input and $0.24 per minute of audio output. https://openai.com/index/introducing-the-realtime-api/ https://openai.com/index/introducing-the-realtime-api/ About the nextjs site, I was thinking maybe its difficult to have supabase hold long connections, or route the response? I'm curious too.
- akadeb 1y agoThe long connections are ultimately handled by Deno Edge so the site isn't used there. The NextJS frontend (which also could be an iOS/Android app) helps provide an interface to select character, create AI characters, set ESP32 volume, and view conversation history.
- akadeb 1y agothank you! The nextjs frontend is to set things like device volume, selecting which character you are interacting with, viewing conversation history etc. I just tried it and for a 15 minute chat, it's roughly 20c. Roughly 570 input tokens