-
add in the root of the project (i.e., the same level where
pom.xmlis located) a file namedapiproxy.config -
put inside the credentials that you received from [email protected] (put the quotes "")
email: "[email protected]" apiKey: "YOUR_KEY"These are your credentials to invoke the APIs.
The token credits are charged as follows:
- 1 token credit per 1 character for Googlel "Standard" Text-to-Speech.
- 4 token credit per 1 character for Google "WaveNet" and "Neural2" Text-to-Speech.
- 1 token credit per 1 character for OpenAI Text-to-Text.
- 1 token credit per 1 token for OpenAI Chat Completions (as determined by OpenAI, charging both input and output tokens).
There is a free TTS service available for testing purposes. You will see this in the nz.ac.auckland.se206.speech.FreeTextToSpeech class. The voice here is not as good as the Google and OpenAI TTS services, but it is free and can be used for testing purposes.
You will see an example of this in the ChatController class.
-
add in the root of the project (i.e., the same level where
pom.xmlis located) a file namedcodestyle.config -
put inside the credentials that you received from [email protected] (put the quotes "")
email: "[email protected]" accessToken: "YOUR_KEY"
these are your credentials to invoke gradestyle
./mvnw clean javafx:run
./mvnw clean javafx:run@debug then in VS Code "Run & Debug", then run "Debug JavaFX"
./mvnw clean compile exec:java@style