apinge / MeloTTS.cpp

A lightweight pure C++ Text-to-Speech (TTS) pipeline with OpenVINO, supporting mixed English and Chinese languages.
Apache License 2.0
16 stars 4 forks source link

Add feature to disable bert as a switch #5

Closed apinge closed 2 weeks ago

apinge commented 2 weeks ago

As python code snippet in get_text_for_tts_infer

if getattr(hps.data, "disable_bert", False):
        bert = torch.zeros(1024, len(phone))
        ja_bert = torch.zeros(768, len(phone))

Required by the customer

apinge commented 2 weeks ago

Resolved in https://github.com/apinge/MeloTTS.cpp/commit/6595c43976e18d71e12fdc4dda179b238eaf4658