This file has been truncated. show original
from tempfile import NamedTemporaryFile
from subprocess import run, Popen, PIPE
__author__ = 'acushner'
out = '/sdcard/audio/Audio'
def upload_audio_to_misty(d, ip='', port=5555):
misty has a 3mb upload limit on audio files. this works around that.
give it a directory where your audio files are organized into folders,
and this will automatically upload them to misty using adb (android debug bridge).
it prepends folders to the name so the files are organized nicely on misty herself:
- ./music/mario/super_mario_theme.mp3 -> music--mario--super_mario_theme.mp3