Skip to content

Commit

Permalink
0.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
xiongyihui committed Aug 24, 2017
1 parent 4fdf76b commit 2c9bd62
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 36 deletions.
5 changes: 5 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
History
=======

0.0.5 (2017-08-24)
------------------

* support alerts interface

0.0.4 (2017-07-13)
------------------

Expand Down
59 changes: 25 additions & 34 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,69 +8,60 @@ Python Alexa Voice Service App
.. image:: https://img.shields.io/travis/respeaker/avs.svg
:target: https://travis-ci.org/respeaker/avs

.. image:: https://readthedocs.org/projects/avs/badge/?version=latest
:target: https://avs.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status


Features
--------

* Implement Alexa Voice Service API v20160207
* Support DuerOS AVS compatible service
* Support Alexa Voice Service API v20160207
* `支持DuerOS <https://github.com/respeaker/avs/wiki/%E4%BD%BF%E7%94%A8DuerOS%E7%9A%84AVS%E5%85%BC%E5%AE%B9%E6%9C%8D%E5%8A%A1>`_


To do
-----

* Alerts interface
* Speaker interface
* Notifications interface

Usage
-----
Requirements
-------------

1. `register for an Amazon Developer Account. <https://github.com/alexa/alexa-avs-raspberry-pi#61---register-your-product-and-create-a-security-profile>`_
* gstreamer1.0 gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly
* python-gi python-gst gir1.2-gstreamer-1.0
* respeaker python library pocketsphinx (optional, for hands-free keyword spotting)

2. create a file named config.json with your product_id, client_id and client_secret::

{
"product_id": "x",
"client_id": "y",
"client_secret": "z"
}
Get started
------------

For DuerOS, set OAUTH CONFIG URL to `http:https://127.0.0.1:3000/authresponse` and add `host_url` and `dueros-device-id` to the config.json, for example

{
"host_url": "dueros-h2.baidu.com",
"dueros-device-id": "storyteller0001",
"product_id": "x",
"client_id": "y",
"client_secret": "z"
}
1. run ``alexa-auth`` to login Amazon, it will save authorization information to ``~/.avs.json``
2. run ``alexa-tap``, then press Enter to talk with alexa
3. run ``alexa``, then use "alexa" to start with conversation with alexa, for example, "alexa, what time is it"


Change Alexa Voice Service client id and product id
----------------------------------------------------

3. run::
If you want to use your own client id and product id, try:

sudo apt-get install python-gi python-gst gir1.2-gstreamer-1.0 # if using python3, these packages should be python3-gi, python3-gst and gir1.2-gstreamer-1.0
pip install avs
alexa-auth config.json # oauth
alexa-tap # press enter and talk
1. `register for an Amazon Developer Account. <https://github.com/alexa/alexa-avs-raspberry-pi#61---register-your-product-and-create-a-security-profile>`_

2. create a file named config.json with your product_id, client_id and client_secret::

4. If you want to run hands free alexa, install `respeaker python library <https://github.com/respeaker/respeaker_python_library>`_ and run::
{
"product_id": "x",
"client_id": "y",
"client_secret": "z"
}

alexa
3. run ``alexa-auth -c config.json``

4. run ``alexa-tap`` or ``alexa``

License
-------
* Free software: GNU General Public License v3




Credits
-------

Expand Down
2 changes: 1 addition & 1 deletion avs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

__author__ = """Yihui Xiong"""
__email__ = '[email protected]'
__version__ = '0.0.4'
__version__ = '0.0.5'
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

setup(
name='avs',
version='0.0.4',
version='0.0.5',
description="Python implementation of Alexa Voice Service App",
long_description=readme + '\n\n' + history,
author="Yihui Xiong",
Expand Down

0 comments on commit 2c9bd62

Please sign in to comment.