mirror of
https://git.mirrors.martin98.com/https://github.com/bytedance/deer-flow
synced 2025-08-17 12:05:53 +08:00
feat: use enegertic tts voice type
This commit is contained in:
parent
3d1d289dbd
commit
e586f5b31d
@ -16,7 +16,7 @@ def tts_node(state: PodcastState):
|
||||
tts_client = _create_tts_client()
|
||||
for line in state["script"].lines:
|
||||
tts_client.voice_type = (
|
||||
"BV002_streaming" if line.speaker == "male" else "BV001_streaming"
|
||||
"BV033_streaming" if line.speaker == "male" else "BV034_streaming"
|
||||
)
|
||||
result = tts_client.text_to_speech(line.text, speed_ratio=1.05)
|
||||
if result["success"]:
|
||||
|
Loading…
x
Reference in New Issue
Block a user