Skip to content

Commit 7640d03

Browse files
committed
update speak_reference_audio_path_or_name
1 parent bdfec7c commit 7640d03

4 files changed

Lines changed: 12 additions & 12 deletions

File tree

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ from parrots.indextts import IndexTTS2
199199
tts = IndexTTS2()
200200
text = "酒楼丧尽天良,开始借机竞拍房间,哎,一群蠢货。"
201201
tts.infer(
202-
speak_reference_audio_path='examples/voice_07.wav', # 说话人音色参考
202+
speak_reference_audio_path_or_name='examples/voice_07.wav', # 说话人音色参考
203203
text=text,
204204
output_path="gen.wav",
205205
emo_reference_audio_path="examples/emo_sad.wav", # 情感参考音频
@@ -217,7 +217,7 @@ from parrots.indextts import IndexTTS2
217217
tts = IndexTTS2()
218218
text = "酒楼丧尽天良,开始借机竞拍房间,哎,一群蠢货。"
219219
tts.infer(
220-
speak_reference_audio_path='examples/voice_07.wav',
220+
speak_reference_audio_path_or_name='examples/voice_07.wav',
221221
text=text,
222222
output_path="gen.wav",
223223
emo_reference_audio_path="examples/emo_sad.wav",
@@ -237,7 +237,7 @@ from parrots.indextts import IndexTTS2
237237
tts = IndexTTS2()
238238
text = "哇塞!这个爆率也太高了!欧皇附体了!"
239239
tts.infer(
240-
speak_reference_audio_path='examples/voice_10.wav',
240+
speak_reference_audio_path_or_name='examples/voice_10.wav',
241241
text=text,
242242
output_path="gen.wav",
243243
emo_vector=[0, 0, 0, 0, 0, 0, 0.45, 0], # 惊讶情感
@@ -256,7 +256,7 @@ from parrots.indextts import IndexTTS2
256256
tts = IndexTTS2()
257257
text = "快躲起来!是他要来了!他要来抓我们了!"
258258
tts.infer(
259-
speak_reference_audio_path='examples/voice_12.wav',
259+
speak_reference_audio_path_or_name='examples/voice_12.wav',
260260
text=text,
261261
output_path="gen.wav",
262262
emo_alpha=0.6,
@@ -277,7 +277,7 @@ tts = IndexTTS2()
277277
text = "快躲起来!是他要来了!他要来抓我们了!"
278278
emo_text = "你吓死我了!你是鬼吗?" # 独立的情感描述
279279
tts.infer(
280-
speak_reference_audio_path='examples/voice_12.wav',
280+
speak_reference_audio_path_or_name='examples/voice_12.wav',
281281
text=text,
282282
output_path="gen.wav",
283283
emo_alpha=0.6,

README_EN.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ from parrots.indextts import IndexTTS2
199199
tts = IndexTTS2()
200200
text = "The tavern is unconscionable, starting to auction rooms, ah, a bunch of fools."
201201
tts.infer(
202-
speak_reference_audio_path='examples/voice_07.wav', # Speaker timbre reference
202+
speak_reference_audio_path_or_name='examples/voice_07.wav', # Speaker timbre reference
203203
text=text,
204204
output_path="gen.wav",
205205
emo_reference_audio_path="examples/emo_sad.wav", # Emotion reference audio
@@ -217,7 +217,7 @@ from parrots.indextts import IndexTTS2
217217
tts = IndexTTS2()
218218
text = "The tavern is unconscionable, starting to auction rooms, ah, a bunch of fools."
219219
tts.infer(
220-
speak_reference_audio_path='examples/voice_07.wav',
220+
speak_reference_audio_path_or_name='examples/voice_07.wav',
221221
text=text,
222222
output_path="gen.wav",
223223
emo_reference_audio_path="examples/emo_sad.wav",
@@ -237,7 +237,7 @@ from parrots.indextts import IndexTTS2
237237
tts = IndexTTS2()
238238
text = "Wow! This drop rate is so high! I'm blessed by luck!"
239239
tts.infer(
240-
speak_reference_audio_path='examples/voice_10.wav',
240+
speak_reference_audio_path_or_name='examples/voice_10.wav',
241241
text=text,
242242
output_path="gen.wav",
243243
emo_vector=[0, 0, 0, 0, 0, 0, 0.45, 0], # Surprised emotion
@@ -256,7 +256,7 @@ from parrots.indextts import IndexTTS2
256256
tts = IndexTTS2()
257257
text = "Hide quickly! He's coming! He's coming to catch us!"
258258
tts.infer(
259-
speak_reference_audio_path='examples/voice_12.wav',
259+
speak_reference_audio_path_or_name='examples/voice_12.wav',
260260
text=text,
261261
output_path="gen.wav",
262262
emo_alpha=0.6,
@@ -277,7 +277,7 @@ tts = IndexTTS2()
277277
text = "Hide quickly! He's coming! He's coming to catch us!"
278278
emo_text = "You scared me to death! Are you a ghost?" # Independent emotion description
279279
tts.infer(
280-
speak_reference_audio_path='examples/voice_12.wav',
280+
speak_reference_audio_path_or_name='examples/voice_12.wav',
281281
text=text,
282282
output_path="gen.wav",
283283
emo_alpha=0.6,

examples/demo_indextts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313

1414
tts = IndexTTS2()
1515
text = "快躲起来!是他要来了!他要来抓我们了!"
16-
tts.infer(speak_reference_audio_path='wav/voice_12.wav', text=text, output_path="gen.wav", emo_alpha=0.6, use_emo_text=True,
16+
tts.infer(speak_reference_audio_path_or_name='wav/voice_12.wav', text=text, output_path="gen.wav", emo_alpha=0.6, use_emo_text=True,
1717
use_random=False, verbose=True)

examples/demo_indextts_with_emo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010

1111
tts = IndexTTS2()
1212
text = "他好帅啊,我好喜欢他!我们一起吃吃喝喝"
13-
tts.infer(speak_reference_audio_path='wav/voice_12.wav', text=text, output_path="happy.wav", emo_alpha=0.6, use_emo_text=True,
13+
tts.infer(speak_reference_audio_path_or_name='wav/voice_12.wav', text=text, output_path="happy.wav", emo_alpha=0.6, use_emo_text=True,
1414
use_random=False, verbose=True)

0 commit comments

Comments
 (0)