This is a list of controls that can be placed into an IAM policy document. All content comes from AWS documentation.
Something wrong? Try looking here.
Table of Contents generated with DocToc
| require 'rest_client' | |
| require 'json' | |
| a = `sox -d --norm -t .flac - silence -l 1 0 1% 1 6.0 1% rate 16k` | |
| #a = `arecord -q -d 3 -c 1 -f S16_LE -r 22050 -t wav | flac - -f --totally-silent -o-` | |
| r = RestClient.post 'https://www.google.com/speech-api/v1/recognize?lang=en-US', a, | |
| :content_type => 'audio/x-flac; rate=16000' | |
| if j = JSON.parse(r) | |
| (p j; `espeak 'you said: #{j['hypotheses'].first['utterance']}'`) | |
| end |