Skip to content

Commit

Permalink
Replace references to tts.py with aiy.audio.say.
Browse files Browse the repository at this point in the history
This change removes the duplicate tts.py. All references to say or
create_say in src/main.py have been replaced with aiy.audio.say.
  • Loading branch information
enetor committed Jul 19, 2017
1 parent ba64d80 commit 7f7fb05
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 7f7fb05

Please sign in to comment.