Giter VIP home page Giter VIP logo

kvsconsumergooglestt's Introduction

kvsConsumerGoogleSTT

This Lambda is invoked by another Lambda.
Get the audio stream from KVS.
Get the real time transcription by Google Speech to Text.
Write the transcription to DynamoDB.
Save the audio data as wav file in s3.

DEMO

https://drive.google.com/file/d/1OsolNuuSxA6zbFeaM-fIVdolntdGaLqo/view?usp=sharing

Requirement

  • openjdk version "1.8.0_265"
  • Gradle 6.6.1
  • credentials.json with Google Speech To Text enabled

Maybe it will work with other versions as well. Try it for yourself.

Usage

git clone https://github.com/yuga-t/kvsConsumerGoogleSTT.git

cd kvsConsumerGoogleSTT

Put credentials.json in kvsConsumerGoogleSTT/src/resources/

gradle build

Upload kvsConsumerGoogleSTT/build/ditributions/kvsConsumerGoogleSTT.zip to Lambda.

Set Handler of Runtime settings

com.amazonaws.kvstranscribestreaming.KVSTranscribeStreamingLambda::handleRequest

Set Environment Variable of Lambda.

  • key:GOOGLE_APPLICATION_CREDENTIALS, value:credentials.json
  • key:LIMITDAY_OF_TTL, value:1
  • key:RECORDINGS_BUCKET_NAME, value:amazon-connect-audio-bucket
  • key:RECORDINGS_KEY_PREFIX, value:recordings/
  • key:RECORDINGS_PUBLIC_READ_ACL, value:TRUE
  • key:REGION, value:ap-northeast-1
  • key:START_SELECTOR_TYPE, value:NOW
  • key:TRANSCRIPT_TABLE_NAME, value:transcriptTable

Note

The demo will not work on this project alone.
Requires AmazonConnect ContactFlow and another Lambda, and so on.
Please refer to here.

References

License

"kvsConsumerGoogleSTT" is under MIT license.

kvsconsumergooglestt's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.