Views
No views yet
pip install TTS1from scipy.io.wavfile import write
2from TTS.tts.configs.xtts_config import XttsConfig
3from TTS.tts.models.xtts import Xtts
4
5config = XttsConfig()
6config.load_json("intronhealth/afro-tts/config.json")
7model = Xtts.init_from_config(config)
8model.load_checkpoint(config, checkpoint_dir="intronhealth/afro-tts/", eval=True)
9model.cuda()
10
11outputs = model.synthesize(
12 "Abraham said today is a good day to sound like an African.",
13 config,
14 speaker_wav="audios/reference_accent.wav",
15 gpt_cond_len=3,
16 language="en",
17)
18
19write("audios/output.wav", 24000, outputs['wav'])
20
21@misc{ogun20241000,
title={1000 African Voices: Advancing inclusive multi-speaker multi-accent speech synthesis},
author={Sewade Ogun and Abraham T. Owodunni and Tobi Olatunji and Eniola Alese and Babatunde Oladimeji and Tejumade Afonja and Kayode Olaleye and Naome A. Etori and Tosin Adewumi},
year={2024},
eprint={2406.11727},
archivePrefix={arXiv},
primaryClass={id='eess.AS' full_name='Audio and Speech Processing' is_active=True alt_name=None in_archive='eess' is_general=False description='Theory and methods for processing signals representing audio, speech, and language, and their applications. This includes analysis, synthesis, enhancement, transformation, classification and interpretation of such signals as well as the design, development, and evaluation of associated signal processing systems. Machine learning and pattern analysis applied to any of the above areas is also welcome. Specific topics of interest include: auditory modeling and hearing aids; acoustic beamforming and source localization; classification of acoustic scenes; speaker separation; active noise control and echo cancellation; enhancement; de-reverberation; bioacoustics; music signals analysis, synthesis and modification; music information retrieval; audio for multimedia and joint audio-video processing; spoken and written language modeling, segmentation, tagging, parsing, understanding, and translation; text mining; speech production, perception, and psychoacoustics; speech analysis, synthesis, and perceptual modeling and coding; robust speech recognition; speaker recognition and characterization; deep learning, online learning, and graphical models applied to speech, audio, and language signals; and implementation aspects ranging from system architecture to fast algorithms.'}
}