echo.py 287 B

123456789101112
  1. import input_sources
  2. import base
  3. import output
  4. class Echo(base.BaseService):
  5. def call(self):
  6. tokens = []
  7. while input_sources.token_available():
  8. tokens.append(input_sources.get_token(0))
  9. if tokens:
  10. output.tts(' '.join(tokens))