feat: 将视频转写重构为纯文字异步语音识别
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
// Imported before Prisma so its engine cannot capture the project's live URL.
|
||||
const database = process.env.TEST_DATABASE_URL;
|
||||
if (database) {
|
||||
const url = new URL(database);
|
||||
if (
|
||||
!["localhost", "127.0.0.1"].includes(url.hostname) ||
|
||||
url.pathname !== "/douyin_asr_test"
|
||||
) {
|
||||
throw new Error("Only local douyin_asr_test database is permitted");
|
||||
}
|
||||
process.env.DATABASE_URL = database;
|
||||
}
|
||||
Reference in New Issue
Block a user