def setup(self, sentence): try: super(VoxSound, self).setup(voxify(sentence.lower()), duration_const=self.vox_duration_const) except SoundException as e: raise VoxException(e.msg, e.filename, sentence)
def test_numbers(): words = ['5', 'thousand', '1', 'hundred', '30'] paths = ['vox/%s.wav' % w for w in words] assert voxify('5130') == paths
def setup(self, sentence): super(VoxSound, self).setup(voxify(sentence), duration_scale=self.vox_duration_scale)