Skip to content

Commit

Permalink
[stable] tts example update
Browse files Browse the repository at this point in the history
  • Loading branch information
sakharovaan committed Nov 13, 2021
1 parent 80a2ba2 commit 7eea2d3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,7 @@

Интересные идеи
1. Катра -- кошка. Кошки боятся собак, гоняются за мышами, любят сидеть в коробках, ещё просят часто чтобы их покормили и куда-то выпустили
2. Ещё кошки мурчат, шипят, если очень злые -- воят. Ещё они иногда хотят играть и ласки.
2. Ещё кошки мурчат, шипят, если очень злые -- воят. Ещё они иногда хотят играть и ласки.
3. Кошки балдеют от кошачьей мяты и валерьянки
4. Кошки следят за птицами
5. Кошки умываются, вылизывая себя
6 changes: 6 additions & 0 deletions tts.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,19 @@
print (rate) #printing current voice rate
engine.setProperty('rate', 150) # setting up new voice rate

volume = engine.getProperty('volume') #getting to know current volume level (min=0 and max=1)
print (volume) #printing current volume level
engine.setProperty('volume',0.5) # setting up volume level between 0 and 1

index = 0
for voice in voices:
print(f'index-> {index} -- {voice.name} -- {voice.id}')
index +=1


engine.setProperty('voice', 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech\Voices\Tokens\Vocalizer Expressive milena premium-high 22kHz')
engine.startLoop()

engine.say('<pitch middle="5">Саша, пора уже ложиться!</pitch>')
engine.runAndWait()
engine.stop()
Expand Down

0 comments on commit 7eea2d3

Please sign in to comment.