Skip to main content

Google Assistant Library Python wrapper

Project description

This package contains high level Python bindings for the Google Assistant Library.

It is part of the Google Assistant SDK.

It includes the following features:

  • “Ok Google” or “Hey Google” hotword detection

  • Audio recording

  • Assistant response playback

  • Timer and alarm features

  • Volume ducking and control

  • Conversation state management

See Getting Started with the Raspberry Pi and Python for a step by step guide on how to get started with the library on Raspberry Pi 3.

Supported configuration

  • Python >= 3.4

  • Architecture: linux-arm7l and linux-x86_64

Installing

  • You can install using pip.:

    pip install --upgrade google-assistant-library

Authorization

  • Follow the steps to configure a Google API Console Project and a Google account to use with the Google Assistant SDK.

  • Download the client_secret_XXXXX.json file from the Google API Console Project credentials section and generate credentials using google-oauth-tool.:

    pip install --upgrade google-auth-oauthlib[tool]
    google-oauthlib-tool --client-secrets path/to/client_secret_XXXXX.json --scope https://www.googleapis.com/auth/assistant-sdk-prototype --save --headless

Usage

  • Run the demo:

    google-assistant-demo
  • Say “Ok Google” or “Hey Google” followed by a voice query. The demo should play back the Assistant’s response and log events to the screen.

Reference

License

See LICENSE and LICENSE.third_party.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

google_assistant_library-0.1.1-py2.py3-none-linux_armv7l.whl (7.3 MB view details)

Uploaded Python 2Python 3

File details

Details for the file google_assistant_library-0.1.1-py2.py3-none-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for google_assistant_library-0.1.1-py2.py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 b794499828118d5ffcaf78aefb9dfe6f71db67a6217a292487a6668ccf0db6ab
MD5 c295be795a4c41b49ae9c5868f865c16
BLAKE2b-256 17d3501558cc5aa6fb0ec05fe7b04c630294f8324edec1437cabfb37d18cb7b9

See more details on using hashes here.

File details

Details for the file google_assistant_library-0.1.1-py2.py3-none-linux_armv7l.whl.

File metadata

File hashes

Hashes for google_assistant_library-0.1.1-py2.py3-none-linux_armv7l.whl
Algorithm Hash digest
SHA256 8b327d941d803f1052d7ace198099416dfdb7b5f3988f1d7d5d62d9a966ac87b
MD5 822b7cf36b88394ff09f79b74ab2121b
BLAKE2b-256 ab2e188fab78b8672313c1dc92fc951589cc6d1a3f46aeed1e82b0b6f59113bc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page