From f10eef22114dacdca73f9c8e678b78803478e340 Mon Sep 17 00:00:00 2001 From: tuna2134 Date: Tue, 10 Sep 2024 14:10:37 +0000 Subject: [PATCH] fix bug --- sbv2_core/src/model.rs | 2 +- test.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sbv2_core/src/model.rs b/sbv2_core/src/model.rs index 1ed98ea..a93d5dd 100644 --- a/sbv2_core/src/model.rs +++ b/sbv2_core/src/model.rs @@ -36,7 +36,7 @@ pub fn synthesize( "tones" => tones, "language" => lang_ids, "bert" => bert, - "style_vector" => style_vector, + "style_vec" => style_vector, }?)?; let audio_array = outputs diff --git a/test.py b/test.py index f2308db..2124c65 100644 --- a/test.py +++ b/test.py @@ -2,7 +2,7 @@ import requests res = requests.post('http://localhost:3000/synthesize', json={ - "text": "初めて神戸に移り住んだ時に地元の人に教わった「阪急はオシャレして乗らなあかん。阪神はスリッパで乗っていい。JRは早い。」、好きすぎていまだに東京の人に説明するとき使ってる。" + "text": "おはようございます", }) with open('output.wav', 'wb') as f: f.write(res.content) \ No newline at end of file