Wiki tua iwa, Akomanga tua rua
Task
Considering the works of Hanne Lippard (5) and Rebecca Ann Hobbs (6).
IND: Use the other artist’s method to produce your own work. Document both resulting works and archive into your workbook/blog
5th Artist: Hanne Lippard
Response
“Postmodernism” – an app
This app responds to speech, particularly the word “postmodernism”. You will need to give your web browser permission to use your microphone. If you click the app, it will play an audio clip of Hanne Lippard saying variations on “postmodernism”, and the app will react to that too (via your microphone hearing your speakers, for now). The audio clip is undoubtedly copyright Hanne Lippard, 2011.
Sourcecode
For those that care about this sort of thing, the program is written in P5JS and is hosted in my WordPress instance courtesy of the “Responsive P5JS for WP” plugin by Rolf van Gelder.
<html>
<head>
<meta charset="UTF-8">
<script language="javascript" type="text/javascript"
src="https://cdn.jsdelivr.net/npm/p5@1.4.0/lib/p5.min.js"></script>
<script language="javascript" type="text/javascript" src="https://cdn.jsdelivr.net/npm/p5@1.4.0/lib/addons/p5.sound.min.js"></script>
<script language="javascript" type="text/javascript" src="p5.speech.js"></script>
<script language="javascript" type="text/javascript" src="sketch.js"></script>
</head>
<body></body>
</html>
var soundFile;
var myRec = new p5.SpeechRec('en-GB', parseResult);
myRec.continuous = true;
myRec.interimResults = true;
function preload() {
soundFile = loadSound('./Postisms.mp3');
}
function setup() {
// graphics stuff:
createCanvas(600, 200);
background(255, 255, 255);
fill(0, 0, 0, 255);
getAudioContext().suspend();
soundFile.play();
// instructions:
textSize(32);
textAlign(CENTER);
text("say something", width / 2, height / 2);
//myRec.onResult = showResult;
myRec.start();
}
function draw() {
// null (just uses a callback)
}
function parseResult() {
var mostrecentword = myRec.resultString.split(' ').pop();
if(mostrecentword.indexOf("postmodernism")!==-1) {
background(255, 0, 0);
} else {
background(192, 255, 192);
}
text(myRec.resultString, width / 2, height / 2);
console.log(myRec.resultString);
}
function mousePressed() {
userStartAudio();
}
6th Artist: Rebecca Ann Hobbs
Response
Did not complete this. Was making a video, took images of beach, was trying to sync them to a music track but the technology defeated me.