BowlerKernel
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
com.neuronrobotics.bowlerstudio.CoquiDockerManager Class Reference
Inheritance diagram for com.neuronrobotics.bowlerstudio.CoquiDockerManager:
Inheritance graph
[legend]
Collaboration diagram for com.neuronrobotics.bowlerstudio.CoquiDockerManager:
Collaboration graph
[legend]

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, CoquiDockerManagermanagers = 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")
 

Detailed Description

Definition at line 45 of file CoquiDockerManager.java.

Constructor & Destructor Documentation

◆ CoquiDockerManager()

com.neuronrobotics.bowlerstudio.CoquiDockerManager.CoquiDockerManager ( String  voice) throws InterruptedException, InvalidRemoteException, TransportException, GitAPIException, IOException, URISyntaxException
private

Member Function Documentation

◆ disconnect()

void com.neuronrobotics.bowlerstudio.CoquiDockerManager.disconnect ( )

◆ get()

static CoquiDockerManager com.neuronrobotics.bowlerstudio.CoquiDockerManager.get ( double  doubleValue) throws InvalidRemoteException, TransportException, InterruptedException, GitAPIException, IOException, URISyntaxException
static

◆ getNummberOfOptions()

static int com.neuronrobotics.bowlerstudio.CoquiDockerManager.getNummberOfOptions ( )
static

◆ speak()

int com.neuronrobotics.bowlerstudio.CoquiDockerManager.speak ( String  text,
float  gainValue,
boolean  daemon,
boolean  join,
ISpeakingProgress  progress 
)

Transform text to speech

Parameters
textThe 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().

Here is the call graph for this function:

Member Data Documentation

◆ client

DockerHttpClient com.neuronrobotics.bowlerstudio.CoquiDockerManager.client
private

◆ containerPort

int com.neuronrobotics.bowlerstudio.CoquiDockerManager.containerPort = 5002
private

◆ dockerClient

DockerClient com.neuronrobotics.bowlerstudio.CoquiDockerManager.dockerClient
private

◆ forMe

Container com.neuronrobotics.bowlerstudio.CoquiDockerManager.forMe = null
private

◆ hostPort

int com.neuronrobotics.bowlerstudio.CoquiDockerManager.hostPort = 5002
private

◆ id

String com.neuronrobotics.bowlerstudio.CoquiDockerManager.id
private

Definition at line 63 of file CoquiDockerManager.java.

◆ managers

HashMap<String, CoquiDockerManager> com.neuronrobotics.bowlerstudio.CoquiDockerManager.managers = new HashMap<>()
staticprivate

◆ options

List<String> com.neuronrobotics.bowlerstudio.CoquiDockerManager.options = Arrays.asList("tts_models/en/vctk/vits", "tts_models/en/jenny/jenny")
staticprivate

◆ speakerNeeded

List<String> com.neuronrobotics.bowlerstudio.CoquiDockerManager.speakerNeeded = Arrays.asList("tts_models/en/vctk/vits")
staticprivate

◆ started

boolean com.neuronrobotics.bowlerstudio.CoquiDockerManager.started =false
private

◆ voice

String com.neuronrobotics.bowlerstudio.CoquiDockerManager.voice
private

◆ voiceOption

int com.neuronrobotics.bowlerstudio.CoquiDockerManager.voiceOption =0
private

◆ voiceOptions

List<String> com.neuronrobotics.bowlerstudio.CoquiDockerManager.voiceOptions
staticprivate
Initial value:
= Arrays.asList( "p225" , "p226" , "p227" , "p228" , "p229" , "p230" , "p231" , "p232" , "p233" , "p234" , "p236" , "p237" ,
"p238" , "p239" , "p240" , "p241" , "p243" , "p244" , "p245" , "p246" , "p247" , "p248" , "p249" , "p250" , "p251" ,
"p252" , "p253" , "p254" , "p255" , "p256" , "p257" , "p258" , "p259" , "p260" , "p261" , "p262" , "p263" , "p264" , "p265" , "p266" , "p267" , "p268" , "p269" , "p270" ,
"p271" , "p272" , "p273" , "p274" , "p275" , "p276" , "p277" , "p278" , "p279" , "p280" , "p281" , "p282" , "p283" , "p284" , "p285" , "p286" , "p287" , "p288" , "p292" ,
"p293" , "p294" , "p295" , "p297", "p298" , "p299" , "p300" , "p301" , "p302" , "p303" , "p304" , "p305" , "p306" , "p307" , "p308" , "p310" , "p311" , "p312" , "p313" ,
"p314" , "p316" , "p317" , "p318" , "p323" , "p326" , "p329" , "p330" , "p333" , "p334" , "p335" , "p336" , "p339" , "p340" , "p341" , "p343" , "p345" , "p347" , "p351" ,
"p360" , "p361" , "p362" , "p363" , "p364" , "p374" , "p376"
)

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().


The documentation for this class was generated from the following file: