<span id="3dn8r"></span>
    1. <span id="3dn8r"><optgroup id="3dn8r"></optgroup></span><li id="3dn8r"><meter id="3dn8r"></meter></li>


        Text-to-Speech (TTS) with Tacotron2 trained on LJSpeech

        This repository provides all the necessary tools for Text-to-Speech (TTS) with SpeechBrain using a Tacotron2 pretrained on LJSpeech.
        The pre-trained model takes in input a short text and produces a spectrogram in output. One can get the final waveform by applying a vocoder (e.g., HiFIGAN) on top of the generated spectrogram.


        Install SpeechBrain

        pip install speechbrain

        Please notice that we encourage you to read our tutorials and learn more about
        SpeechBrain.


        Perform Text-to-Speech (TTS)

        import torchaudio
        from speechbrain.pretrained import Tacotron2
        from speechbrain.pretrained import HIFIGAN
        # Intialize TTS (tacotron2) and Vocoder (HiFIGAN)
        tacotron2 = Tacotron2.from_hparams(source="speechbrain/tts-tacotron2-ljspeech", savedir="tmpdir_tts")
        hifi_gan = HIFIGAN.from_hparams(source="speechbrain/tts-hifigan-ljspeech", savedir="tmpdir_vocoder")
        # Running the TTS
        mel_output, mel_length, alignment = tacotron2.encode_text("Mary had a little lamb")
        # Running Vocoder (spectrogram-to-waveform)
        waveforms = hifi_gan.decode_batch(mel_output)
        # Save the waverform
        torchaudio.save('example_TTS.wav',waveforms.squeeze(1), 22050)

        If you want to generate multiple sentences in one-shot, you can do in this way:
        from speechbrain.pretrained import Tacotron2
        tacotron2 = Tacotron2.from_hparams(source="speechbrain/TTS_Tacotron2", savedir="tmpdir")
        items = [
        "A quick brown fox jumped over the lazy dog",
        "How much wood would a woodchuck chuck?",
        "Never odd or even"
        ]
        mel_outputs, mel_lengths, alignments = tacotron2.encode_batch(items)


        Inference on GPU

        To perform inference on the GPU, add run_opts={"device":"cuda"} when calling the from_hparams method.


        Training

        The model was trained with SpeechBrain.
        To train it from scratch follow these steps:

        1. Clone SpeechBrain:

        git clone https://github.com/speechbrain/speechbrain/

        1. Install it:

        cd speechbrain
        pip install -r requirements.txt
        pip install -e .

        1. Run Training:

        cd recipes/LJSpeech/TTS/tacotron2/
        python train.py --device=cuda:0 --max_grad_norm=1.0 --data_folder=/your_folder/LJSpeech-1.1 hparams/train.yaml

        You can find our training results (models, logs, etc) here.


        Limitations

        The SpeechBrain team does not provide any warranty on the performance achieved by this model when used on other datasets.


        About SpeechBrain

        • Website: https://speechbrain.github.io/
        • Code: https://github.com/speechbrain/speechbrain/
        • HuggingFace: https://huggingface.co/speechbrain/


        Citing SpeechBrain

        Please, cite SpeechBrain if you use it for your research or business.
        @misc{speechbrain,
        title={{SpeechBrain}: A General-Purpose Speech Toolkit},
        author={Mirco Ravanelli and Titouan Parcollet and Peter Plantinga and Aku Rouhe and Samuele Cornell and Loren Lugosch and Cem Subakan and Nauman Dawalatabad and Abdelwahab Heba and Jianyuan Zhong and Ju-Chieh Chou and Sung-Lin Yeh and Szu-Wei Fu and Chien-Feng Liao and Elena Rastorgueva and Fran?ois Grondin and William Aris and Hwidong Na and Yan Gao and Renato De Mori and Yoshua Bengio},
        year={2021},
        eprint={2106.04624},
        archivePrefix={arXiv},
        primaryClass={eess.AS},
        note={arXiv:2106.04624}
        }

        數據評估

        speechbrain/tts-tacotron2-ljspeech瀏覽人數已經達到578,如你需要查詢該站的相關權重信息,可以點擊"5118數據""愛站數據""Chinaz數據"進入;以目前的網站數據參考,建議大家請以愛站數據為準,更多網站價值評估因素如:speechbrain/tts-tacotron2-ljspeech的訪問速度、搜索引擎收錄以及索引量、用戶體驗等;當然要評估一個站的價值,最主要還是需要根據您自身的需求以及需要,一些確切的數據則需要找speechbrain/tts-tacotron2-ljspeech的站長進行洽談提供。如該站的IP、PV、跳出率等!

        關于speechbrain/tts-tacotron2-ljspeech特別聲明

        本站OpenI提供的speechbrain/tts-tacotron2-ljspeech都來源于網絡,不保證外部鏈接的準確性和完整性,同時,對于該外部鏈接的指向,不由OpenI實際控制,在2023年 5月 26日 下午6:12收錄時,該網頁上的內容,都屬于合規合法,后期網頁的內容如出現違規,可以直接聯系網站管理員進行刪除,OpenI不承擔任何責任。

        相關導航

        蟬鏡AI數字人

        暫無評論

        暫無評論...
        主站蜘蛛池模板: 三级片免费观看久久| 亚洲www在线观看| 又长又大又粗又硬3p免费视频| 免费涩涩在线视频网| 亚洲综合成人婷婷五月网址| 国产福利在线观看免费第一福利| 亚洲网址在线观看| 亚洲一级毛片免费在线观看| 亚洲国产成人久久77| 在线A级毛片无码免费真人| 亚洲av色香蕉一区二区三区 | 免费在线观看黄网| 特级毛片A级毛片100免费播放| 免费在线不卡视频| 久久久久久久久久久免费精品| 亚洲精品无码久久久影院相关影片 | 国产a视频精品免费观看| 国产 亚洲 中文在线 字幕| 最近免费中文字幕视频高清在线看| 亚洲精品无码av中文字幕| 四虎影视精品永久免费网站| 美女无遮挡拍拍拍免费视频| 亚洲国语精品自产拍在线观看| AV无码免费永久在线观看| 亚洲精品乱码久久久久久V| 亚洲国产精品成人一区| APP在线免费观看视频| 亚洲黄色在线播放| 国产在线观看免费完整版中文版 | 亚洲精品高清国产一线久久| 最近2019中文字幕免费直播| 亚洲中文无码mv| 亚洲综合色自拍一区| 免费观看美女用震蛋喷水的视频| 亚洲av日韩精品久久久久久a | 亚洲中文字幕久久精品无码喷水| 亚洲免费视频网站| 国产精品亚洲天堂| 亚洲伊人tv综合网色| 免费国产精品视频| 16女性下面无遮挡免费|