generated from tailored/router-template
test
This commit is contained in:
parent
38b4e58124
commit
e638d7907a
@ -8,12 +8,14 @@ import fs from 'node:fs';
|
||||
const videoTestPath = path.join(process.cwd(), 'videos/my_speech_text.wav');
|
||||
const name = 'output-1746007775571.mp3';
|
||||
const videoTestPath2 = path.join(process.cwd(), 'build', name);
|
||||
const textPath = path.join(process.cwd(), 'build', '01-kevisual.md');
|
||||
const exampleAudio = fs.readFileSync(videoTestPath);
|
||||
// const exampleAudio = await response_0.blob();
|
||||
|
||||
const text = fs.readFileSync(textPath, 'utf-8');
|
||||
const client = await Client.connect('http://192.168.31.220:50000/');
|
||||
const result = await client.predict('/generate_audio', {
|
||||
tts_text: '梦里的一天结束了一个新的轮m,回梦里的一天结束了一个新的轮回梦里的一,,天结束了一个新的轮回,梦里的一天结束了一个新的轮回',
|
||||
// tts_text: '梦里的一天结束了一个新的轮m,回梦里的一天结束了一个新的轮回梦里的一,,天结束了一个新的轮回,梦里的一天结束了一个新的轮回',
|
||||
tts_text: text,
|
||||
mode_checkbox_group: '3s极速复刻',
|
||||
sft_dropdown: '',
|
||||
prompt_text: '在一无所知中,梦里的一天结束了一个新的轮回,便会开始。',
|
||||
|
Loading…
x
Reference in New Issue
Block a user