This commit is contained in:
2025-12-21 19:08:38 +08:00
commit 7d77c66edb
11 changed files with 1373 additions and 0 deletions

5
src/asr.ts Normal file
View File

@@ -0,0 +1,5 @@
import { QwenAsrRelatime } from "@kevisual/video-tools/src/asr/index.ts";
const asr = new QwenAsrRelatime({
token: "your_api_key_here",
});

13
src/test/common.ts Normal file
View File

@@ -0,0 +1,13 @@
import { useConfig } from "@kevisual/use-config";
import { QwenAsrRelatime } from "@kevisual/video-tools/src/asr/index.ts";
const config = useConfig();
export const token = config.BAILIAN_API_KEY
export const asr = new QwenAsrRelatime({
token,
onConnect: async () => {
await asr.start();
}
});