An open API service indexing awesome lists of open source software.

https://github.com/lanseria/media-srt

通过腾讯云语音识别工具与Electron + Vitejs + Vue3 + Pinia.js 等完成的桌面端媒体字幕识别修正软件Through Tencent cloud voice recognition tool and Electron + Vitejs + Vue3 + Pinia. Js and other completed desktop media subtitle recognition correction software
https://github.com/lanseria/media-srt

electron srt subtitles typescript vue3

Last synced: over 1 year ago
JSON representation

通过腾讯云语音识别工具与Electron + Vitejs + Vue3 + Pinia.js 等完成的桌面端媒体字幕识别修正软件Through Tencent cloud voice recognition tool and Electron + Vitejs + Vue3 + Pinia. Js and other completed desktop media subtitle recognition correction software

Awesome Lists containing this project

README

          

# MediaSrt 媒体字幕识别分割生成器(桌面版)

## feature 功能

- 识别音视频中的文字并转译成字幕软件
- 可修正自动转译的文字
- 使用腾讯云识别 API 请得到相关配置
- 使用外置 ffmpeg 与 ffprobe 请配置好全局命令

## Global npmrc config for china

```.npmrc
ELECTRON_MIRROR=https://npm.taobao.org/mirrors/electron/v
ELECTRON_BUILDER_BINARIES_MIRROR=http://npm.taobao.org/mirrors/electron-builder-binaries/
```

## 开发使用

```sh
# 安装包
yarn install

# 使用开发
yarn dev

# 打包发布
yarn build
```

## 开发过程

[​DOING: 视频字幕识别与分割 ​](https://enjqkboeqf.feishu.cn/mindnotes/bmncnxAjFhPov4m0UISK01EMJAh)

## 截图

![](./doc/tencent-config.png)
![](./doc/upload-media.png)
![](./doc/split-srt.png)

## Template by⚡Vite + Electron & Esbuild Template

This template is used to build vite + electron projects.

**NOTE:** Main process is built with esbuild. After some modifications, it currently supports [`emitDecoratorMetadata`](https://www.typescriptlang.org/tsconfig#emitDecoratorMetadata).

### Motivation

In the past, I've been building desktop clients with [vue](https://v3.vuejs.org/) + [vue-cli-plugin-electron-builder](https://github.com/nklayman/vue-cli-plugin-electron-builder), and they work very well. But as the project volume grows, webpack-based build patterns become slower and slower.

The advent of [vite](https://vitejs.dev/) and [esbuild](https://esbuild.github.io/) greatly improved the development experience and made me feel lightning fast ⚡.

It took me a little time to extract this template and thank you for using it.

### How to use

- Click the [Use this template](https://github.com/ArcherGu/fast-vite-electron/generate) button (you must be logged in) or just clone this repo.
- In the project folder:

```bash
# install dependencies
yarn # npm install

# run in developer mode
yarn dev # npm run dev

# build
yarn build # npm run build
```

### Relative

My blog post:

- [极速 DX Vite + Electron + esbuild](https://archergu.me/posts/vite-electron-esbuild)
- [用装饰器给 Electron 提供一个基础 API 框架](https://archergu.me/posts/electron-decorators)