Giter Site home page Giter Site logo

emibcn / podcast2text Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 0.0 84 KB

Proof of concept for transcribing podcasts into text using GCP Speech2Text service

License: GNU General Public License v3.0

JavaScript 67.48% Shell 32.52%
javascript poc google-speech-to-text google-speech docker docker-compose hacktoberfest deepsource

podcast2text's Introduction

DeepSource

Proof of Concept for transcoding podcasts into text using GCP Speech2Text service, following its NODE JS tutorial.

Installation

  1. Download this repo:
git clone https://github.com/emibcn/Podcast2Text.git
  1. Change directory into it:
cd Podcast2Text
  1. Create local directories:
mkdir flac credentials
  1. Create GCP credentials for consuming Speech2Text service at GCP IAM with -at least- Service Usage Consumer permission.
  2. Copy credentials file to ./credentials directory
  3. Create .env file with GOOGLE_APPLICATION_CREDENTIALS=[CREDENTIALS FILENAME] (without directory)

Usage

There is a script helper to transcode any audio file into text. It's syntax is:

./transcode.sh <FILEPATH> [START]
  • FILEPATH: Path (relative or absolute) to podcast audio file
  • START: Initial start seek (transcode beginning at this position). Same syntax as FFMPEG -ss option.

This will encode the supplied file to FLAC format into ./flac directory and then use the encoded file to send it to GCP Speech2Text service and get its transcription printed on screen.

podcast2text's People

Contributors

deepsource-autofix[bot] avatar deepsourcebot avatar dependabot[bot] avatar emibcn avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

podcast2text's Issues

Fix dependencies and project info

Dependencies

GitHub bot has detected outdated and vulnerable dependencies. Update dependencies at packages.json and yarn.lock.

Also, bump NodeJS from 8 to 10 at docker-compose.yml.

Project info

Yarn/npm detected a license error: warning package.json: License should be a valid SPDX license expression. Use an equivalent one from https://spdx.org/licenses/ . Also, specify that this is for small podcasts (up to 2 minutes).

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.