Giter Site home page Giter Site logo

voice-ready's Introduction

Voice-Ready

A library that will allow the voice interaction with app user by simply scanning all the text on the screen and wait the user to pronounce any word presented in the UI then trigger the onClick call of it. Moreover you can add your own custom voice actions to your app plus you can trigger an action of any view by simply set a tag string (plase check the example).

Usage

  1. Download the aar file provided in the master branch and imported in your android studio (File -> New Module -> import Jar/AAR package) or checkout from the project from the dev branch.

2) In your App add a module depedency to the previous imported module.
3) Create a custom application and refer to it in your manifest (check this link ).
  1. In your application class init the library by calling

VoiceReady.init(this,VoiceReady.VOICE_TRIGGER_ALL, R.drawable.icon_mic);
  1. if you want to add your custom actions you can add them by calling
    VoiceReady.addCustomAction("change background", new VoiceAction() { @Override public void doAction() { Random rnd = new Random(); int color = Color.argb(255, rnd.nextInt(256), rnd.nextInt(256), rnd.nextInt(256)); findViewById(R.id.root).setBackgroundColor(color); } });
    in your activity onResume() callback.

#License Copyright (C) 2016 Mohanad KHOULI

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

 http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

voice-ready's People

Contributors

mr-kh21 avatar

Watchers

 avatar  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.