harmoni_face.face_service

Module Contents

Classes

NoseService

Nose service

EyesService

Eyes service

MouthService

Mouth service

Functions

main()

Set names, collect params, and give service to server

class harmoni_face.face_service.NoseService(name, param_nose, face)

Bases: harmoni_common_lib.service_manager.HarmoniServiceManager

Nose service

do(self, data)

Do expression of nose in web face

Parameters

data ([str]) – stringified json from tts results

Returns

whether SUCCESS of FAIL message (str): result message

Return type

response (int)

send_face_nose_request(self)

Send the request to the web page

class harmoni_face.face_service.EyesService(name, param_eyes, face)

Bases: harmoni_common_lib.service_manager.HarmoniServiceManager

Eyes service

do(self, data)

Do expression of eyes in web face

Parameters

data ([str]) – stringified json from tts results

Returns

whether SUCCESS of FAIL message (str): result message

Return type

response (int)

send_face_eyes_request(self)

Send the request to the web page

_get_gaze_data(self, data)

Get target gaze data

class harmoni_face.face_service.MouthService(name, param_mouth, face)

Bases: harmoni_common_lib.service_manager.HarmoniServiceManager

Mouth service

do(self, data)

Do expression in web face

Parameters

data ([str]) – stringified json from tts results

Returns

whether SUCCESS of FAIL message (str): result message

Return type

response (int)

send_face_mouth_request(self)

Send the request to the web page

_get_viseme_data(self, data)

Get the validated data of the face

harmoni_face.face_service.main()

Set names, collect params, and give service to server