SignWave: Program to transcribe textual content, audio information into an indication language animation

SignWave: Program to transcribe textual content, audio information into an indication language animation

License
GitHub repo size
JamHacks7

An easy-to-use program that transcribes textual content or audio information into an indication language animation.

image

Given how a lot society has superior technologically, the truth that there nonetheless is not sufficient consideration given to creating communication extra accessible for the deaf neighborhood is inexcusable. One of our teammates spoke of his first-hand expertise with this concern, as his grandfather is a deaf particular person who communicates primarily via signal language and visible cues. That’s once we had the thought of automating translation to signal language, much like closed captions on movies. As a end result, we’ve created SignWave, an accessible and handy translator from English to American Sign Language (ASL).

What it does and the way it may be used

SignWave can take two varieties of enter: audio information and textual content. If an audio file is given, SignWave produces a transcript of the phrases spoken within the audio file. If a textual content enter is given and presents an animation of the transcript in signal language and continues to the subsequent step. When a textual content enter is given, the method is bypassed and this system produces an animation of the textual content in signal language. While helpful as an indication language equal of closed captions, SignWave additionally extends as an academic instrument. Those seeking to be taught signal language can use SignWave to show themselves how one can signal varied phrases utilizing each the speech-to-sign and text-to-sign functionalities.

Requirements:

  • System: Python (3.11.4)
  • Speech-to-text: PyTorch (2.0.1), ffmpeg (6.0), openai-whisper (beta)
  • Animation: NumPy (1.21.0), mediapipe (0.8.9.1)
  • Misc: Flask (2.3.2), Levenshtein (0.2.1), regex (2023.6.3), opencv-python (4.5.5.61)

Instructions:

  1. Clone the repository
$ git clone https://github.com/tan-ad/SignWave.git

  1. Set up Python digital setting
  1. Install required dependencies
  2. Run the app.py file

Our program has three fundamental steps:

  • Convert audio to textual content (when changing text-to-sign, that is skipped)
  • Find what motion corresponds to every phrase
  • Animate the motion

We used OpenAI’s Whisper API to acknowledge and convert speech to textual content. Once in textual content kind, we used ASL Sign Language Dictionary to gather video demonstrations of assorted phrases in signal language. For every video, we tracked the hand joints utilizing MediaPipe Hand Landmarker, which gave us the 3D coordinate of every hand joint at every body of the video. We then created a dictionary, mapping every phrase to a multidimensional array of coordinates. This then permits us to make use of three.js to animate the fingers as a set of factors and edges. Finally, we wrapped all of it collectively into a pleasing and usable interface utilizing HTML, JS, and CSS.

  • The crew was nearly utterly new to Git, so we needed to be taught to make use of Git instructions, resembling add, commit, push, and pull from scratch
  • Semantics: Not having the precise translation of each phrase within the ASL dictionary
  • Creating a mannequin that makes use of each proper and left hand, particularly when their animations overlap
  • Making User Interface design easy, accommodating each textual content and audio file inputs

Accomplishments that we’re happy with

  • Creating a 2D mannequin that precisely maps the actions of each fingers
  • Transcribing a .mp3 file into .txt, then mapping it to our dictionary of ASL movies
  • Accommodating each audio and textual content enter
  • Creating a clear and easy-to-use UI
  • How to make use of OpenAI’s Whisper API to transform speech to textual content
  • Using Python scripts to transform the .txt file into an inventory of distinctive strings
  • Using Google’s MediaPipe Hand Landmarker to retried the coordinates of every hand
  • Using the ASL Dictionary to map every phrase to an array of coordinates
  • Using three.js to animate the set of factors
  • Using HTML, CSS, JS, and Git to create a web site and repository
  • Adding sliders to permit customers to regulate animation pace
  • Creating a mannequin with extra humanoid fingers
  • Implementing a reverse translation perform of ASL to English through the use of pc recognition and Machine Learning
  • Expanding it into industrial makes use of (eg. transcribing college lectures for deaf or hard-of-hearing college students, captioning for TV reveals, and so on)
  • We’re excited to see the place SignWave can go sooner or later 👋

HI-FI News

by way of Hacker News https://ift.tt/OzJD7fB

May 29, 2024 at 07:22AM