Giter Club home page Giter Club logo

vinisto's Introduction

Vinisto

Vinisto is the word for "butler" in Esperanto.

It's based on the following main directrives:

  • It has to be easy to expand
  • Non-strict, you may do as you please
  • Support many tts/stt systems
  • Multilanguage
  • KISS

But mostly, KISS is the most important one.

Installation

This requires pyaudio. I recommend installing pyaudio from your package manager It also requires pygame, wich requires the same treatment.

IE debian:

apt-get install python-pyaudio python-pygame

After that, pip install vinisto will do the magic.

Executing vinisto

Vinisto is ready to use as a library, wich is it's main goal, but you can try with some default plugins (time and repeat) by using the built-in "vinisto" command

usage: vinisto [-h]
               [--plugins [{vinisto.plugins.gpio,vinisto.plugins.ir,vinisto.plugins.repeat,vinisto.plugins.time}]]
               [--stt {vinisto.stt.google_stt}]
               [--tts {vinisto.tts.google_tts}] [--keyword KEYWORD]
               [--rate RATE] [--language LANGUAGE] [--key KEY]
               [--response_phrase RESPONSE_PHRASE]

Vinisto - Your personal butler

optional arguments:
  -h, --help            show this help message and exit
  --plugins [{vinisto.plugins.gpio,vinisto.plugins.ir,vinisto.plugins.repeat,vinisto.plugins.time}]
                        List of plugin modules
  --stt {vinisto.stt.google_stt}
                        List of stt modules
  --tts {vinisto.tts.google_tts}
                        List of tts modules
  --keyword KEYWORD     Keyword to wait for
  --rate RATE           Mic rate, defaults to raspberry pi USB (24000)
  --language LANGUAGE   Language to use in both TTS and STT
  --key KEY             Key to be passed to STT engines.
  --response_phrase RESPONSE_PHRASE
                        What to say when the keyword has been detected

wich WAS (now it handles arguments, but still...) basically

from vinisto.tts.google_tts import GoogleTTS
from vinisto.stt.google_stt import GoogleSTT
from vinisto.plugins.time import Time
from vinisto.plugins.repeat import Repeat

vinisto = Vinisto()
vinisto.stt = GoogleSTT('es-ES', {'rate': 24000},
                        "AIzaSyCuOvb2qd0mhQRkIbGAcgMUmFQaLIXtlmg")
vinisto.tts = GoogleTTS('es-ES')
vinisto.register_plugin(Time)
vinisto.register_plugin(Repeat)
while True:
    vinisto.execute_callbacks()

Expanding vinisto

Vinisto has a simple-yet-effective structure, a main package with packages for each of the principal functionalities:

  • tts
  • stt
  • plugins

Previous usage example is perfect to illustrate how to use them. And vinisto.tts.google_tts for the tts part, vinisto.stt.google_stt for the stt part and finally vinisto.plugins.time for the plugins part

Using vinisto

Vinisto waits for a keyword "vinisto" (that can be changed on main.py). After that, it'll receive one phrase, and will try to execute it.

vinisto's People

Contributors

xayon avatar

Watchers

 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.