This repository contains a demo similar to the drawing video Google showed during the release of Gemini, using Web APIs.
First, make sure you generate an API key and use it in generative.service.ts
.
After that:
$ git clone git@github.com:mgechev/angular-gemini-drawing-demo
$ cd angular-gemini-drawing-demo
$ npm i
$ ng serve
Open Chrome and navigate to http://localhost:4200.
The demo uses the webkitSpeechRecognition
API, which currently has limited browser support.
This demo uses:
- Angular and the Gemini JavaScript API
- Web Speech API (
SpeechRecognition
andSpeechSynthesis
) - HTML5 canvas API
MIT