set tts default speed to 1.0x
| | |
| | | sentence, |
| | | output_path=sentence_audio_path, |
| | | voice=params.get("tts_voice", "zh-CN-YunjianNeural"), |
| | | speed=float(params.get("tts_speed", 1.2)), |
| | | speed=float(params.get("tts_speed", 1.0)), |
| | | ) |
| | | sentence_audio_paths.append(sentence_audio_path) |
| | | sentence_duration = media_duration_seconds(sentence_audio_path) |
| | |
| | | narration, |
| | | output_path=audio_path, |
| | | voice=params.get("tts_voice", "zh-CN-YunjianNeural"), |
| | | speed=float(params.get("tts_speed", 1.2)), |
| | | speed=float(params.get("tts_speed", 1.0)), |
| | | ) |
| | | audios.append(audio_path) |
| | | audio_artifact = artifact(audio_path, "audio", f"audio_{idx:02d}") |