Open yike5460 opened 2 months ago
The changes introduce enhancements to the tts-rust
text-to-speech application. The .gitignore
file is updated to ignore the tts-rust/target/
directory. The Cargo.toml
file adds two new dependencies: tempfile
and mp3-duration
. In src/main.rs
, the functionality for synchronizing audio output with subtitle timestamps is improved, including the creation of temporary files and additional helper functions for managing silence and audio duration.
File | Change Summary |
---|---|
.gitignore | Updated to ignore tts-rust/target/ while retaining sample_clips/ . |
tts-rust/Cargo.toml | Added dependencies: tempfile = "3.5.0" and mp3-duration = "0.1.10" . |
tts-rust/src/main.rs | Enhanced audio synchronization with subtitles; updated process_subtitle method, added add_silence , create_silent_mp3_frame , and get_mp3_duration methods. |
🐇 In the land of code where rabbits play,
New features hop in, brightening the day!
With silence added and timestamps aligned,
Our audio sings, perfectly timed.
Dependencies sprout like carrots in rows,
In the garden of code, watch how it grows! 🌱🎶
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
Bug Fixes
Chores
.gitignore
to include additional ignored files and directories.Cargo.toml
for improved functionality.