is an option for functions like VideoGenerator that specifies the location of the resulting asset.
GeneratedAssetLocation
is an option for functions like VideoGenerator that specifies the location of the resulting asset.
Details
- Typical settings include:
-
Automatic automatic setting File[…] or "file" storing in a local file LocalObject[…] or "LocalObject" storing in a local object CloudObject[…] or "CloudObject" storing in a cloud object "CloudObjectPublic" storing in a cloud object with permission set to public "dir/" storing under the directory dir, using an automatic file name None storing in memory when possible - In GeneratedAssetLocation"dir/", if the directory "dir" already exists then the trailing path name separator is optional.
- Use GeneratedAssetFormat to specify the format of the resulting asset.
Examples
open all close allBasic Examples (1)
Specify the location of the generated asset in VideoGenerator:
VideoGenerator[RandomImage[], GeneratedAssetLocation -> "random.mp4"]Scope (5)
Specify the location of the generated asset using a File object:
VideoGenerator[RandomImage[], GeneratedAssetLocation -> File["random.mp4"]]Specify the location of the generated asset using a LocalObject:
VideoGenerator[RandomImage[], GeneratedAssetLocation -> LocalObject["Video"]]The resulting LocalObject will contain a video file:
FileFormat@LocalObject["Video"]Specify the location of the generated asset using a CloudObject:
VideoGenerator[RandomImage[], GeneratedAssetLocation -> CloudObject["Video"]]The resulting LocalObject will contain a video file:
FileFormat@CloudObject["Video"]Specify a directory for the generated asset:
VideoGenerator[RandomImage[], GeneratedAssetLocation -> $WolframDocumentsDirectory]The resulting asset will be created in the specified directory using an automatically generated file name:
Information[%, "ResourcePath"]Use None to generate a result that doesn't rely on an external asset:
SpeechSynthesize["Hello", GeneratedAssetLocation -> None]Not all functions support GeneratedAssetLocationNone:
VideoGenerator[RandomImage[], GeneratedAssetLocation -> None]Properties & Relations (1)
The automatic location for the generated asset depends on the specific function.
For Video-related functions, assets will be generated in the "Video" directory under $WolframDocumentsDirectory:
FileNameJoin[{$WolframDocumentsDirectory, "Video"}]
v = VideoGenerator[RandomImage[], GeneratedAssetLocation -> Automatic];
Information[v, "ResourcePath"]For Audio-related functions, assets will be generated in the "Audio" directory under $WolframDocumentsDirectory:
FileNameJoin[{$WolframDocumentsDirectory, "Audio"}]
a = SpeechSynthesize["Hello", GeneratedAssetLocation -> Automatic];
Information[a, "ResourcePath"]Related Guides
Text
Wolfram Research (2020), GeneratedAssetLocation, Wolfram Language function, https://reference.wolfram.com/language/ref/GeneratedAssetLocation.html (updated 2022).
CMS
Wolfram Language. 2020. "GeneratedAssetLocation." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2022. https://reference.wolfram.com/language/ref/GeneratedAssetLocation.html.
APA
Wolfram Language. (2020). GeneratedAssetLocation. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/GeneratedAssetLocation.html
BibTeX
@misc{reference.wolfram_2026_generatedassetlocation, author="Wolfram Research", title="{GeneratedAssetLocation}", year="2022", howpublished="\url{https://reference.wolfram.com/language/ref/GeneratedAssetLocation.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_generatedassetlocation, organization={Wolfram Research}, title={GeneratedAssetLocation}, year={2022}, url={https://reference.wolfram.com/language/ref/GeneratedAssetLocation.html}, note=[Accessed: 12-June-2026]}