base.py 447 B

123456789101112131415161718192021222324252627
  1. # -*- coding: utf-8 -*-
  2. from __future__ import division
  3. from ..__load__ import *
  4. import subprocess
  5. import threading
  6. import pyaudio
  7. class Base(threading.Thread):
  8. def __init__(self, **kwargs):
  9. super(Base, self).__init__()
  10. self.logger = Demeter.logger
  11. def init(self, mouth):
  12. self.mouth = mouth
  13. def play(self):
  14. pass
  15. def play_block(self):
  16. pass
  17. def stop(self):
  18. pass
  19. def is_playing(self):
  20. return False