예제 #1
0
파일: audio.py 프로젝트: v1ckxy/pycozmo
def pycozmo_program(cli: pycozmo.client.Client):

    pkt = pycozmo.protocol_encoder.SetRobotVolume(50000)
    cli.conn.send(pkt)

    # A 22 kHz, 16-bit, mono file is required.
    cli.play_audio("hello.wav").wait_until_complete()
예제 #2
0
def pycozmo_program(cli: pycozmo.client.Client):

    pkt = pycozmo.protocol_encoder.SetRobotVolume(50000)
    cli.conn.send(pkt)

    cli.play_audio("hello.wav").wait_until_complete()