The samples are all self explanatory and are organized by the various ML model types here.
Java 11
Maven
Please set TIYARO_API_KEY environment variable. You can generate your API key from here.
When running from IDE, make sure to restart after you set the environment variable in your shell's profile.
From your IDE, import pom.xml as maven project.
mvn install
Then, open any package and run classes within the IDE to see outputs.
Alternately, you can also use the below command:
mvn compile exec:java -Dexec.cleanupDaemonThreads=false -Dexec.mainClass="ai.tiyaro.samples.audio_classification.LocalAudioInput"
and modify value of -Dexec.mainClass to try out different model types. Ex:
mvn compile exec:java -Dexec.cleanupDaemonThreads=false -Dexec.mainClass="ai.tiyaro.samples.recognition_classes.recognition_detect_moderation_labels.URLInput"