trigger.tools.face_mocap.a2f ============================ .. py:module:: trigger.tools.face_mocap.a2f .. autoapi-nested-parse:: Simple api handler for Audio2Face. Attributes ---------- .. autoapisummary:: trigger.tools.face_mocap.a2f.LOG trigger.tools.face_mocap.a2f.USD_FILE Classes ------- .. autoapisummary:: trigger.tools.face_mocap.a2f.A2F Functions --------- .. autoapisummary:: trigger.tools.face_mocap.a2f.process_wav_file Module Contents --------------- .. py:class:: A2F .. py:method:: check_service_status() Check if the service is up and running by making a simple HTTP request. .. py:method:: connect() Establish the connection to the Audio2Face service. .. py:method:: export_json(file_path, blendshape_solver=None, conn=None) Export the blendshape solvers to a json file. .. py:method:: get_a2f_player_instances(conn=None) .. py:method:: get_blendshape_solvers(conn=None) Get the blendshape solvers from the a2f scene. .. py:method:: get_tracks(conn=None, a2f_player=None) Get the tracks from the currently set root. .. py:method:: launch_a2f() Launch Audio2Face. .. py:method:: load_file(file_path, conn=None) .. py:method:: 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. .. py:method:: set_track(track_name, conn=None, a2f_player=None) Set the track to the player. .. py:method:: stop_a2f() Stop the Audio2Face service. .. py:method:: wait_until_ready() Wait until the Audio2Face service is ready. .. py:function:: 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. .. py:data:: LOG .. py:data:: USD_FILE