Giter VIP home page Giter VIP logo

Comments (5)

zz12375 avatar zz12375 commented on May 17, 2024
  1. You are right, the examples in genset_examples.tsv is not produced by prepare_phn2ltr_librilm.sh. (Actually prepare_phn2ltr_librilm.sh is organized ONLY for producing phone-letter data for pre-training SpeechLM-P model.)
    The difference is: The T2U generator uses 41 mono phones, while SpeechLM-P model uses 300+ word-position-dependent phones. (The former can be easily merged to the latter by Kaldi. This inconsistency is just due to the division of work among different people.)

  2. The phonemes for the T2U generator are not up-sampled, because the T2U generator will predict the duration information. The probability of inserting silence was indeed set to 0.25. Note that the probability is "silence between words" instead of "silence between phones", so when you calculate the phones' probability, it is less than 0.25.

  3. To prepare the phoneme sequence for the inference of the T2U generator, please use speechlm/data_process/phoneize_with_sil.py, with the input of a word-level text and a word-to-phone lexicon (see readme.md). e.g.
    python speechut/data_process/phoneize_with_sil.py -i librilm.wrd -o librilm.phn --lexicon lexicon.lst --surround -s 0.25

Hope the above information could help you.

from speecht5.

cwang621 avatar cwang621 commented on May 17, 2024

Thanks a lot, that is really helpful. But I have another question.
Phonemes need to be converted to idx (eg. AH B -> 1 2). This step is achieved through the vocabulary dict.PHN.txt. Would you mind sharing this PHN2phh vocabulary? dataset/LibriSpeech/fast_phone2unit only contains dict.km.txt and dict.phn.txt, which is not enough for generating genset_examples.tsv.

from speecht5.

cwang621 avatar cwang621 commented on May 17, 2024

Thanks a lot, that is really helpful. But I have another question. Phonemes need to be converted to idx (eg. AH B -> 1 2). This step is achieved through the vocabulary dict.PHN.txt. Would you mind sharing this PHN2phh vocabulary? dataset/LibriSpeech/fast_phone2unit only contains dict.km.txt and dict.phn.txt, which is not enough for generating genset_examples.tsv.

I think The CMU Pronouncing Dictionary is required. There are no more questions.

from speecht5.

zz12375 avatar zz12375 commented on May 17, 2024

Sorry for the late response. dataset/LibriSpeech/fast_phone2unit contains both dict.PHN.txt and dict.phn.txt, which stand for symbol and idx respectively. The two files are aligned line by line (e.g. the same line in two files means the same phones). So I think they are sufficient to convert the phone symbols generated by speechut/data_process/phoneize_with_sil.py to numerical IDs.

from speecht5.

cwang621 avatar cwang621 commented on May 17, 2024

I found out why I can not find both dict.phn.txt and dict.PHN.txt in dataset/LibriSpeech/fast_phone2unit.
This is because the suffix of the windows system is not case sensitive (dict.phn.txt and dict.PHN.txt are the same). When I download the code and unzip it on windows system, overwriting happens, but this problem does not happen on linux system.
Thanks again for your response. I have reproduced the T2U generator successfully.

from speecht5.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.