Code Monkey home page Code Monkey logo

alexa-skill-gemini's Introduction

Alexa Skill - Chat with Gemini

Alexa Skill Template to Integrate Google Gemini on Alexa Devices

Credit to Scintilla Hub

Requirements

  • With a Google account, generate an authentication key at Google AI Developer. Copy and save the key, it will only be visible at the time of creation.
  • Create an account at Amazon and log into Alexa Developer Console.

Creating the Alexa Skill

Create an Alexa-hosted Skill (Python) on Alexa: (Create Skill)

  1. Name your Skill: Choose a name of your choice, e.g., Chat with Gemini
  2. Choose a primary locale, e.g., Portuguese (BR)
  3. Click Next. In Experience Type, select: Other > Custom > Alexa-hosted (Python)
  4. Hosting region: You can leave the default US East (N. Virginia)
  5. In Templates: Click Import Skill
  6. Enter the repository address: https://github.com/WandLZhang/alexa-skill-gemini.git and confirm.

Configuring the Skill

When you finish importing Invocations > Skill Invocation Name:

  1. Edit Skill Invocation Name. This will be the invoking command for your skill. Pay attention to word requirements and restrictions.
  2. Click Save
  3. Build the Skill by clicking Build Skill. When finished, go to the tab Code
  4. Create a file inside the Lambda folder called .env and add the line, adding the generated API key:
    GOOGLE_API_KEY=SuaApiKeyGoogleAI
  5. Click Save and then click Deploy

Test the Skill

When deploy finishes, go to the tab Test:

  1. In Skill testing is enabled in, turn it from Off to Development
  2. To use voice commands, accept the website's request to use the microphone, and to speak, click and hold the mic icon, and release to send
  3. Use the configured activation command to start the Skill, and you're ready to interact with Gemini via Alexa!

The Skill will now be available on all Alexa devices linked to your account.

alexa-skill-gemini's People

Contributors

machally avatar wandlzhang avatar

Stargazers

 avatar

Watchers

 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.