Skip to content

Instantly share code, notes, and snippets.

View dmoosocool's full-sized avatar
🤔
what can i do?

DM|全渣攻城獅 dmoosocool

🤔
what can i do?
View GitHub Profile
@dmoosocool
dmoosocool / recorder.ts
Created March 26, 2021 08:13
use WebRTC, MediaRecorder, FFmpeg.
import { EventEmitter } from 'events'
import AudioRecorder from 'audio-recorder-polyfill'
import { createFFmpeg, FFmpeg, fetchFile } from '@ffmpeg/ffmpeg';
import autoSound from '@ASSETS/sounds/tts.mp3';
export enum RecorderStatus {
Inited = 1, // 初始化完成
PrevRecording, // 准备录制
@dmoosocool
dmoosocool / index.html
Created March 25, 2021 14:59
audio.mp3 concat to video.webm, use ffmpeg.wasm
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>audio.mp3 concat to video.webm</title>
</head>
<body>
<script src="https://unpkg.com/@ffmpeg/ffmpeg@0.9.5/dist/ffmpeg.min.js"></script>
@antfu
antfu / 📊 Weekly development breakdown
Last active November 20, 2023 10:25
📊 Weekly development breakdown
TypeScript 21 hrs 47 mins ████████████████▒░░░ 67.1%
Vue.js 6 hrs 21 mins ██████▓░░░░░░░░░░░░░ 19.6%
JSON 2 hrs 10 mins ████▒░░░░░░░░░░░░░░░ 6.7%
JavaScript 46 mins ███▒░░░░░░░░░░░░░░░░ 2.4%