This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # This program creates voice debate between 2 information analysts from a youtube video | |
| # and saves the debate in ~/.vtmate/conversations folder as audio+text files | |
| # How to run it | |
| # ------------------------------------------------------------------------------------- | |
| # | |
| # chmod +x ./voice_debate_from_youtube_video.sh | |
| # ./voice_debate_from_youtube_video.sh <YOUTUBE_VIDEO_ID> <LANGUAGE> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %% graph_fsm.erl | |
| %% | |
| %% Author: Vance Shipley, Motivity Telecom Inc. <vances@motivity.ca> | |
| %% Date: November, 2000 | |
| %% | |
| %% | |
| %% This library is free software; you can redistribute it and/or | |
| %% modify it under the terms of the GNU Lesser General Public | |
| %% License as published by the Free Software Foundation; either | |
| %% version 2 of the License, or (at your option) any later |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require File.expand_path(File.dirname(__FILE__) + "/../../config/environment") | |
| require 'adhearsion' | |
| require 'adhearsion/initializer/asterisk' | |
| require 'drb' | |
| # http://help.cloudvox.com/faqs/getting-started/setup-for-ruby-adhearsion | |
| desc "Make an outgoing phone call to number provided as 'call' (via Cloudvox)" | |
| task :make_outgoing_call do | |
| if ENV['call'] | |
| # Outgoing context from Cloudvox Switchboard, under "Outgoing settings (AMI)." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <unistd.h> | |
| #include <libwebsockets.h> | |
| static int callback_http(struct libwebsocket_context *context, | |
| struct libwebsocket *wsi, | |
| enum libwebsocket_callback_reasons reason, void *user, |