Build an AI-Powered Voice Chat App using JavaScript and OpenAI

Поделиться
HTML-код
  • Опубликовано: 25 июн 2024
  • Yep. Only Javascript. No libraries of any kind. Just some good old-fashioned Web APIs and a fetch call to OpenAI. You can talk to it if you get bored!
    If you get lost, here's the solution: github.com/Adam-Thometz/voice... You'll need to supply your own API key.

Комментарии • 3

  • @NatSPlay
    @NatSPlay 12 дней назад

    I did this before aswell, it really makes you appreciate the intonation that chatgpt 4o has. Thats so difficult to achieve

    • @bitsnbotsai
      @bitsnbotsai  11 дней назад

      Yeah I've thought about redoing this one but with OpenAI's TTS API or ElevenLabs or something. That way I could visualize the speaking. Visualizing speaking done by the Web Speech API is not straightforward at all

    • @NatSPlay
      @NatSPlay 11 дней назад

      @@bitsnbotsai yes, i think reinventing the wheel is not a good idea here.
      Eleven labs is probably best to go as the whole idea here is not to solely just rely on openai. A good "opensource" clone of gpt4o would be really cool though