Giter Site home page Giter Site logo

alexa-skill-meezan's People

Contributors

tjaffri avatar

Stargazers

 avatar

Watchers

 avatar

alexa-skill-meezan's Issues

Implement single vs continuous playback

Currently, when you play a single verse or chapter, that starts continuous playback.

We should be smart about this and handle the following cases:

  1. Play single verse should only recite that single verse, and stop after that.
  2. Play single chapter should only recite that single chapter, and stop after that.
  3. We should implement special intents to "start reciting from..." which start continuous playback from a particular spot as indicated. As a special case, we should have a "start reciting from here" / "recite the rest" etc intent that starts from the current spot based on last playback.

Implement next and pause intents

We have playhead state, and can implement the "Alexa, Next" and "Alexa, Pause" intents based on that.

The playHead state will need to be augmented with the offset to fully support Pause.

Implement translations

We should support recitations with translations, e.g.:

  1. "Recite chapter 1 with English translations": Should alternate arabic and English
  2. "Recite chapter 1 in english": Should read only English translations.

The default language can still be Arabic.

We will need to update the playHead logic to account for the fact that we will be alternating between languages. For example, we can add a translations structure with a state for each translation (played: bool).

Handle chapter wrapping in continuous playback

When playing continuously, e.g. reciting a chapter, we currently error out at the end of a chapter since the verse increment method is dumb and runs off the end of the chapter.

It needs to detect the end of a chapter and wrap to the next chapter smartly.

Note that this needs to handle the special case of reciting Bismillah (chapter 1, verse 1) before each chapter other than 1 and 9.

Improve chapter name recognition

Searching for chapters by name is very unreliable (since the names are mostly in arabic). Research ways to improve recognition, perhaps by matching similar-sounding english words to arabic via a smart phonetic search.

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.