Change/Remove Assets

Here you can find a set of API calls to change the name of your assets and remove them if need be.

RenameVideoRecording

Renames an existing video recording.

Note: This command only renames a video recording that Misty has created. You cannot use this command to rename a user-uploaded video file.

Example Code

misty.rename_video_recording("myhomevideo","partyvideo")

Parameters

misty.rename_video_recording(self, oldName : str = None, newName : str = None)
  • OldName (string) - The current (old) filename of the video recording to rename, without the file type extension.

  • NewName (string) - The new filename to associate with the video recording, without the file type extension. The name of a video recording can only include uppercase and lowercase alphanumeric characters, hyphens, and underscores ([a-zA-Z0-9_-]). Do not supply a file type extension; the system automatically uses the .mp4 extension for Misty's video recordings.

DeleteAudio

Deletes audio files on your Misty

Example Code

misty.delete_audio("examplesong.wav")

Parameters

misty.delete_audio(self, fileName : str = None) -> Response:
  • FileName (string) - The name of the file to delete, including its file type extension.

DeleteImage

Deletes an image file from Misty's local storage.

Example Code

misty.delete_image("mybaddimage.png")

Note: This command cannot delete Misty's default image files.

Parameters

  • FileName (string) - The name of the file to delete, including its file type extension.

misty.delete_image(self, fileName : str = None) -> Response:

DeleteVideo

Deletes a user-uploaded video file from Misty's storage.

Example Code

misty.delete_video("myvideo.mp4")

Note: This command only deletes user-uploaded video assets. To delete a video recording that Misty has created, you must use the DeleteVideoRecording command.

Parameters

misty.delete_video(self, fileName : str = None) -> Response:
  • FileName (string) - The name of the video file to delete, with the file type extension.

DeleteVideoRecording

Deletes a video recording.

Note: This command only deletes video recordings that Misty has created. To delete a user-uploaded video asset, you must use the DeleteVideo command.

Example Code

misty.delete_video_recording("myhomevideo.mp4")

Parameters

  • Name (string) - The filename of the video to delete. Does not include the filetype extension.

misty.delete_video_recording(self, name : str = None) -> Response:

ForgetFaces

Removes records of trained faces from Misty's memory.

Example Code

misty.forget_faces("12142")

Parameters

misty.forget_faces(self, faceId : str = None)
  • FaceId (string) - Optional. The ID of the face to remove. If you do not pass in a value for this parameter, clears all trained faces from Misty's memory.

Last updated