Skip to content

typesense/showcase-podcasts-voice-search

Repository files navigation

🎧 Search podcasts with voice, powered by Typesense

This is a demo that showcase Typesense's Voice Query feature.

Tech Stack

The dataset contains metadata of 96K podcasts (after being filtered) and is from Listen Notes.

This demo uses extendable-media-recorder to record WAV audio and hark for silence detection.

Project Structure

├── scripts/
│   ├── data/
│   │   └── podcasts-1000-samples.jsonl
│   └── indexTypesense.ts # script that index data from podcasts-1000-samples.jsonl into typesense server
└── src/
    ├── components/
    │   └── UI components...
    ├── hooks/
    │   └── useSearch.tsx
    ├── lib/
    │   └── typesense.ts # typesense client config
    └── App.tsx # podcasts search

Development

To run this project locally, make sure you have docker and nodejs, install dependencies and start the dev server:

Start typesense server

npm run start:typesense # or: docker compose up

Index data into typesense

npm run index:typesense

Start the dev server

npm run dev

Open http://localhost:5173 to see the app ✌️

Environment

See .env.example for environment variables.