Skip to content

Commit

Permalink
Merge pull request google#107 from google/tts
Browse files Browse the repository at this point in the history
Replace references to tts.py with aiy.audio.say.
  • Loading branch information
enetor authored Jul 20, 2017
2 parents ba64d80 + 7f7fb05 commit bce53b9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 124 deletions.
2 changes: 1 addition & 1 deletion src/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def run(self, voice_command):
# HEX RGB color and respond with 'ok'
#
# actor.add_keyword(_('change to ocean blue'), \
# ChangeLightColor(say, "philips-hue", "Lounge Lamp", "0077be"))
# ChangeLightColor(say, "philips-hue", "Lounge Lamp", "0077be"))

class ChangeLightColor(object):

Expand Down
6 changes: 2 additions & 4 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
import action
import i18n
import speech
import tts

# =============================================================================
#
Expand Down Expand Up @@ -198,7 +197,7 @@ def do_assistant_library(args, credentials, player, status_ui):
env/bin/pip install google-assistant-library==0.0.2''')
sys.exit(1)

say = tts.create_say(player)
say = aiy.audio.say
actor = action.make_actor(say)

def process_event(event):
Expand Down Expand Up @@ -235,8 +234,7 @@ def process_event(event):

def do_recognition(args, recorder, recognizer, player, status_ui):
"""Configure and run the recognizer."""
say = tts.create_say(player)

say = aiy.audio.say
actor = action.make_actor(say)

if args.cloud_speech:
Expand Down
119 changes: 0 additions & 119 deletions src/tts.py

This file was deleted.

0 comments on commit bce53b9

Please sign in to comment.