Giter Club home page Giter Club logo

fb-chat-stt's Introduction

fb-chat-stt

Uses fbchat and the Google Cloud Platform to perform speech recognition on audio messages.

Introduction

A few of my friends sometimes use Messenger voice messages in group threads, which annoys me to no end when I try to catch up to the conversation.

To remedy to that problem, I developed a bit of glue to sit between the wonderful fbchat and the power of the Google Cloud Platform.

My program grabs messages from Messenger, sends them to a GCS bucket, converts them to text using the speech to text capabilities of the GCP, and finally sends them back to the thread.

Usage

The easiest way to use this is to grab the Docker image:

docker pull crispybaguette/fb-chat-stt:latest

There are a few parameters to pass using environment variables, so I recommend using a dedicated file (.env):

STT_BUCKET=<gcp bucket name>
STT_THREADS=<comma-separated list of messenger threads>
GOOGLE_APPLICATION_CREDENTIALS=/credentials/service-account.json
FB_USER=<your FB user name>
FB_PASSWORD=<your FB password>

You will need a GCP service account with read/write access to a bucket and access to the speech-to-text API. You can retrieve the thread ids as specified somewhere in this page.

Run the container with:

docker run --env-file .env -v <path to the service account credentials>:/credentials/service-account.json crispybaguette/fb-chat-stt

Send a voice message to one of the threads you specified in the .env file, and behold the magic.

fb-chat-stt's People

Contributors

crispybaguette avatar

Watchers

 avatar

fb-chat-stt's Issues

Time zone

The time zone is not set, which causes python to format the date with a 2 hour offset.

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.