Package com.intellijava.core.wrappers
Class GoogleAIWrapper
java.lang.Object
com.intellijava.core.wrappers.GoogleAIWrapper
- All Implemented Interfaces:
SpeechModelInterface
Wrapper for Google speech services.
To use this wrapper:
1- Go to console.cloud.google.com.
2- Enable "Cloud Text-to-Speech API" from APIs Services.
3- Generate API key from APIs and services Credentials page.
- Author:
- github.com/Barqawiz
-
Constructor Summary
ConstructorDescriptionGoogleAIWrapper
(String apiKey) Constructs a new GoogleAIWrapper object with the API key. -
Method Summary
Modifier and TypeMethodDescriptiongenerateSpeech
(Map<String, Object> params) Generates speech from text using the Google speech service.
-
Constructor Details
-
GoogleAIWrapper
Constructs a new GoogleAIWrapper object with the API key.- Parameters:
apiKey
- the key generated from google console Credentials page
-
-
Method Details
-
generateSpeech
Generates speech from text using the Google speech service.- Specified by:
generateSpeech
in interfaceSpeechModelInterface
- Parameters:
params
- speech model input parameters.- Returns:
- BaseRemoteModel
- Throws:
IOException
- in case of communication errors.
-