Skip to content

Instantly share code, notes, and snippets.

#include <ADCTouch.h>
int ref0, ref1; //reference values to remove offset
void setup()
{
// No pins to setup, pins can still be used regularly, although it will affect readings
Serial.begin(9600);
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.4.5/p5.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.4.5/addons/p5.dom.js"></script>
<script src="../lib/p5.speech.js"></script>
<script>
var myVoice1 = new p5.Speech('Google UK English Male', speechLoaded); // new P5.Speech object
var myVoice2 = new p5.Speech('Google UK English Female', speechLoaded); // new P5.Speech object
//myVoice.onLoad = speechLoaded; // could do it this way
@Tiriree
Tiriree / deeptalking-description-textgenrnn
Last active April 3, 2018 04:46
DeepTalking description using Neural network text prediction with textgenrnn Inspired by Allison Parrish Reading and Writing Electronic Text class Link to her tutorial What is Textgenrnn From Max Woolf's Github textgenrnn is a Python 3 module on top of Keras/TensorFlow which can easily generate text using a pretrained recurrent neural network Si…
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## DeepTalking description using Neural network text prediction with `textgenrnn`\n",
"\n",
"Inspired by [Allison Parrish](http://www.decontextualize.com/) Reading and Writing Electronic Text class\n",
"Link to her [tutorial](https://github.com/aparrish/rwet/blob/master/neural-network-text-prediction-with-textgenrnn.ipynb)\n",
#!/usr/bin/env python3
#tiri for voice class
import logging
import subprocess
import sys
import aiy.assistant.auth_helpers
import aiy.audio
import aiy.voicehat
#!/usr/bin/env python3
#tiri for voice class
import logging
import subprocess
import sys
import aiy.assistant.auth_helpers
import aiy.audio
import aiy.voicehat
Wen yo ter ching kong
เวินโหว่เตอชิ่งคง
Eing kai yang nee kan tong
อิงไกยังนีกันตง
whar jai nee Chen pang
ว่อจ่ายนีีเชินผ่าง
Wei nee pu jue ei Paine taine kong
เวิ่ยนีปูจืออิเพียนเทียนคง
Pu jun nee nan kua
//Accelerometer data send to xbee
//accelerometer code based on http://bildr.org/?s=adxl335
//Analog read pins
const int xPin = 0;
const int yPin = 1;
const int zPin = 2;
//The minimum and maximum values that came from
//the accelerometer while standing still
<pre><code>
----------begin_max5_patcher----------
4091.3oc4cszbaajD9rzuhoXsGr2RKy7d.1SwUhSVW0t6AmbKNkJHRHJDCBv
E.T1xoh+suyC7jhXvPYRHHImJ1jCH.59qeLc2SiA+44mM6pzOGlOC7OA+F3r
y9yyO6L8PpANq76mMacvmWDGjq+YyRB+T5U+wrKLGpH7yE5g+6eE.mCwUiuI
nXwMQIqtLKbQg4xiPD3bA0Wv3W.7E74PNmyt.P8mCu.fwygfeu7riVpulx6y
+vu5JltsHNrn3tMglK2r7nUIAwypOo7h6h0GaV0ojrccTh7jzDNtYPykROJR
M3ec94p+5hSNB.gdJDvm3e.H.E9LBB77oJDvS3c.H.54DBH7gGtN.h9jAAJB
1HuveUor6ndfmfMWBBbrzuffZEF7NVv.ZDfgnjCBEvHEJHnxOyE1PALtWTPd
WWjljnuASHjPqPPrBEclcvcMBL8olFwg.CtqR38jTk.aGKZOco6pDD3SMUhC
<pre><code>
----------begin_max5_patcher----------
3123.3oc4cs0baaiE9YmeEXzSa6nphKjfj8gNSltytSdXeYaeqYGOPjPxngh
TkDxINcZ9su3BIEorHIjsEsrclDYK.Rvy46bAmyAfH+06tZ1x7uvKmA9IvuC
t5p+5cWckoIcCWU88qlsg8k3TVo4xlkw+b9x+X1baWR9WjlliugkslW27VlL
9FQ15qK3wR6nG.W3GRH3v4.TDYAQ8GDYNvGt.NGfwKff+W0MKRLin5o7CTX8
HluSlxkx61xsC2rYyAyDYx5ezb2kx6RMWyr5aMa2FQl5lMzOZei1gzzJQ23e
+t2o+Xti.wpzb0fL.G6oXSMK64oXPOuETJ0m5qXen+P7LIXPddoBm2ysaYEr
MbIu3ZdFaokwg8hDqxK1vLTG0crA+.vldTRXKKAvEtBYPpFxB7TZLdjAQrvd
QLkPh8XUNPmakCTPPCmFQGhS87d0paTFyR4JsC.gp9P8WryZJHu.i+j.8uiv
{
"1" : [ "1.mov", "call me on my cellphone" ],
"2" : [ "2.mov", "lover" ],
"3" : [ "3.mov", "devil" ],
"4" : [ "4.mov", "hangman" ],
"5" : [ "5.mov", "1 egg" ],
"6" : [ "6.mov", "2 eggs" ],
"7" : [ "7.mov", "6 eggs" ],
"8" : [ "8.mov", "Diamond" ],
"9" : [ "9.mov", "enemy" ],