Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to generate the duration statistical info, like test_wavs/*.npy file. #6

Open
CMsmartvoice opened this issue Feb 23, 2022 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@CMsmartvoice
Copy link
Owner

  1. The npy files in */test_wavs are generated by the MFA tool, but first its corresponding phoneme sequence has to be known.

  2. It is not limited to the above method, but any tool that can predict the duration of articulation can be used, such as the acoustic model of ASR.

  3. The above method can accurately estimate the duration information of the reference audio. For cloning, in fact, the accuracy of duration information is not so demanding, and the result of coarse estimation using manual methods can achieve the same effect. For example, using a speech spectrogram viewing tool, or other audio annotation tools, the duration of phonemes can be estimated audiovisually.

  4. The Style_Encoder in this model is equivalent to an audio frame encoder, where the final output of the network is related to the content only, with phoneme position information embedded in the results. Based on these temporal position encodings, a simple estimation of the phoneme duration of the reference audio can be performed using the Style_Encoder. Better yet, the Style_Encoder method does not require knowledge of the phoneme sequence corresponding to the audio.

    indexs = tf.cast(durindex*100, tf.int32)
    cc0 = tf.gather(self.cc_features0, 400+indexs)
    cc1 = tf.gather(self.cc_features1, 300+indexs)
    cc2 = tf.gather(self.cc_features2, 200+indexs)
    cc3 = tf.gather(self.cc_features3, 100+indexs)
    ccc = tf.concat([cc0, cc1, cc2, cc3], axis=-1)

Originally posted by @CMsmartvoice in #3 (comment)

@CMsmartvoice CMsmartvoice added the documentation Improvements or additions to documentation label Feb 23, 2022
@CMsmartvoice CMsmartvoice pinned this issue Feb 23, 2022
@Chopin68
Copy link

Chopin68 commented Mar 3, 2022

希望多个训练教程

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants