Giter VIP home page Giter VIP logo

livewhisper's Introduction

LiveWhisper - Whisper based transcription

livewhisper.py outputs psuedo-live sentence-by-sentence dictation to terminal. Using OpenAI's Whisper model, and sounddevice library to listen to microphone. Audio from mic is stored if it hits a volume & frequency threshold, then when silence is detected, it saves the audio to a temp file and sends it to Whisper.

Dependencies: Whisper, numpy, scipy, sounddevice

LiveWhisper can somewhat work as an alternative to SpeechRecognition. Although that now has it's own Whisper support, so it's up to you. ;)


Whisper Assistant

I've also included assistant.py, which using livewhisper as a base, is my attempt at making a simple voice-command assistant like Siri, Alexa, or Jarvis.

Same dependencies as livewhisper, as well as requests, pyttsx3, wikipedia, bs4. Also needs: espeak and python3-espeak.

The voice assistant can be activated by saying it's name, default "computer", "hey computer" or "okay computer" also work. You can wait for the computer to then respond, or immediately request an action/question without pausing.

Available features: Weather, date & time, tell jokes, & do wikipedia searches. It can also handle some other requests, like basic math or real simple trivia. Tho that relies on Google's instant-answer snippets & sometimes doesn't work.

Control media-players using: play, pause, next, previous, stop, what's playing? Media controls need some form of noise/echo cancelling enabled to work right. See this page for more information on how to enable that in Linux PulseAudio.

You can close the assistant via ctrl+c, or by saying it's name & "terminate".


If you like my projects and want to help me keep making more, please consider donating on my Ko-fi page! Thanks!

ko-fi

livewhisper's People

Contributors

nikorasu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.