To run
see quick start http://www-lium.univ-lemans.fr/diarization/doku.php/quick_start
/usr/bin/java -Xmx2024m -jar ./lium_spkdiarization-8.4.1.jar --fInputMask=./norman_door.mp4.temp.wav --sOutputMask=./showName.seg --doCEClustering showName
| =Navigating= | |
| visit('/projects') | |
| visit(post_comments_path(post)) | |
| =Clicking links and buttons= | |
| click_link('id-of-link') | |
| click_link('Link Text') | |
| click_button('Save') | |
| click('Link Text') # Click either a link or a button | |
| click('Button Value') |
| require 'mechanize' | |
| require 'prawn' | |
| =begin | |
| running from terminal to download any pdf from issuu.com, given | |
| - magazine name | |
| - page count | |
| - document-id | |
| =end |
| =begin | |
| `spoken_data_api_library.rb` | |
| an attempt to make a SDK for the spoken data API. | |
| spokenData API ruby unofficial SDK v1 | |
| @author : Pietro Passarelli | |
| @date: 22/07/2015 | |
| @url: http://spokendata.com/api | |
| ## About |
| =begin | |
| @date 23 July 2015 | |
| @author: pietro.passarelli@gmail.com | |
| Given a CSV with two coulmns that have duplicate fields, | |
| this script compares the two lists and returns a list of the duplicates, | |
| and prints it out as text file. | |
| run it as `ruby csv_2_list.rb name_of_the_csv_file_.csv` | |
| =end |
| =begin | |
| Convert sbv to CSV and Plain Text | |
| To convert sbv files generated using youtube captioning to CSV and plain text format. | |
| run from terminal as $ ruby sbv_to_csv.rb Captions.sbv | |
| converts sbv file from youtube into csv file, doing also timecode conversion using timecode gem. from ie 0:09:07.730 to 00:09:07:18 | |
| =end | |
| require 'csv' | |
| require 'timecode' |
| ## a script to config ubuntu EC2 instance with quickQuote. http://times.github.io/quickQuote/ | |
| ## run the script form terminal in the ec2 instance using: | |
| ## ./config_ec2.sh | |
| ## you might need to adjust permissions to run it using: | |
| ## sudo chmod 600 ./config_ec2.sh | |
| ## http://dennissuratna.com/rails-deployment-aws1/ | |
| ## http://dennissuratna.com/rails-deployment-aws2/ | |
| ## http://dennissuratna.com/rails-deployment-aws3/ | |
| ## Installs on the EC2 instance: | |
| ## ruby-2.0.0-p353 |
| /** | |
| * A way to simplify/automate the process of making a sails api, using blueprints. | |
| * it takes a list of models you'd like to generate APIs for, and adds them to the sails app, through a system call. | |
| * TODO: if you could also specify associations between models, this would make it amazingly quick to prototype a backend API. | |
| */ | |
| var spawn = require('child_process').spawn; | |
| //A comma separate string list of models/resources you'd like to generate | |
| var models = 'project, user, media, transcript, annotation, speaker, paperedit, papercut'; |
| var request = require('request'); | |
| var fs = require('fs'); | |
| var sox = require('sox'); | |
| var spawn = require('child_process').spawn; | |
| var WATSON_USER = ''; | |
| var WATSON_PASS = ''; | |
| var url = 'https://stream.watsonplatform.net/speech-to-text/api/v1/recognize'; |
To run
see quick start http://www-lium.univ-lemans.fr/diarization/doku.php/quick_start
/usr/bin/java -Xmx2024m -jar ./lium_spkdiarization-8.4.1.jar --fInputMask=./norman_door.mp4.temp.wav --sOutputMask=./showName.seg --doCEClustering showName
| /** | |
| * Minimal SDK to interact with spoken data's spekaer diarization service. | |
| * | |
| * This SDK I/O. works in two pars. first you send the video/audio receive a `uid`. that you can use to check status of transcription and retrieve json. | |
| * | |
| * Input: the API takes in a video or audio file (2048MB per file limit, file extensions: wav, mp3, mp4, ac3, avi, mpg, wmv, flv, mkv) | |
| * output: a uid | |
| * | |
| * input: uid | |
| * output: status of transcription is the first param returned. if `done` returns transcript/speaker diarization as second param. |