Skip to content

Commit

Permalink
[TTS] fixed wrong pronunciations for r1.11. (#4677)
Browse files Browse the repository at this point in the history
* [TTS] fixed wrong pronunciations.

Signed-off-by: Xuesong Yang <[email protected]>

* incremented the version number to 22.08 as @blisc suggested.

Signed-off-by: Xuesong Yang <[email protected]>

* correct cmudict versions in world-wide places.

Signed-off-by: Xuesong Yang <[email protected]>
  • Loading branch information
XuesongYang authored and ericharper committed Sep 9, 2022
1 parent 7d8b8f0 commit ed03095
Show file tree
Hide file tree
Showing 10 changed files with 457 additions and 14 deletions.
2 changes: 1 addition & 1 deletion examples/tts/conf/fastpitch_align_44100.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ highfreq: null
window: hann

phoneme_dict_path: "scripts/tts_dataset_files/cmudict-0.7b_nv22.08"
heteronyms_path: "scripts/tts_dataset_files/heteronyms-052722"
heteronyms_path: "scripts/tts_dataset_files/heteronyms-030921"
whitelist_path: "nemo_text_processing/text_normalization/en/data/whitelist/lj_speech.tsv"

model:
Expand Down
2 changes: 1 addition & 1 deletion examples/tts/conf/fastpitch_align_v1.05.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ highfreq: 8000
window: hann

phoneme_dict_path: "scripts/tts_dataset_files/cmudict-0.7b_nv22.08"
heteronyms_path: "scripts/tts_dataset_files/heteronyms-052722"
heteronyms_path: "scripts/tts_dataset_files/heteronyms-030921"
whitelist_path: "nemo_text_processing/text_normalization/en/data/whitelist/lj_speech.tsv"

model:
Expand Down
2 changes: 1 addition & 1 deletion examples/tts/conf/mixer-tts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ highfreq: 8000
window: hann

phoneme_dict_path: "scripts/tts_dataset_files/cmudict-0.7b_nv22.08"
heteronyms_path: "scripts/tts_dataset_files/heteronyms-052722"
heteronyms_path: "scripts/tts_dataset_files/heteronyms-030921"
whitelist_path: "nemo_text_processing/text_normalization/en/data/whitelist/lj_speech.tsv"

model:
Expand Down
2 changes: 1 addition & 1 deletion examples/tts/conf/tacotron2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sup_data_path: null
sup_data_types: null

phoneme_dict_path: "scripts/tts_dataset_files/cmudict-0.7b_nv22.08"
heteronyms_path: "scripts/tts_dataset_files/heteronyms-052722"
heteronyms_path: "scripts/tts_dataset_files/heteronyms-030921"
whitelist_path: "nemo_text_processing/text_normalization/en/data/whitelist/lj_speech.tsv"


Expand Down
4 changes: 2 additions & 2 deletions nemo/collections/tts/models/fastpitch.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@

@dataclass
class G2PConfig:
_target_: str = "nemo_text_processing.g2p.modules.EnglishG2p"
_target_: str = "nemo.collections.tts.torch.g2ps.EnglishG2p"
phoneme_dict: str = "scripts/tts_dataset_files/cmudict-0.7b_nv22.08"
heteronyms: str = "scripts/tts_dataset_files/heteronyms-052722"
heteronyms: str = "scripts/tts_dataset_files/heteronyms-030921"
phoneme_probability: float = 0.5


Expand Down
449 changes: 446 additions & 3 deletions nemo/collections/tts/torch/g2ps.py

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions nemo/collections/tts/torch/tts_dataset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ tts_dataset:
add_blank_at: null
pad_with_space: True
g2p:
_target_: nemo_text_processing.g2p.modules.EnglishG2p
_target_: nemo.collections.tts.torch.g2ps.EnglishG2p
phoneme_dict: "scripts/tts_dataset_files/cmudict-0.7b_nv22.08"
heteronyms: "scripts/tts_dataset_files/heteronyms-052722"
heteronyms: "scripts/tts_dataset_files/heteronyms-030921"
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ sup_data_path: "sup_data"
sup_data_types: [ "align_prior_matrix", "pitch" ]
whitelist_path: "nemo_text_processing/text_normalization/en/data/whitelist/lj_speech.tsv"
phoneme_dict_path: "scripts/tts_dataset_files/cmudict-0.7b_nv22.08"
heteronyms_path: "scripts/tts_dataset_files/heteronyms-052722"
heteronyms_path: "scripts/tts_dataset_files/heteronyms-030921"

dataset:
_target_: nemo.collections.tts.torch.data.TTSDataset
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ sup_data_path: "sup_data"
sup_data_types: [ "align_prior_matrix", "pitch" ]
whitelist_path: "nemo_text_processing/text_normalization/en/data/whitelist/lj_speech.tsv"
phoneme_dict_path: "scripts/tts_dataset_files/cmudict-0.7b_nv22.08"
heteronyms_path: "scripts/tts_dataset_files/heteronyms-052722"
heteronyms_path: "scripts/tts_dataset_files/heteronyms-030921"

dataset:
_target_: nemo.collections.tts.torch.data.TTSDataset
Expand Down
2 changes: 1 addition & 1 deletion scripts/tts_dataset_files/ipa_cmudict-0.7b_nv22.08.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57525,7 +57525,7 @@ HURRAY həˈɹeɪ
HURRELL ˈhɔɹəl
HURRI ˈhɝi
HURRICANE ˈhɝəˌkeɪn
HURRICANE(1) ˈhʌɹəˌkeɪn
HURRICANE ˈhəɹəˌkeɪn
HURRICANE'S ˈhɝəˌkeɪnz
HURRICANES ˈhɝəˌkeɪnz
HURRIED ˈhɝid
Expand Down

0 comments on commit ed03095

Please sign in to comment.