BowlerKernel
|
Public Member Functions | |
void | disconnect () |
int | speak (String text, float gainValue, boolean daemon, boolean join, ISpeakingProgress progress) |
Static Public Member Functions | |
static int | getNummberOfOptions () |
static CoquiDockerManager | get (double doubleValue) throws InvalidRemoteException, TransportException, InterruptedException, GitAPIException, IOException, URISyntaxException |
Private Member Functions | |
CoquiDockerManager (String voice) throws InterruptedException, InvalidRemoteException, TransportException, GitAPIException, IOException, URISyntaxException | |
Private Attributes | |
String | voice |
DockerHttpClient | client |
String | id |
DockerClient | dockerClient |
Container | forMe = null |
int | hostPort = 5002 |
int | containerPort = 5002 |
boolean | started =false |
int | voiceOption =0 |
Static Private Attributes | |
static HashMap< String, CoquiDockerManager > | managers = new HashMap<>() |
static List< String > | voiceOptions |
static List< String > | options = Arrays.asList("tts_models/en/vctk/vits", "tts_models/en/jenny/jenny") |
static List< String > | speakerNeeded = Arrays.asList("tts_models/en/vctk/vits") |
Definition at line 45 of file CoquiDockerManager.java.
|
private |
Definition at line 76 of file CoquiDockerManager.java.
References com.neuronrobotics.bowlerstudio.CoquiDockerManager.client, com.neuronrobotics.bowlerstudio.scripting.ScriptingEngine.cloneRepo(), com.neuronrobotics.bowlerstudio.CoquiDockerManager.containerPort, com.neuronrobotics.bowlerstudio.CoquiDockerManager.dockerClient, com.neuronrobotics.bowlerstudio.scripting.ScriptingEngine.fileFromGit(), com.neuronrobotics.bowlerstudio.CoquiDockerManager.forMe, com.neuronrobotics.bowlerstudio.CoquiDockerManager.hostPort, com.neuronrobotics.bowlerstudio.CoquiDockerManager.managers, com.neuronrobotics.bowlerstudio.scripting.ScriptingEngine.pull(), com.neuronrobotics.bowlerstudio.CoquiDockerManager.started, and com.neuronrobotics.bowlerstudio.CoquiDockerManager.voice.
Referenced by com.neuronrobotics.bowlerstudio.CoquiDockerManager.get().
void com.neuronrobotics.bowlerstudio.CoquiDockerManager.disconnect | ( | ) |
Definition at line 196 of file CoquiDockerManager.java.
References com.neuronrobotics.bowlerstudio.CoquiDockerManager.dockerClient.
|
static |
Definition at line 201 of file CoquiDockerManager.java.
References com.neuronrobotics.bowlerstudio.CoquiDockerManager.CoquiDockerManager(), com.neuronrobotics.bowlerstudio.CoquiDockerManager.managers, com.neuronrobotics.bowlerstudio.CoquiDockerManager.options, com.neuronrobotics.bowlerstudio.CoquiDockerManager.voiceOption, and com.neuronrobotics.bowlerstudio.CoquiDockerManager.voiceOptions.
Referenced by com.neuronrobotics.bowlerstudio.BowlerKernel.speak().
|
static |
Definition at line 72 of file CoquiDockerManager.java.
References com.neuronrobotics.bowlerstudio.CoquiDockerManager.options, and com.neuronrobotics.bowlerstudio.CoquiDockerManager.voiceOptions.
int com.neuronrobotics.bowlerstudio.CoquiDockerManager.speak | ( | String | text, |
float | gainValue, | ||
boolean | daemon, | ||
boolean | join, | ||
ISpeakingProgress | progress | ||
) |
Transform text to speech
text | The text that will be transformed to speech |
daemon | True The thread that will start the text to speech Player will be a daemon Thread False The thread that will start the text to speech Player will be a normal non daemon Thread |
join | True The current Thread calling this method will wait(blocked) until the Thread which is playing the Speech finish False The current Thread calling this method will continue freely after calling this method |
progress |
Implements com.neuronrobotics.bowlerstudio.ITTSEngine.
Definition at line 221 of file CoquiDockerManager.java.
References com.neuronrobotics.bowlerstudio.AudioPlayer.setAudio(), com.neuronrobotics.bowlerstudio.AudioPlayer.setGain(), com.neuronrobotics.bowlerstudio.AudioPlayer.setSpeakProgress(), com.neuronrobotics.bowlerstudio.CoquiDockerManager.speakerNeeded, com.neuronrobotics.bowlerstudio.CoquiDockerManager.voice, com.neuronrobotics.bowlerstudio.CoquiDockerManager.voiceOption, and com.neuronrobotics.bowlerstudio.CoquiDockerManager.voiceOptions.
Referenced by com.neuronrobotics.bowlerstudio.BowlerKernel.speak().
|
private |
Definition at line 60 of file CoquiDockerManager.java.
Referenced by com.neuronrobotics.bowlerstudio.CoquiDockerManager.CoquiDockerManager().
|
private |
Definition at line 68 of file CoquiDockerManager.java.
Referenced by com.neuronrobotics.bowlerstudio.CoquiDockerManager.CoquiDockerManager().
|
private |
Definition at line 65 of file CoquiDockerManager.java.
Referenced by com.neuronrobotics.bowlerstudio.CoquiDockerManager.CoquiDockerManager(), and com.neuronrobotics.bowlerstudio.CoquiDockerManager.disconnect().
|
private |
Definition at line 66 of file CoquiDockerManager.java.
Referenced by com.neuronrobotics.bowlerstudio.CoquiDockerManager.CoquiDockerManager().
|
private |
Definition at line 67 of file CoquiDockerManager.java.
Referenced by com.neuronrobotics.bowlerstudio.CoquiDockerManager.CoquiDockerManager().
|
private |
Definition at line 63 of file CoquiDockerManager.java.
|
staticprivate |
Definition at line 47 of file CoquiDockerManager.java.
Referenced by com.neuronrobotics.bowlerstudio.CoquiDockerManager.CoquiDockerManager(), and com.neuronrobotics.bowlerstudio.CoquiDockerManager.get().
|
staticprivate |
Definition at line 57 of file CoquiDockerManager.java.
Referenced by com.neuronrobotics.bowlerstudio.CoquiDockerManager.get(), and com.neuronrobotics.bowlerstudio.CoquiDockerManager.getNummberOfOptions().
|
staticprivate |
Definition at line 58 of file CoquiDockerManager.java.
Referenced by com.neuronrobotics.bowlerstudio.CoquiDockerManager.speak().
|
private |
Definition at line 69 of file CoquiDockerManager.java.
Referenced by com.neuronrobotics.bowlerstudio.CoquiDockerManager.CoquiDockerManager().
|
private |
Definition at line 59 of file CoquiDockerManager.java.
Referenced by com.neuronrobotics.bowlerstudio.CoquiDockerManager.CoquiDockerManager(), and com.neuronrobotics.bowlerstudio.CoquiDockerManager.speak().
|
private |
Definition at line 70 of file CoquiDockerManager.java.
Referenced by com.neuronrobotics.bowlerstudio.CoquiDockerManager.get(), and com.neuronrobotics.bowlerstudio.CoquiDockerManager.speak().
|
staticprivate |
Definition at line 49 of file CoquiDockerManager.java.
Referenced by com.neuronrobotics.bowlerstudio.CoquiDockerManager.get(), com.neuronrobotics.bowlerstudio.CoquiDockerManager.getNummberOfOptions(), and com.neuronrobotics.bowlerstudio.CoquiDockerManager.speak().