Get Assets

In this section you can find all of Misty's API calls related to fetching information about her stored assets. To display a list of assets in the output field in the Python Interface you will need to use the syntax shown in the example below:

from mistyPy.Robot import Robot

# Initialize Misty
misty = Robot()

# Get the list of videos
video_list = misty.get_video_list()

# Check if video list is retrieved successfully
if video_list is not None:
    # Print the list of videos
    print("List of Videos:")
    for video in video_list:
        print(video)
else:
    print("Failed to retrieve the video list.")

GetAudioFile

Obtains a system or user-uploaded audio file currently stored on Misty.

Example Code

circle-check

Parameters

  • FileName (string): The name of the audio file to get, including its file type extension.

  • Base64 (boolean): Optional. Sending a request with true returns the audio file data as a downloadable Base64 string. Sending a request with false returns the audio file to your browser or REST client. Defaults to false.

GetAudioList

Lists all audio files (default system files and user-uploaded files) currently stored on Misty.

circle-check

GetImage

Obtains a system or user-uploaded image file.

Example Code

circle-check

Parameters

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

  • Base64 (boolean) - Optional. Sending a request with true returns the image data as a downloadable Base64 string. Sending a request with false displays the image in your browser or REST client immediately after the image is taken. Default is true.

GetImageList

Obtains a list of the images currently stored on Misty.

circle-check

GetVideo

Obtains a user-uploaded video file currently stored on Misty.

Note: This command only obtains user-uploaded video assets. To obtain a video recording that Misty created, you must use the GetVideoRecordingarrow-up-right command.

Example Code

circle-check

Parameters

  • FileName (string) - The name of the video to obtain, with the file type extension.

  • Base64 (boolean) - Optional. Sending a request with true returns the video data as a Base64-encoded string. Sending a request with false downloads the video file to your REST client. Default is false.

GetVideoList

Obtains a list of the user-uploaded video assets saved to Misty's storage.

Note: This command only obtains a list of user-uploaded video assets. To obtain a list of video recordings that Misty created, you must use the GetVideoRecordingsListarrow-up-right command.

circle-check

GetVideoRecording

Downloads a video that Misty has created. Optionally, returns the video data as a Base64 string.

You can only use this command to download videos that Misty recorded. To get videos that you or another user has uploaded, use the GetVideoarrow-up-right command.

Example Code

circle-check

Tip: Misty records videos in .mp4 format. Video recordings have a maximum resolution of 3840 x 2160 pixels and can be up to 3 minutes long. A single video file can be up to 225 MB and can take several minutes to download.

Parameters

  • Name (string) - Optional. The filename of the video to download. If not supplied, defaults to misty_video.

  • Base64 (boolean) - Optional. Sending a request with true returns the video data as a Base64-encoded string. Sending a request with false downloads the video file to your REST client. Defaults to false.

GetVideoRecordingList

Obtains a list of filenames for each video recording saved to Misty's local storage.

circle-check

GetKnownFaces

Obtains a list of the names of faces on which Misty has been successfully trained.

circle-check

GetConversations

Obtains a list of conversations stored in Misty's memory.

circle-check

GetLoadedContexts

Obtains a list of loaded contexts used for NLP.

circle-check

GetStates

Obtains a list of states used in your conversation.

circle-check

Last updated