- NextJS
- TypeScript
- Tailwind
- react-speech-recognition
- Open AI API with Vercel AI SDK
giving prompt with speech is more conveninient than typing
- First, create a .env.local file in the root directory
- Copy the content of env.example and fill the
OPENAI_API_KEY
andOPENAI_ORGANISATION
details - Run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
Open http://localhost:3000 with your browser to see the result.
- Click the record button and say something (Note: You have to give browser permission to use your micriphone)
- After speaking press the stop button
- Press ENTER key on your keyboard to send