Skip to content

Commit fca1077

Browse files
committed
update Text2SpeechInput example
1 parent c797a6a commit fca1077

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Output:``` The average distance between the Moon and the Earth is about 238,855
9797
RemoteSpeechModel model = new RemoteSpeechModel(apiKey, SpeechModels.google);
9898

9999
// 2- call generateEnglishText with any text
100-
SpeechInput input = new SpeechInput.Builder("Hi, I am Intelligent Java.").build();
100+
Text2SpeechInput input = new Text2SpeechInput.Builder("Hi, I am Intelligent Java.").build();
101101
byte[] decodedAudio = model.generateEnglishText(input);
102102
```
103103
Output:

0 commit comments

Comments
 (0)