LiveStream audio translator for MacOS. The application runs with Amazon Transcribe and Amazon Translate.
- node.js 18.x or higher
- ffmpeg
- BlackHole (or other audio loopback altinatives)
$ brew install ffmpeg
$ brew install blackhole-2ch
- open MacOS setting app
FinderApp > Applications > Audio MIDI Setup
- Create
Multi-output device
- Check audio sources for simultaneously loopback
- Select your
Multi-output device
- prepare AWS Account and commandline profile
- grant to access Amazon Transcribe and Amazon Translate
$ export AWS_ACCESS_KEY_ID=${REPLACE_YOUR_ACCESS_KEY_ID}
$ export AWS_SECRET_ACCESS_KEY=${REPLACE_YOUR_AWS_SECRET_ACCESS_KEY}
$ npm install
- run
start.sh
- web browser opened and connected to local server automatically
- play your audio source
- Enjoy it
- If you want to change values, open and edit
index.js
file - Default values are
- Audio source language is en-US by default
- Target translated language is ko-KR by default.
- And AWS Seoul region(ap-northeast-2) is used.
- Check BlackHole audio source index (BlackHole 2ch)
$ ffmpeg -f avfoundation -list_devices true -i ''
- open
start.sh
- replace
$AUDIO_DEVICE_ID
for your BkackHole audio source index
- Amazon-Transcribe-Streaming-Live-Subtitling
- Real-time Audio to Text Transcription with Amazon Transcribe and WebSockets in Node.js
MIT-0