feat: use str type spk_emb for easy recovery (#463)

This commit is contained in:
源文雨
2024-06-26 17:05:01 +09:00
committed by GitHub
parent a5ccaf84b1
commit 6aac04b329
8 changed files with 42 additions and 7 deletions
+2
View File
@@ -304,6 +304,8 @@
"outputs": [],
"source": [
"rand_spk = chat.sample_random_speaker()\n",
"print(rand_spk) # save it for later timbre recovery\n",
"\n",
"params_infer_code = ChatTTS.Chat.InferCodeParams(\n",
" spk_emb=rand_spk,\n",
")\n",
+2
View File
@@ -247,6 +247,8 @@
"outputs": [],
"source": [
"rand_spk = chat.sample_random_speaker()\n",
"print(rand_spk) # save it for later timbre recovery\n",
"\n",
"params_infer_code = ChatTTS.Chat.InferCodeParams(\n",
" spk_emb=rand_spk,\n",
")\n",