Skip to content

Simple browser extension that can transcribe and translate any web page with audio content.

License

Notifications You must be signed in to change notification settings

ikumen/transcribe-and-translate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Transcribe and Translate

A simple browser extension that can transcribe and translate audio from any web page. The extension works by capturing audio on the web page, then streams it to Deepgram's Speech-To-Text API for transcribing, and then to Azure's translation service for a final translation into a target language. It is my entry to the Deepgram + DEV hackathon.

transcriber architecture

Development Setup

The project contains two parts, the main extension source and a API service proxy responsible for requesting short-lived access tokens for the extension to use.

|____extension
| |____background.js
| |____icons
| | |____speaker-48.png
| |____manifest.json
| |____content.js
|
|____service-proxy
| |____mvnw.cmd
| |____pom.xml
| |____src
|   |____....
|
|____LICENSE
|____README.md

Locally Test Extension

The extension uses some Chrome specific APIs, so it will only work on Chrome based browsers (e.g, Chrome, Edge). To install it locally, simply:

-> Manage extensions -> Load unpacked -> select the directory of the extension

Locally Running API Service Proxy

  1. create account for Deepgram, generate an API Key

  2. create an Azure account, provision an Azure Translator service

  3. create a .env file and add the Azure Translator subscription key, and Deepgram API key and project id.

    azure-translator-api.subscription-key=<your Azure translator subscription key>
    deepgram-api.authentication-key=<your Deepgram api key>
    deepgram-api.project-id=<your Deepgram project id>
    
  4. start the local service proxy

    > ./mvnw quarkus:dev
    

About

Simple browser extension that can transcribe and translate any web page with audio content.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published