Yurii Paniv commited on
Commit
c00658c
1 Parent(s): 5fa927d

#12 Fix incorrect example

Browse files
Files changed (1) hide show
  1. README.md +4 -4
README.md CHANGED
@@ -57,12 +57,12 @@ pip install git+https://github.com/robinhad/ukrainian-tts.git
57
  ```
58
  2. Run a code snippet:
59
  ```python
60
- from ukrainian_tts.tts import TTS, Voices, StressOption
61
 
62
- tts = TTS()
63
  with open("test.wav", mode="wb") as file:
64
- _, text = tts.tts("Привіт", Voices.Olena.value, StressOption.Dictionary.value, file)
65
- print("Accented text:", text)
66
  ```
67
 
68
  ## Run manually:
57
  ```
58
  2. Run a code snippet:
59
  ```python
60
+ from ukrainian_tts.tts import TTS, Voices, Stress
61
 
62
+ tts = TTS(use_cuda=False)
63
  with open("test.wav", mode="wb") as file:
64
+ _, text = tts.tts("Привіт", Voices.Dmytro.value, Stress.Model.value, file)
65
+ print("Accented text:", text)
66
  ```
67
 
68
  ## Run manually: