Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
amazon-translate-subtitles
Advanced tools
Library for translating subtitles using Amazon Translate
Translate subtitles embedded in video files using Amazon Translate
Currently supports mkv input and srt output.
npm install amazon-translate-subtitles
import { translateSubtitles } from 'amazon-translate-subtitles';
const video = createReadStream('my-video.mkv');
const thaiSubs = await translateSubtitles({ video, targetLanguage: 'th' });
console.log(thaiSubs);
/*
"
1
00:00:03,549 --> 00:00:05,290
... ยักษ์ใหญ่แห่งโรดส์!
2
00:00:05,757 --> 00:00:06,678
ไม่!
"
*/
Type: object
Type: object
Default: {}
Configuration options passed to the AWS SDK Translate client as overrides.
Type: boolean
Default: false
Turns the progress bar on or off.
Type: string
Default: 'en'
Source language for translating the subtitles from.
Type: string
Default: 'auto'
Source track type to select if multiple subtitle tracks of the same language are
available. Options are auto
, sdh
, and forced
.
Auto: The library will attempt to grab the standard subtitles.
SDH: Subtitles designed for those who are deaf and hard of hearing.
Forced: Displayed when the video has a secondary language being spoken.
Type: string
Target language for translating the subtitles to.
Type: ReadStream
Read Stream of the video file you would like to translate subtitles for.
FAQs
Library for translating subtitles using Amazon Translate
The npm package amazon-translate-subtitles receives a total of 1 weekly downloads. As such, amazon-translate-subtitles popularity was classified as not popular.
We found that amazon-translate-subtitles demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.