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:
GetAudioFile
Obtains a system or user-uploaded audio file currently stored on Misty.
Example Code
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 withfalse
returns the audio file to your browser or REST client. Defaults tofalse
.
GetAudioList
Lists all audio files (default system files and user-uploaded files) currently stored on Misty.
GetImage
Obtains a system or user-uploaded image file.
Example Code
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 withfalse
displays the image in your browser or REST client immediately after the image is taken. Default istrue
.
GetImageList
Obtains a list of the images currently stored on Misty.
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 GetVideoRecording
command.
Example Code
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 withfalse
downloads the video file to your REST client. Default isfalse
.
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 GetVideoRecordingsList
command.
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 GetVideo
command.
Example Code
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 withfalse
downloads the video file to your REST client. Defaults tofalse
.
GetVideoRecordingList
Obtains a list of filenames for each video recording saved to Misty's local storage.
GetKnownFaces
Obtains a list of the names of faces on which Misty has been successfully trained.
GetConversations
Obtains a list of conversations stored in Misty's memory.
GetLoadedContexts
Obtains a list of loaded contexts used for NLP.
GetStates
Obtains a list of states used in your conversation.
Last updated