Download Latest Version IntelliJava 0.8.2.zip (2.9 MB)
Email in envelope

Get an email when there's a new version of Intelligent Java

Home / release0.7.0
Name Modified Size InfoDownloads / Week
Parent folder
IntelliJava 0.7.0.tar.gz 2023-02-17 2.8 MB
IntelliJava 0.7.0.zip 2023-02-17 2.8 MB
README.md 2023-02-17 2.2 kB
Totals: 3 Items   5.6 MB 0

Introducing the latest update to Intelligent Java with support for speech synthesis services. With the new update, IntelliJava provides a comprehensive suite of services for working with deep learning frameworks by leveraging the power of OpenAI's GPT-3 and Cohere language models, DALL·E for image generation, and Google AI's speech synthesis models.

Integration

Maven:

:::xml
<dependency>
    <groupId>io.github.barqawiz</groupId>
    <artifactId>intellijava.core</artifactId>
    <version>0.7.0</version>
</dependency>

Gradle:

implementation 'io.github.barqawiz:intellijava.core:0.7.0'

Code Example

Text to speech code - new release (2 steps):

:::java
// 1- initiate the remote speech model
RemoteSpeechModel model = new RemoteSpeechModel(apiKey, SpeechModels.google);

// 2- call generateEnglishText with any text
SpeechInput input = new SpeechInput.Builder("Hi, I am Intelligent Java.").build();
byte[] decodedAudio = model.generateEnglishText(input);

Output testing:

:::Java
// save temporary audio file for testing
AudioHelper.saveTempAudio(decodedAudio);

Language model code (2 steps):

:::java
// 1- initiate the remote language model
String apiKey = "<add-openai-api-key>";
RemoteLanguageModel langModel = new RemoteLanguageModel(apiKey, "openai");

// 2- call generateText with any command !
LanguageModelInput langInput = new LanguageModelInput.Builder("Summarize the plot of the 'Inception' movie in two sentences")
                .setModel("text-davinci-003").setTemperature(0.7f).setMaxTokens(50).build();
String resValue = langModel.generateText(langInput);

Image generation code (2 steps):

:::java
// 1- initiate the remote image model
RemoteImageModel imageModel = new RemoteImageModel(apiKey, "openai");

// 2- call generateImages with any command !
ImageModelInput imageInput = new ImageModelInput.Builder("teddy writing a blog in times square")
                .setNumberOfImages(2).setImageSize("1024x1024").build();
List<String> images = imageModel.generateImages(imageInput);
Source: README.md, updated 2023-02-17