Skip to content

Instantly share code, notes, and snippets.

import time
import boto3
transcribe = boto3.client('transcribe')
transcribe.start_transcription_job(
TranscriptionJobName='RandallTest1',
Media={
'MediaFileUri': 'https://s3-us-west-2.amazonaws.com/randhunt-transcribe-demos/test.flac'
},
MediaFormat='flac',
LanguageCode='en-US',
import datetime
import requests
from requests_oauthlib import OAuth1
auth = OAuth1(
'consumer',
'consumer_secret',
'auth',
'auth_secret'
)
@redavis22
redavis22 / AWS Basics.md
Created February 5, 2017 05:56 — forked from ranman/AWS Basics.md
AWS Livestreams

AWS Livestreams

  • 11/15/2016 - Building a serverless web app
  • 11/01/2016 - Building A Static Website With S3: gist

What is Amazon Web Services?

After over a decade of building and running the highly scalable web application, Amazon.com, the company realized that it had developed a core competency in operating massive scale technology infrastructure and datacenters, and embarked on a much broader mission of serving a new customer segment—developers and businesses—with a platform of web services they can use to build sophisticated, scalable applications. Today, AWS is the fastest-growing multi-billion enterprise IT vendor in the world.

AWS provides on-demand delivery of IT resources via the Internet with pay-as-you-go pricing. It's not just VPS.

import urlparse
from flask import Flask, jsonify, request
import requests
from requests_oauthlib import OAuth1
import boto3
dynamodb = boto3.resource('dynamodb')
token_table = dynamodb.Table('daysuntil_users1')
import twitter
import boto3
import time
dynamodb = boto3.resource('dynamodb')
table = dynamodb.Table('twitter_followers')
api = twitter.Api(
consumer_key='',
consumer_secret='',
@redavis22
redavis22 / polly_demo.py
Created February 5, 2017 05:56 — forked from ranman/polly_demo.py
polly stream
import pyaudio
import boto3
polly = boto3.client('polly')
p = pyaudio.PyAudio()
resp = polly.synthesize_speech(Text="HELLO WORLD!", TextType="text", OutputFormat="pcm", VoiceId="Justin")
stream = p.open(format=p.get_format_from_width(width=2), channels=1, rate=16000, output=True)
stream.write(resp['AudioStream'].read())
stream.stop_stream()
stream.close()
from collections import defaultdict
import time
import irc.client
import pyaudio
from pymouse import PyMouse
from pykeyboard import PyKeyboard
import win32ui
import boto3
polly = boto3.client('polly', region_name='us-east-1')
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import io
import os
import pprint
import boto3
import cv2
import numpy as np
from PIL import Image, ImageOps
from skimage import img_as_float
from skimage.measure import compare_ssim as ssim