Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(5)  |  Derive(0)  |  Import(0)

src/l/i/lisa-client-0.1.0.12/lisa/client/service.py   lisa-client(Download)
    create_sound = yield utils.getProcessOutputAndValue('/usr/bin/pico2wave', path='/usr/bin', args=command_create)
    if os.path.isfile(soundfile):
        play_sound = yield lib.player.play('lisa-output', path='/tmp')
        os.remove(soundfile)
    else:

src/l/i/lisa-client-0.1.0.12/lisa/client/lib/listener.py   lisa-client(Download)
    def cancel_listening(self):
        log.msg("cancel_listening : player.play('pi-cancel')")
        player.play('pi-cancel')
        self.recording_state = False
 
        CONTENT_TYPE = 'raw;encoding=signed-integer;bits=16;rate=16000;endian=little'
        result = self.wit.post_speech(data=self.recorder.capture_audio(), content_type=CONTENT_TYPE)
        player.play('pi-cancel')
        log.msg(" * Contacting Google")
        if len(result) == 0:
            log.msg("cancel_listening : player.play('pi-cancel')")
            player.play('pi-cancel')

src/l/i/lisa-client-0.1.0.12/lisa/client/lib/recorder.py   lisa-client(Download)
            inp.setperiodsize(self.chunk)
            return inp
        player.play('pi-listening')
        loader = Loader(self.SLEEP_TIME * self.RECORD_SECONDS, 2)
        inp = setup_mic()