<commit_before># Setting up Sinhala TTS

## Festvox Environment

Run the following command.

```FESTIVAL_SUIT_PATH=/path_to_the_festvox_directory && ./third_party/festvox/setup.sh ```

## Voice

1. Download recordings from http://www.openslr.org/resources/30/si_lk.tar

2. Train TTS Voice 

	```./utils/build_festvox_voice.sh <path to wavs> si <path_to_build_voice>```
    
3. Synthesize one example sentence.

  ``` 
    echo 'ආයතනයක්වත්' |
    ../festival/bin/text2wave \
      -eval festvox/goog_si_unison_cg.scm \
      -eval '(voice_goog_si_unison_cg)' \
      > example.wav
  ```<commit_msg>Add command to download and extract wavs.<commit_after># Setting up Sinhala TTS

## Festvox Environment

Run the following command.

```FESTIVAL_SUIT_PATH=/path_to_the_festvox_directory && ./third_party/festvox/setup.sh ```

## Voice

1. Download recordings from http://www.openslr.org/resources/30/si_lk.tar
  ```
  mkdir -p wav && wget http://www.openslr.org/resources/30/si_lk.tar && tar xzf si_lk.tar -C wav/
  ```
2. Train TTS Voice 

  ```./utils/build_festvox_voice.sh <path to wavs> si <path_to_build_voice>```
    
3. Synthesize one example sentence.

  ``` 
    echo 'ආයතනයක්වත්' |
    ../festival/bin/text2wave \
      -eval festvox/goog_si_unison_cg.scm \
      -eval '(voice_goog_si_unison_cg)' \
      > example.wav
  ```
{'fraction_non_alphanumeric': 0.13813813813813813, 'fraction_numerical': 0.010510510510510511, 'mean_word_length': 3.3279220779220777, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 3, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6678030', 'n_tokens_mistral': 564, 'n_tokens_neox': 556, 'n_words': 100}