Skip to content

Commit

Permalink
Improve TTS quality (google#105)
Browse files Browse the repository at this point in the history
This was discovered on the MagPi forums. Fixes google#101.
  • Loading branch information
drigz authored Jul 21, 2017
1 parent 15971cc commit 2a0f213
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/aiy/_drivers/_tts.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ def say(player, words, eq_filter=None, lang='en-US'):

os.close(fd)

words = '<volume level="60"><pitch level="130">%s</pitch></volume>' % words

try:
subprocess.call(['pico2wave', '--lang', lang, '-w', raw_wav, words])
subprocess.call(['play', raw_wav, '--no-show-progress', '--guard'])
Expand Down

0 comments on commit 2a0f213

Please sign in to comment.