trigger.tools.face_mocap.a2f

Simple api handler for Audio2Face.

Attributes

LOG

USD_FILE

Classes

A2F

Functions

process_wav_file(wav_file_path[, export_path, overwrite])

Convenience function to process the wav file through A2F.

Module Contents

class A2F
check_service_status()

Check if the service is up and running by making a simple HTTP request.

connect()

Establish the connection to the Audio2Face service.

export_json(file_path, blendshape_solver=None, conn=None)

Export the blendshape solvers to a json file.

get_a2f_player_instances(conn=None)
get_blendshape_solvers(conn=None)

Get the blendshape solvers from the a2f scene.

get_tracks(conn=None, a2f_player=None)

Get the tracks from the currently set root.

launch_a2f()

Launch Audio2Face.

load_file(file_path, conn=None)
set_root_path(root_path, a2f_player=None, conn=None)

Set the root path to the a2f player.

Args:

root_path (str): Root path to player. a2f_player (str): Name of the a2f player. If not specified, the first player will be used. conn (http.client.HTTPConnection): Connection to the Audio2Face service. If not specified, a new connection will be established.

set_track(track_name, conn=None, a2f_player=None)

Set the track to the player.

stop_a2f()

Stop the Audio2Face service.

wait_until_ready()

Wait until the Audio2Face service is ready.

process_wav_file(wav_file_path, export_path=None, overwrite=False)

Convenience function to process the wav file through A2F.

Args:

wav_file_path (str): Path to the wav file. export_path (str): Path to export the json file. If not specified, the json file will be exported to the same directory with the wav file.

LOG
USD_FILE