Giter VIP home page Giter VIP logo

udder's Introduction

[DEPRECATED] Udder

Deprection

As we expected, Amazon is slowly building out tools to make this stuff easier and they have effectively replaced udder with custom slot types. It's missing a few things we have, but I expect that if they're putting this much effort into it, it's not far off.

Intro

Udder is a tool for generating boilerplate for Amazon Echo apps. Right now, it supports generating utterances from a slightly extended template format based on the original Amazon format.

Eventually I'd like to support generating intents/lambda functions as well.

Node versions

I only support node 4.1.1+. I want ES6 and lots of it.

Usage

$ npm install -g udder

Right udder supports generating utterances. More features to follow!

Utterances

Here is an example utterances.txt file:

SetVolume turn it {up,down|Direction}
SetVolume turn {up,down|Direction}
SetVolume turn it {up,down|Direction} a lot
SetVolume turn it {up,down|Direction} a bunch
SetInput switch to {H. D. M. I.|Input} {1…5|Number}
SetInput switch to {A. V.|Input} {1…6|Number}
SetInput switch to {U. S. B.|Input}
SetInput switch to {Audio|Input} {1…2|Number}
SetInput switch to {Tuner|Input}
SetInput switch to {Video Aux|Input}
SetPowerState turn {on|State}
SetPowerState turn {off|State}
SetPowerState power {on|State}
SetPowerState power {off|State}

Note the numeric ranges denoted by ellipses (). These templates will generate one line per number inclusively within the range.

Make sure you use an actual ellipsis character and not three periods.

Mac: ⌥; Linux: Compose + ...

Let's run the generator on it:

$ udder utterances path/to/utterances.txt

Here's what the output will be:

SetVolume turn it {up|Direction}
SetVolume turn it {down|Direction}
SetVolume turn {up|Direction}
SetVolume turn {down|Direction}
SetVolume turn it {up|Direction} a lot
SetVolume turn it {down|Direction} a lot
SetVolume turn it {up|Direction} a bunch
SetVolume turn it {down|Direction} a bunch
SetInput switch to {H. D. M. I.|Input} {one|Number}
SetInput switch to {H. D. M. I.|Input} {two|Number}
SetInput switch to {H. D. M. I.|Input} {three|Number}
SetInput switch to {H. D. M. I.|Input} {four|Number}
SetInput switch to {H. D. M. I.|Input} {five|Number}
SetInput switch to {A. V.|Input} {one|Number}
SetInput switch to {A. V.|Input} {two|Number}
SetInput switch to {A. V.|Input} {three|Number}
SetInput switch to {A. V.|Input} {four|Number}
SetInput switch to {A. V.|Input} {five|Number}
SetInput switch to {A. V.|Input} {six|Number}
SetInput switch to {U. S. B.|Input}
SetInput switch to {Audio|Input} {one|Number}
SetInput switch to {Audio|Input} {two|Number}
SetInput switch to {Tuner|Input}
SetInput switch to {Video Aux|Input}
SetPowerState turn {on|State}
SetPowerState turn {off|State}
SetPowerState power {on|State}
SetPowerState power {off|State}

You can pipe this to a file in your build process.

udder's People

Contributors

erik avatar raynes avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

erik

udder's Issues

Usage instructions?

Hey,

This looks like a neat project. Can you please add some quick usage instructions? I would love to have a go at it.

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.