Skip to content

vidursatija/voiceai

Repository files navigation

VOICEAI

Voiceai is a library for controlling a machine using text and voice based interface. It uses

  1. The Stanford NER tagger for NER Tagging
  2. The Stanford POS tagger for POS Tagging
  3. The Facebook fastText for text classification
  4. The pint library for converting units
  5. The fixer.io api for converting currencies
  6. The duckduckgo wrapper for searching

Features

The following features are available with commands:

  1. Music control
  • Play Song/Artist/Album
  • Pause
  • Stop
  • Resume

Music library must be provided as json file.

Note : ML Algorithm for learning taste of music coming soon.

  1. Hardware Control
  • Adjust volume
  • Adjust brightness (needs root access)
  1. Conversion Control
  • Convert units and dimensions
  • Convert currencies (internet required)
  1. Web search Control
Coming Soon
  1. Greeting Control
  • Engage in a casual conversation with the bot
  1. Alarm Control
  • Set alarms and reminders
  1. Wolfram Control
  • Use Wolfram Alpha to get answers to mathematical answers

The following features are available using scripting:

  1. Training
  • Add new sentences for text classification (fastText)
  • Add new NER tags for better support (Stanford-NER)
  • Add new POS tags for better support (Stanford-POSTagger)

Installation

Place the voiceai directory in your project

git clone https://github.com/vidursatija/voiceai.git

Usage

import voiceai
VC = voiceai.VoiceAIControl()
print(VC.process_message("Play some Taylor Swift songs"))
print(VC.process_message("Increase brightness by 10%"))
print(VC.process_message("How many miles are there in a kilometer?"))