init
This commit is contained in:
5
src/asr.ts
Normal file
5
src/asr.ts
Normal 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
13
src/test/common.ts
Normal 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();
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user