Skip to content

Commit 96924ff

Browse files
committed
update readme - speech instructions
1 parent 4200f6d commit 96924ff

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![GitHub](https://img.shields.io/github/license/Barqawiz/IntelliJava?style=for-the-badge)](https://opensource.org/licenses/Apache-2.0)
55

66

7-
Intelligent java (IntelliJava) is the ultimate tool for Java developers looking to integrate with the latest language models and deep learning frameworks. The library provides a simple and intuitive API with convenient methods for sending text input to models like GPT-3 and DALL·E, and receiving generated text or images in return. With just a few lines of code, you can easily access the power of cutting-edge AI models to enhance your projects.
7+
Intelligent java (IntelliJava) is the ultimate tool for Java developers looking to integrate with the latest language models and deep learning frameworks. The library provides a simple and intuitive API with convenient methods for sending text input to models like GPT-3 and DALL·E, and receiving generated text, speech or images in return. With just a few lines of code, you can easily access the power of cutting-edge AI models to enhance your projects.
88

99
The supported models:
1010
- **OpenAI**: Access GPT-3 to generate text and DALL·E to generate images. OpenAI is preferred when you want quality results without tuning.
@@ -81,6 +81,11 @@ RemoteSpeechModel model = new RemoteSpeechModel(apiKey, SpeechModels.google);
8181
SpeechInput input = new SpeechInput.Builder("Hi, I am Intelligent Java.").build();
8282
byte[] decodedAudio = model.generateEnglishText(input);
8383
```
84+
Output:<br>
85+
```Java
86+
// save temporary audio file for testing
87+
AudioHelper.saveTempAudio(decodedAudio);
88+
```
8489

8590
For full example check the code inside sample_code project.
8691

0 commit comments

Comments
 (0)