Creating Snippets
Create code snippets with one click.
Last updated
Create code snippets with one click.
Last updated
Once you've added your models or voices to the library, you can create reusable code snippets using the "Create Snippets" button located at the bottom of the Model Library or Voice Library window.
Add at least one model or voice to your library (if you haven’t already)
Click the “Create Snippets” button
Snippets will be automatically generated and saved as C# files in your project (usually under Assets/AIDevKit/Snippets/
)
Once created, you can call your saved model or voice like this:
These snippets are especially useful for:
Auto-complete
Reducing errors
Keeping your AI calls consistent across your project