Skip to content

Talk = GPT-2 + Whisper + WASM #154

@ggerganov

Description

@ggerganov

I just had an awesome idea:

Make a web-page that:

  • Listens when someone speaks
  • Transcribes the words using WASM Whisper
  • Generates a new sentence using WASM GPT-2
  • Uses Web Speech API to synthesise the speech and play it on the speakers.

All of this running locally in the browser - no server required

I have all the ingredients and I think the performance is just enough. I just have to put it together.
The total data that the page will have to load on startup (probably using Fetch API) is:

  • 74 MB for the Whisper tiny.en model
  • 240 MB for the GPT-2 small model
  • Web Speech API is built-in in modern browsers

I think it will be very fun because you could talk to the web-page or even add extra devices that talk to each other only through the mic and the speakers. For example, you simply open the page on your phone and tablet and put them next to each other - listen to them talk about something 😄

Any ideas to make this even more fun?

Metadata

Metadata

Assignees

No one assigned

    Labels

    ideasInteresting ideas for experimentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions