def read_aloud(self, text, view=False, blocking=False):
    if (text.strip() == ''):
        return
    wav = self(text, view).cpu()
    wav = torch.cat((wav, torch.zeros([24000])), 0)
    if (not blocking):
        sounddevice.play(wav.numpy(), samplerate=48000)
    else:
        sounddevice.play(torch.cat((wav, torch.zeros([12000])), 0).numpy(), samplerate=48000)
        sounddevice.wait()
def read_aloud(self, text, view=False, blocking=False):
    if (text.strip() == ):
        return
    wav = self(text, view).cpu()
    wav = torch.cat((wav, torch.zeros([24000])), 0)
    if (not blocking):
        sounddevice.play(wav.numpy(), samplerate=48000)
    else:
        sounddevice.play(torch.cat((wav, torch.zeros([12000])), 0).numpy(), samplerate=48000)
        sounddevice.wait()