test_sound.py 456 B

12345678910
  1. # new-version of our voicing pipeline
  2. # tts
  3. cache_root = './audio_cache'
  4. from AIVoifu.tts import tts
  5. model = tts.OpenJtalk()
  6. model.tts('こんにちは、私はあなたのお姉さんです。', f'{cache_root}/test.wav')
  7. # voice conversion
  8. from AIVoifu.voice_conversion import vc_inference as vc
  9. vc_model = vc.vits_vc_inference(force_load_model=True)
  10. vc_model.convert('./audio_cache/test.wav', 22050, from_file=True, save_path='./audio_cache/test_vc.wav')