File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
core/com.intellijava.core/src/test/java/com/intellijava/core Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -100,4 +100,23 @@ public void testText2FemaleRemoteSpeecModel() {
100100 }
101101 }
102102 }
103+
104+ @ Test
105+ public void testText2FemaleRemoteSpeecModel2 () {
106+ SpeechInput input = new SpeechInput ("Hi, I am Intelligent Java." , Gender .MALE );
107+
108+ RemoteSpeechModel model = new RemoteSpeechModel (apiKey , SpeechModels .google );
109+
110+ try {
111+ byte [] decodedAudio = model .generateEnglishText (input );
112+ assert AudioHelper .saveTempAudio (decodedAudio ) == true ;
113+ AudioHelper .deleteTempAudio ();
114+ } catch (IOException e ) {
115+ if (apiKey .isBlank ()) {
116+ System .out .print ("testRemoteSpeech set the API key to run the test case." );
117+ } else {
118+ fail ("testRemoteSpeech failed with exception: " + e .getMessage ());
119+ }
120+ }
121+ }
103122}
You can’t perform that action at this time.
0 commit comments