From 1d1de1898810aa9819d2abd6824dde32e146ae60 Mon Sep 17 00:00:00 2001 From: Angeliki Date: Mon, 20 Apr 2020 02:35:23 -0500 Subject: [PATCH] added/fixed radioactive.php and web-audio tool for recording contributor's voices --- README.md | 21 ++ js/main.js | 1 + player.php | 4 + podcast1.php | 11 + podcast1.php.save | 314 ++++++++++++++++++++++++ radioactive_monstrosity.php | 219 +++++++++++++++++ scripts/uploadMp3_5.php | 20 ++ texts/radioactive_contribution.txt | 20 ++ texts/radioactive_contribution.txt.save | 9 + web-dictaphone | 1 + 10 files changed, 620 insertions(+) create mode 100755 podcast1.php.save create mode 100755 radioactive_monstrosity.php create mode 100755 scripts/uploadMp3_5.php create mode 100755 texts/radioactive_contribution.txt create mode 100755 texts/radioactive_contribution.txt.save create mode 160000 web-dictaphone diff --git a/README.md b/README.md index 663d786..4271a73 100755 --- a/README.md +++ b/README.md @@ -20,3 +20,24 @@ sudo apt-get install ffmpeg ## Srttojs python3 srttojs.py description-alex1-A.srt + +# eaiaiaiaoi +Give access to apache for uploading audio through php +`sudo chown www-data:www-data /uploads/` + +## record and save user's microphone +Updated script: https://developers.google.com/web/fundamentals/media/recording-audio + +errors: +https://stackoverflow.com/questions/34215937/getusermedia-not-supported-in-chrome + +Chrome finally implemented the new navigator.mediaDevices.getUserMedia() method, but they added a security that will prevent the calls from unsecure address (non https or non localhost servers) + +You will call it like this : + +var video = document.querySelector('video'); +navigator.mediaDevices.getUserMedia({video:true}).then(function(mediaStream){ + window.stream = mediaStream; + video.src = URL.createObjectURL(mediaStream); + video.play(); +}); diff --git a/js/main.js b/js/main.js index fb22ed1..2ec7f91 100755 --- a/js/main.js +++ b/js/main.js @@ -44,6 +44,7 @@ window.onclick2 = function(event) { // + var a1 = document.getElementById("a1"), a2 = document.getElementById("a2"), but = document.getElementById("but"); diff --git a/player.php b/player.php index 340c463..e649169 100755 --- a/player.php +++ b/player.php @@ -333,6 +333,10 @@
  • Vocal performance of Katalin Ladik in the film ‘Berberian Sound Studio’, 2012 +
  • + +
  • + Tallon, T. (2020) A Century of “Shrill”: How Bias in Technology Has Hurt Women’s Voices, The New Yorker
  • diff --git a/podcast1.php b/podcast1.php index bce673d..35159ce 100755 --- a/podcast1.php +++ b/podcast1.php @@ -181,6 +181,17 @@ echo '
    download'; } ?> navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia); + + if (typeof navigator.mediaDevices.getUserMedia === 'undefined') { + navigator.getUserMedia({ + audio: true + }, streamHandler, errorHandler); + } else { + navigator.mediaDevices.getUserMedia({ + audio: true + }).then(streamHandler).catch(errorHandler); + } + window.URL = window.URL || window.webkitURL; var audio_context = new AudioContext; diff --git a/podcast1.php.save b/podcast1.php.save new file mode 100755 index 0000000..7936484 --- /dev/null +++ b/podcast1.php.save @@ -0,0 +1,314 @@ + + + + + + + +Podcast1 + + + + + + + +

    + + + + + + + + + +
    +

    "Mediating Speech"

    +
    + +
    +
    + + + + + + +





    + + + + + + + +'; +echo '

    NARRATOR

    ';include $num.'.txt'; +echo '

    SPEAKERS

    '; include $num.'-M.txt'; +echo '
    '; +echo '
    '; +include $num.'-METADATA.txt'; +echo '
    download
    '; } ?> + +

    EPISODES

    + +
    + +
    + + + +
    + + +
    
    +    
    + +
    +
    +
    +
    +
    + + + + + +

    VISITORS' VOICES


    + '; + echo '
    '; + echo '
    '.$item['name'].'
    '; + echo '
    '.$item['date'].'
    '; + echo '

    '; + } + ?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/radioactive_monstrosity.php b/radioactive_monstrosity.php new file mode 100755 index 0000000..f918026 --- /dev/null +++ b/radioactive_monstrosity.php @@ -0,0 +1,219 @@ + + + + + + + +Radioactive Monstrosity + + + + + + + +

    + + + + + + + + + + + + +




    + +
    + + + +
    + + +
    
    +    
    + +
    +
    +
    +
    +
    + + + + + +

    VISITORS' VOICES

    + '; + echo '
    '; + echo '
    '.$item['name'].'
    '; + echo '
    '.$item['date'].'
    '; + echo '
    '.$item['type'].'
    '; + echo '

    '; + } + ?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/scripts/uploadMp3_5.php b/scripts/uploadMp3_5.php new file mode 100755 index 0000000..d9ee824 --- /dev/null +++ b/scripts/uploadMp3_5.php @@ -0,0 +1,20 @@ +$_POST['name'],'type'=>$_POST['type'],'date'=>date("d/m/Y"), 'file'=>$file); +$handle=fopen('../uploads/5/index.jsons','a'); +fwrite($handle,json_encode($item)."\n"); +fclose($handle); +print $success ? $file : 'Unable to save the file.'; +?> diff --git a/texts/radioactive_contribution.txt b/texts/radioactive_contribution.txt new file mode 100755 index 0000000..9737edc --- /dev/null +++ b/texts/radioactive_contribution.txt @@ -0,0 +1,20 @@ +
    +

    Dear listener,

    +you are invited to
    amplify
    contribute with +your own voice to a collection of voices + +

    Maximum duration: 1 min

    +

    Best recorded from a computer

    +

    Something like a Privacy Policy

    + + diff --git a/texts/radioactive_contribution.txt.save b/texts/radioactive_contribution.txt.save new file mode 100755 index 0000000..7f39a46 --- /dev/null +++ b/texts/radioactive_contribution.txt.save @@ -0,0 +1,9 @@ +
    +

    Dear listener,

    +you are invited to
    amplify
    parts of the podcasts that you find worthy of attention by listening, recording and repeating them, with your own voice, and upload them in the archive. The stories and sounds, you will listen to, are related to how female voices have been marginalised and what methods (rational/irrational) amplify and bring them in the front. Amplification can happen through repetition and multiplication. Your recording becomes part of a gathering of multiple individual voices, that repeat fragments of situations and things that are unspeakable, and can appear as feedback to them. Your voice, no matter what gender, with its own quality and uniqueness will channel these fragmented female voices. This audio collection may be, then, used as an input for workshops. +

    Maximum duration: 1 min

    +

    Best recorded from a computer

    +

    Something like a Privacy Policy

    + + diff --git a/web-dictaphone b/web-dictaphone new file mode 160000 index 0000000..3d9dee2 --- /dev/null +++ b/web-dictaphone @@ -0,0 +1 @@ +Subproject commit 3d9dee2cd294eb58d46c31b17855f2ceee5cde21