Beispiel #1
0
 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)
Beispiel #2
0
def test_numbers():
    words = ['5', 'thousand', '1', 'hundred', '30']
    paths = ['vox/%s.wav' % w for w in words]
    assert voxify('5130') == paths
Beispiel #3
0
 def setup(self, sentence):
     super(VoxSound, self).setup(voxify(sentence),
                                 duration_scale=self.vox_duration_scale)