原项目地址:MockingBird
from pathlib import Path
from mockingbirdforuse import MockingBird
mockingbird = MockingBird()
mockingbird.load_model(
Path("saved_models/encoder.pt"),
Path("saved_models/hifigan.pt"),
)
mockingbird.set_synthesizer(Path("azusa.pt"))
output = mockingbird.synthesize("主播不是你的电梓播放器", Path("record.wav")) # output type: BytesIO