Code Monkey home page Code Monkey logo

whisper-workflow's Introduction

Purpose of this project is a small workflow script for an automated transcription of voice recorded on a speech recorder.

The script consists of a few parts

1.) Check if the voice recorder is available

2.) Copy / convert files (supported formats: MP3, DSS, DSS2 is unfortunately not supported by ffmpeg)

3.) Call API

4.) Send an email with the transcript

The script is designed for use on a raspberry pi but can also be used in many different other scenarios.

GETTING STARTED

Prerequisites on debian based systems

1.) apt-get install ffmpeg mailutils jq

2.) Configure mail system for sending mails: dpkg-reconfigure exim4-config

3.) Move script to a directory of your choice (e. g. /etc)

4.) Install it as a service

cd /lib/systemd/system/ nano workflow.service

Content of workflow.service [Unit] Description=Workflow for DPM After=multi-user.target

[Service] Type=simple ExecStart=/etc/workflow.sh Restart=on-abort

[Install] WantedBy=multi-user.target

5.) chmod 644 /lib/systemd/system/workflow.service

6.) chmod +x /etc/workflow.sh

7.) edit workflow.sh

  • change recipient's mail address
  • change vendor and product id of your usb device (call lsusb)
  • edit function "whisper" which calls the whisper api

8.) systemctl daemon-reload && systemctl enable workflow.service && systemctl start workflow.service

API

I recommend to use the script with two local APIs which are available on github

https://github.com/morioka/tiny-openai-whisper-api and https://github.com/pluja/whishper

whisper-workflow's People

Contributors

faspie avatar

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.