Git Product home page Git Product logo

cowphone's Introduction

CowPhone

Call a phone number, say something, get an email with your words in a cowsay

This was a demo used for the 2012 Cluecon presentation Stupid Things You Can Do With VoIP.

Installation

Install Jester

Symlink your cowphone checkout to the Jester profile directory as cowphone, something like:

ln -s /path/to/cowphone/checkout /usr/local/freeswitch/scripts/jester/profiles/cowphone

Add the phrase file to your language config (probably conf/lang/en/en.xml):

<X-PRE-PROCESS cmd="include" data="$${base_dir}/scripts/jester/profiles/cowphone/phrases.xml"/>

Note: this assumes you're using the default sounds, otherwise adjust accordingly.

Add this extension to your dialplan, replacing EMAIL with a valid email address:

<!-- Internal extension for CowPhone -->
<extension name="cowphone">
  <condition field="destination_number" expression="^cowphone$" break="on-true">
    <action application="answer"/>  
    <action application="sleep" data="1000"/>
    <action application="lua" data="jester/jester.lua cowphone cowphone EMAIL"/>
    <action application="hangup"/>  
  </condition>
</extension>

Set up a transfer to that extension.

For the speech to text portion of the demo to work, you must configure an application at the AT & T Developer Portal. Be sure to enable the 'Speech To Text' API when creating the app, and note the app key and secret. Then, Edit conf.lua, adding values for att_app_key and att_app_secret.

Usage

Call the number you configured. Say something. Hang up. Enjoy your cowsay.

Bugs

No bugs, only marmots.

cowphone's People

Contributors

thehunmonkgroup avatar

Watchers

 avatar  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.